GrabFood API endpoint
Returns GrabFood's own live cuisine facet catalog for a coordinate and market. Every returned `id` is a value `GET /grabfood/category` accepts as `category_shortcut_id`, so this is the discovery endpoint for that parameter. The set is scoped to the market and location (Singapore advertises 18 cuisines, Indonesia 22), so it is read from the upstream for the caller's own coordinate rather than pinned.
/grabfood/cuisinesReturns GrabFood's own live cuisine facet catalog for a coordinate, read from the same public listing API the storefront's own anonymous browser calls (portal.grab.com/foodweb/v2/categories). Every returned id is a value /api/v1/grabfood/category accepts as category_shortcut_id, so this is that parameter's discovery endpoint.
Query parameters:
latitude (required) — search-centre latitude, -90..90. The 0,0 pair is rejected.longitude (required) — search-centre longitude, -180..180.country_code (optional) — market code, one of SG, ID, PH, MY, VN, MM, KH (case-insensitive). Defaults to SG.Response fields:
country_code, latitude, longitude — the request the catalog was resolved for.cuisine_count — how many facets this coordinate advertises.cuisines[] — each facet's id (the value /api/v1/grabfood/category takes), name, description, image_url, image_url_fallback.source_url — the URL the data was read from.The set is complete for the coordinate and market: GrabFood returns the whole facet list in one call (Singapore advertises 18, Indonesia 22), and the ids are genuinely per-market and per-location rather than a fixed global enum. Pass any returned id back to /api/v1/grabfood/category; a cuisine id this call did not advertise is rejected upstream with a 404.
The named fields cover the reviewed GrabFood fields. Every other field the upstream
sends is returned in the nearest record's extras object (and in a response-level
extras for the envelope), mirroring the upstream shape: an extras object holds
only the keys the named fields do not, and arrays are aligned by index with null
for rows that have no extra key. Nothing the upstream sends is stripped, including
identifiers, avatar URLs and personal names. extras is omitted when a record has
no unmodelled field.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| latitude | number | Yes | Search centre latitude | 1.287953 | |
| longitude | number | Yes | Search centre longitude | 103.851784 | |
| country_code | string | No | SG | Market code: SG, ID, PH, MY, VN, MM or KH. Defaults to SG. | SG |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/grabfood/cuisines?latitude=1.287953&longitude=103.851784" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"country_code": "SG",
"latitude": 1.287953,
"longitude": 103.851784,
"cuisine_count": 18,
"cuisines": [
{
"id": "151",
"name": "Seafood",
"description": "-",
"image_url": "https://food-cms.grab.com/compressed_webp/cuisine/151/icons/upload-photo-icon_7af9b7d28d1347849d62774f1751599f_1549032669892550258.webp",
"image_url_fallback": "https://food-cms.grab.com/cuisine/151/icons/upload-photo-icon_7af9b7d28d1347849d62774f1751599f_1549032669892550258.jpeg"
}
],
"source_url": "https://portal.grab.com/foodweb/v2/categories?countryCode=SG&latlng=1.287953%2C103.851784&offset=0&pageSize=32"
}
}Request schema
No body schema
Response schema
#/definitions/grabfood.cuisinesResponseDoc
| 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 | grabfood.CuisinesResponse | No | ||||
| data.country_code | string | No | SG | Market the facet list is scoped to, upper-case (e.g. "SG"). | ||
| data.cuisine_count | integer | No | How many cuisines the upstream returned. | |||
| data.cuisines | array | No | Every cuisine the portal publishes for this market/location. Each one's shortcut_id is an accepted /grabfood/category value. | |||
| data.cuisines[].description | string | No | - | The portal's own description for this cuisine ("-" when it has none). | ||
| data.cuisines[].extras | object | No | Extras carries every upstream field this API does not model as a named field, mirroring the upstream object shape. Nothing the upstream sent is dropped. | |||
| data.cuisines[].id | string | No | 151 | The portal's numeric shortcut id -- pass it straight to /grabfood/category's category_shortcut_id parameter. | ||
| data.cuisines[].image_url | string | No | Cuisine icon (webp). | |||
| data.cuisines[].image_url_fallback | string | No | The icon's non-webp fallback. | |||
| data.cuisines[].name | string | No | Seafood | The cuisine's display name, e.g. "Seafood". | ||
| data.extras | object | No | Extras carries every upstream field this API does not model as a named field, mirroring the upstream object shape. Nothing the upstream sent is dropped. | |||
| data.latitude | number | No | 1.287953 | The coordinate the facet list was read for. | ||
| data.longitude | number | No | 103.851784 | |||
| data.source_url | string | No | URL the data was read from. | |||
| 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 |
| 500 | Internal Server Error | #/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/grabfood/cuisines?latitude=1.287953&longitude=103.851784" \
-H "x-api-key: $CRAWLORA_API_KEY"