SpareRoom: Locations
Locations from SpareRoom as JSON. 1 credit per successful call.
GET /v1/spareroom/locations
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 60 characters |
Example request
SpareRoom
GET/v1/spareroom/locations?q=man
{
"success": true,
"data": {
"query": "man",
"result_count": 20,
"locations": [
{
"name": "Greater Manchester",
"where": "Greater Manchester",
"type": "area",
"area_ids": [
618,
703,
718
]
},
{
"name": "Manchester",
"where": "Manchester",
"type": "area",
"area_ids": [
1174,
1175,
2222
],
"narrow_area_ids": [
2222,
1175,
2225
]
},
{
"name": "Manchester City Centre",
"where": "Manchester City Centre",
"type": "area",
"area_ids": [
2222
]
}
]
},
"meta": {
"endpoint_family": "spareroom.locations",
"retryable": false,
"duration_ms": 567
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.locations has these 5 fields, read from a recorded call that returned 31 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
name | string |
where | string |
type | string |
area_ids | number[] |
narrow_area_ids | number[] |