npm install --save scraper-typtap
Key | Value | Example | Criteria |
---|---|---|---|
address | string | '223 E. Concord Street' | |
buildingLimitValue | int | 310000 | choose between 242000 - 362000 |
deductible | string/enum | '2000' | ["500", "1000", "2000", "5000", "10000"] |
monthsInHome | string/enum | "6-9" | ["0", "1-5", "6-9", "10-12"] |
personalPropertyReplacement | boolean | true | if true, personalPropertyValue must be 25% of buildingLimitValue |
personalPropertyValue | int | 46000 | 0 - (buildingLimitValue / 2) |
totalFloodClaims | string/enum | "0" | "9999"(unsure), "0", "1", "2", "3+", "9999" |
const scraper = require('scraper-typtap');
const params = {...};
const premium = scraper.getPremium(params);
Successful response will return an object containing premium with a value type string
{ premium: '$403' }
Unsuccessful response will return an empty object
{}