1.0.1 • Published 6 years ago

scraper-typtap v1.0.1

Weekly downloads
5
License
-
Repository
-
Last release
6 years ago

TypTap Scraper

Installation

npm install --save scraper-typtap

Parameters

KeyValueExampleCriteria
addressstring'223 E. Concord Street'
buildingLimitValueint310000choose between 242000 - 362000
deductiblestring/enum'2000'"500", "1000", "2000", "5000", "10000"
monthsInHomestring/enum"6-9""0", "1-5", "6-9", "10-12"
personalPropertyReplacementbooleantrueif true, personalPropertyValue must be 25% of buildingLimitValue
personalPropertyValueint460000 - (buildingLimitValue / 2)
totalFloodClaimsstring/enum"0""9999"(unsure), "0", "1", "2", "3+", "9999"

Making the call

const scraper = require('scraper-typtap');

const params = {...};

const premium = scraper.getPremium(params);

Response

Successful response will return an object containing premium with a value type string

{ premium: '$403' }

Unsuccessful response will return an empty object

{}