Geography: Search
GET /v2/geography/search/
Search locations by text
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | Free text query for city/location search |
limit | integer | no | Max number of results |
Example
200 Response Schema
Response type: array<object>.
Array item fields:
| Field | Type | Required | Description |
|---|---|---|---|
slug | string | yes | - |
country_slug | string | null | no | - |
region_slug | string | null | no | - |
timezone_offset | integer | yes | - |
latitude | number (double) | yes | - |
longitude | number (double) | yes | - |
city_name_en | string | yes | - |
city_name | string | yes | - |
country_name_en | string | yes | - |
country_name | string | yes | - |
region_name_en | string | yes | - |
region_name | string | yes | - |
Error Responses
| Status | Description |
|---|---|
400 | Invalid request parameters |
500 | Internal server error |
Error object fields:
| Field | Type | Required | Description |
|---|---|---|---|
status_code | integer | yes | - |
message | string | yes | - |
detail | string | yes | - |