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.
Run this endpoint
Endpoint
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.
string
Required
Place name prefix, 2 to 60 characters, e.g. mila.
coffee shops
integer
Optional
Places to return, 1 to 20. Defaults to 10.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"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.
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"
}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
}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.