Skip to content

Offer Statistics Light

POST offers/statistics_light

Returns a percentage of offers (percentile rank) of the same type (apartment or house) in the given location which are cheaper than the provided price (salePrice). If for a salePrice of 750’000 the returned percentileRank is 32 that means in the selected location 32% of similar properties are cheaper and 68% of similar properties are more expensive. The location currently can only be specified by a post code (divisionLevel100).

This endpoint is a simplified version of Offer Statistics. For advanced requirements, use that endpoint instead.

Request#

curl -X POST 'https://api.pricehubble.com/api/v1/offers/statistics_light?access_token=74126eab0a9048d993bda4b1b55ae074' \
  -H 'Content-Type: application/json' \
  -d '{
    "salePrice": 750000,
    "divisionLevel100": "8001",
    "propertyType": "apartment",
    "countryCode": "CH"
}'
Field Description Type Remarks
salePrice Price to which the offers will be compared against integer
propertyType enum apartment or house
divisionLevel100 Postal code / official ID of the level 100 division string
countryCode ISO country code string AT, CH, DE and FR are currently supported

Response#

{
    "percentileRank": 32
}
Field Description Type Remarks
percentileRank Percentage of offers that are cheaper in the specified area than the provided salePrice integer