Skip to content
Scrappa Get API key
HomeToGo API 1 credit/request

HomeToGo Price Histogram API Documentation

GET https://scrappa.co/api/hometogo/price-histogram

HomeToGo Price Histogram API Documentation Get the distribution of nightly prices of a destination for a stay. Each bucket has an upper price in the chosen currency and a relative frequency from 0 to 100, where 100 is the most common price range.

HomeToGo Price Histogram API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/hometogo/price-histogram
Auth header
x-api-key
Cost
1 credit/request
check_in = example check_out = example
Response preview
200 OK
{
    "data": {
        "buckets": [
            {
                "price": 9,
                "relative_frequency": 0
            },
            {
                "price": 31,
                "relative_frequency": 2
            },
            {
                "price": 53,
                "relative_frequency": 8
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

2 required parameters needed before sending a request.

5 optional filters available.

check_in string Required

Check-in date, YYYY-MM-DD, today or later. Example: 2027-03-14.

Example value example
check_out string Required

Check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Example: 2027-03-18.

Example value example
location_id string Optional

HomeToGo destination id from the suggest endpoint. Example: 5460aead9281b for Paris. Send this or destination.

Example value 1234567890
destination string Optional

Destination name as in the HomeToGo address, e.g. paris, munich or new-york. Send this or location_id.

Example value example
adults integer Optional

Number of adults, 1 to 16. Defaults to 2.

Example value 10
children integer Optional

Number of children, 0 to 10. Children count as guests. Defaults to 0.

Example value 10
currency string Optional

Price currency: EUR, USD, GBP, CHF, SEK, DKK, NOK, PLN, CZK, CAD or AUD. Defaults to EUR.

Example value USD

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "buckets": [
            {
                "price": 9,
                "relative_frequency": 0
            },
            {
                "price": 31,
                "relative_frequency": 2
            },
            {
                "price": 53,
                "relative_frequency": 8
            },
            {
                "price": 75,
                "relative_frequency": 17
            },
            {
                "price": 97,
                "relative_frequency": 32
            },
            {
                "price": 119,
                "relative_frequency": 57
            }
        ],
        "check_in": "2026-12-01",
        "currency": "EUR",
        "check_out": "2026-12-08",
        "location_id": "5460aead9281b"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "rental_price_histogram"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "check_in": [
            "The check in field is required."
        ]
    },
    "message": "The request validation failed"
}
404

Resource Not Found

The destination is unknown. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "rental_price_histogram"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested HomeToGo resource was not found."
    },
    "success": false
}
503

Service Unavailable

HomeToGo could not be reached or blocked the request. Retry later. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "rental_price_histogram"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The HomeToGo API is temporarily unavailable. Please retry."
    },
    "success": false
}
502

Unexpected Answer

HomeToGo answered with a shape this API does not know. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "rental_price_histogram"
    },
    "error": {
        "code": "PARSE_ERROR",
        "message": "HomeToGo returned an unexpected answer. Please retry later."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.