Get locations

GET /locations

Parameters

Parameter
Description
Optional

location_type_id

Id of type of locations that should be returned. Multiple values can be passed as a comma-separated list.

Yes

Response

{
    "data": [ <Location> ]
}

Example

GET /locations?location_type_id=2,8
{
    "data": [
        {"id": 6, "name": "China", "location_type_id": 2, "level": 3, "level0_parent_id": 1,...},
        {"id": 7, "name": "North Korea", "location_type_id": 2, "level": 3, "level0_parent_id": 1,...},
        ...,
        {"id": 522, "name": "Sudan", "location_type_id": 2, "level": 3, "level0_parent_id": 1,...}
    ]
}

Last updated