Locations
Returns the countries’ cities and sectors (neighborhoods) available in AlterEstate. Use them in dynamic forms, search filters and when you create listings.
List cities
GET
https://secure.alterestate.com/api/v1/cities/Authentication
No authentication required.
Query parameters
countrynumberrequired- Country ID. See Supported countries below.Example:
149
Example request
GET
curl --request GET \
--url 'https://secure.alterestate.com/api/v1/cities/?country=149' \
--header 'Accept: application/json'Example response
200 OK
[
{
"name": "Santo Domingo D.N.",
"id": 156,
"province": {
"name": "Santo Domingo de Guzmán",
"id": 31
}
},
{
"name": "Punta Cana",
"id": 60,
"province": {
"name": "La Altagracia",
"id": 13
}
},
{
"name": "Bávaro",
"id": 59,
"province": {
"name": "La Altagracia",
"id": 13
}
}
]List sectors
GET
https://secure.alterestate.com/api/v1/sectors/Authentication
No authentication required.
Query parameters
citynumberrequired- City ID returned by List cities.Example:
156 pageinteger- Page number, starting at 1.Example:
1 page_sizeinteger- Sectors per page. Default 50, maximum 1000.Example:
50
Example request
GET
curl --request GET \
--url 'https://secure.alterestate.com/api/v1/sectors/?city=156' \
--header 'Accept: application/json'Example response
200 OK
{
"count": 276,
"next": "https://secure.alterestate.com/api/v1/sectors/?city=156&page=2",
"previous": null,
"results": [
{
"name": "16 De Agosto",
"id": 2234,
"city": "Santo Domingo D.N.",
"province": {
"name": "Santo Domingo de Guzmán",
"id": 31,
"country": 149
},
"company": null
},
{
"name": "24 De Abril",
"id": 2350,
"city": "Santo Domingo D.N.",
"province": {
"name": "Santo Domingo de Guzmán",
"id": 31,
"country": 149
},
"company": null
}
]
}Supported countries
| Country | ID |
|---|---|
| Dominican Republic | 149 |
| Panama | 60 |
| Colombia | 198 |
| Guatemala | 199 |
| Chile | 201 |
| Ecuador | 202 |
| Mexico | 203 |
| Peru | 208 |
| United States | 209 |
| Puerto Rico | 212 |
Notes
- Locations is read-only and does not require authentication.
- Cities and sectors change rarely. Cache them and refresh periodically, or load them on demand.
- Sectors are paginated: follow next until it is null, or send a larger page_size (maximum 1000). Cities are a plain list.
- Use the city and sector IDs in List properties filters and when you create a property.
Frequently asked questions
Does the AlterEstate Locations API require authentication?
No. GET /api/v1/cities/ and GET /api/v1/sectors/ are public and read-only.
What is the country ID for the Dominican Republic?
149. Mexico is 203, Colombia is 198 and Panama is 60.
Last updated . Questions? Emaildev@alterestate.com.