Glovo API endpoint
Returns one city's market settings: its name, whether it is enabled, the languages it supports (the values the language parameter of every Glovo endpoint accepts for that city), its currency and its timezone. A city or country Glovo does not serve returns a 400 pointing to /glovo/cities.
/glovo/citysupported_languages is the value space of the language parameter for that city on every Glovo endpoint (plus language_code, the city's primary language). A country or city Glovo does not serve returns a 400 pointing to /glovo/cities.
Query parameters:
country (required) — two-letter country code, from /glovo/cities.city (required) — city slug or code, from /glovo/cities.language (optional) — two-letter response language, default en.The response is checked against the request: if Glovo returns a city whose code or country differs (it serves scrambled but well-formed data to clients it distrusts), the call fails as an upstream error instead of returning wrong data.
| Field | In the sample | Value in the sample |
|---|---|---|
| country | Has a value | “es” |
| slug | Has a value | |
| code | Has a value | |
| name | Has a value | “Madrid” |
| enabled | Has a value | true |
| language_code | Has a value | |
| content_language_code | Has a value | |
| supported_languages | Has a value | 9 entries |
| currency | Has a value | “EUR” |
| timezone | Has a value | “Europe/Madrid” |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| country | string | Yes | Two-letter country code, from /glovo/cities. | es | |
| city | string | Yes | City slug (madrid) or city code (mad), from /glovo/cities. | madrid | |
| language | string | No | en | Optional two-letter response language; defaults to en. A city's supported languages are in /glovo/city's supported_languages. | en |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/glovo/city?country=es&city=madrid&language=en" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"country": "es",
"slug": "madrid",
"code": "mad",
"name": "Madrid",
"enabled": true,
"language_code": "es",
"content_language_code": "es",
"supported_languages": [
"ca",
"eu",
"en",
"ru",
"it",
"pt",
"fr",
"ro",
"zh"
],
"currency": "EUR",
"timezone": "Europe/Madrid"
}
}Request schema
No body schema
Response schema
#/definitions/glovo.cityResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | glovo.CityResponse | No | ||||
| data.code | string | No | ||||
| data.content_language_code | string | No | ||||
| data.country | string | No | ||||
| data.currency | string | No | ||||
| data.enabled | boolean | No | ||||
| data.language_code | string | No | ||||
| data.name | string | No | ||||
| data.slug | string | No | ||||
| data.supported_languages | array | No | ||||
| data.timezone | string | No | ||||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/glovo/city?country=es&city=madrid&language=en" \
-H "x-api-key: $CRAWLORA_API_KEY"