Skip to content
Scrappa Get API key
Subito.it API 1 credit/request

Subito.it Places API Documentation

GET https://scrappa.co/api/subito/places

Subito.it Places API Documentation Find regions, provinces and towns by name prefix. The town istat key is the value for to in search, the province key is the value for ci. A query without matches is a successful, billable response with an empty places list.

Subito.it Places API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/subito/places
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "places": [
            {
                "region": {
                    "key": 4,
                    "name": "Lombardia"
                },
                "province": {
                    "key": 8,
                    "code": "MI",
                    "name": "Milano"
                }
            },
...

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.

1 optional filter available.

query string Required

Place name prefix, 2 to 60 characters, e.g. mila.

Example value coffee shops
limit integer Optional

Places to return, 1 to 20. Defaults to 10.

Example value 10

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": {
        "places": [
            {
                "region": {
                    "key": 4,
                    "name": "Lombardia"
                },
                "province": {
                    "key": 8,
                    "code": "MI",
                    "name": "Milano"
                }
            },
            {
                "town": {
                    "name": "Milano",
                    "istat": "015146"
                },
                "region": {
                    "key": 4,
                    "name": "Lombardia"
                },
                "province": {
                    "key": 8,
                    "code": "MI",
                    "name": "Milano"
                }
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "places"
    },
    "success": true
}

Errors

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

422

Validation Error

A parameter is missing or invalid. This response is not billable and makes no upstream call.

{
    "errors": {
        "query": [
            "The query field is required."
        ]
    },
    "message": "The request validation failed"
}
503

Invalid Source Response

Subito answered with a shape that no longer matches the documented contract. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "places"
    },
    "error": {
        "code": "PARSER_DRIFT",
        "message": "Subito returned an unexpected response. Please retry later."
    },
    "success": false
}
503

Service Unavailable

The upstream service is temporarily unavailable. Please retry shortly.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "places"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Subito service is temporarily unavailable. Please retry."
    },
    "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.