# Locations
❗️ Note
The API calls in this section also support the variables quantity (boolean), id_property_type (see Property Types), for_sale (boolean), for_rent (boolean), for_transfer (boolean) and scope (number), for an example of this, see the Countries section.
To obtain information of all the localities of a specific city knowing its id we have the general URI
:
api.wasi.co/v1/location/locations-from-city/#id_city
For example for Bogota the id_city is 794, so the URI
would be:
api.wasi.co/v1/location/locations-from-city/794
This should return a JSON
similar to the following:
{
"0": {
"id_location": "1",
"name": "Usaquen",
"id_city": "794"
},
"1": {
"id_location": "2",
"name": "Chapinero",
"id_region": "794"
},
"status": "success"
}
To obtain information about a specific location knowing its id you have the general URI
:
api.wasi.co/v1/location/#id_location
For example, for Chapinero the id_location is 2, so the URI
would be:
api.wasi.co/v1/location/location/2
And you get the answer:
{
"id_location": "2",
"name": "Chapinero",
"id_city": "794",
"status": "success"
}
❗ ️ Important
For all requests it is necessary to send credentials, for more information you can visit the section of Getting Started.