๐Ÿ“Locations

Use the Location API to retrieve geographic data such as cities and sectors available in AlterEstate. This is especially useful for dynamic forms, search filters, or any functionality where location data is needed.

๐Ÿ‘๏ธ This documentation is public and may be updated frequently. Please revisit for the latest improvements or changes.


๐Ÿ“ List Cities

Retrieve a list of cities by country.

๐Ÿ”— Endpoint

GET https://secure.alterestate.com/api/v1/cities/

๐Ÿ” Headers

{
  "Content-Type": "application/json"
}

๐Ÿ”ง Query Parameters

Parameter
Type
Required
Description

country

number

โœ… Yes

The ID of the country to retrieve cities from. See country codes below.

๐Ÿ“ฅ Example Request

https://secure.alterestate.com/api/v1/cities/?country=149

โœ… Successful Response

๐ŸŒŽ Supported Countries and IDs

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


๐Ÿ—บ๏ธ List Sectors

Retrieve a list of sectors (neighborhoods) within a specific city.

๐Ÿ”— Endpoint

GET /api/v1/sectors/

๐Ÿ” Headers

๐Ÿ”ง Query Parameters

Parameter
Type
Required
Description

city

number

โœ… Yes

The ID of the city to retrieve sectors for. Use the List Cities API to find valid city IDs.

๐Ÿ“ฅ Example Request

โœ… Successful Response


๐Ÿ“Œ Notes

  • The Location API is read-only and does not require authentication.

  • Always keep your local cache of cities/sectors updated if youโ€™re storing them client-side.

  • We recommend refreshing this data periodically or pulling it dynamically to ensure accuracy.

Last updated