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

HomeToGo Destination Suggest API Documentation

GET https://scrappa.co/api/hometogo/suggest

HomeToGo Destination Suggest API Documentation Turn a place name into the HomeToGo destination id that the search, filters and price histogram endpoints take. The name is matched against the public destination pages, so use the English place name as in the HomeToGo address, for example paris, munich or new-york. The response holds the destination id, its name and the page link. An unknown name answers a not billable 404 and never falls back to another destination.

HomeToGo Destination Suggest API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/hometogo/suggest
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "url": "https://www.hometogo.com/paris/",
        "name": "Paris",
        "slug": "paris",
        "query": "paris",
        "location_id": "5460aead9281b"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "destination_suggest"
    },
    "success": true
}

Parameters

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

Runnable path

1 required parameter needed before sending a request.

query string Required

Destination name, 2 to 100 characters. Example: paris.

Example value coffee shops

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": {
        "url": "https://www.hometogo.com/paris/",
        "name": "Paris",
        "slug": "paris",
        "query": "paris",
        "location_id": "5460aead9281b"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "destination_suggest"
    },
    "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": {
        "query": [
            "The query field is required."
        ]
    },
    "message": "The request validation failed"
}
404

Resource Not Found

No destination page exists for this name. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "destination_suggest"
    },
    "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": "destination_suggest"
    },
    "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": "destination_suggest"
    },
    "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.