GrabFood API endpoint
Returns the promoted collection shortcuts GrabFood publishes for a coordinate and market (editorial groupings such as "Food Lobangs", "For Sharing", "5-Star Eats"). Every returned `id` is a value `GET /grabfood/category` accepts as `category_shortcut_id`, and a collection id and a cuisine id are disjoint id spaces on the same parameter -- so `GET /grabfood/cuisines` and this route together cover that parameter's whole value space.
/grabfood/collectionsReturns the promoted collection shortcuts GrabFood publishes for a coordinate, read from portal.grab.com/foodweb/category/shortcuts. These are editorial groupings (Food Lobangs, For Sharing, 5-Star Eats, ...) and each returned id is a value /api/v1/grabfood/category accepts as category_shortcut_id.
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 list was resolved for.collection_count — how many collections this coordinate advertises.collections[] — each with id (the category_shortcut_id value), name, description, image_url, image_url_fallback.source_url — the URL the data was read from.A collection id and a cuisine id are disjoint id spaces on the same category_shortcut_id parameter, so this route and /api/v1/grabfood/cuisines together cover that parameter's whole accepted value space. Both are accepted by /api/v1/grabfood/category.
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/collections?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,
"collection_count": 8,
"collections": [
{
"id": "17424",
"name": "Food Lobangs",
"description": "1-for-1 deals & more",
"image_url": "https://food-cms.grab.com/compressed_webp/collections/20821/icons/ced48cad1f2d402fbed25bcc95e70a78_1792988265207439260.webp",
"image_url_fallback": "https://food-cms.grab.com/collections/20821/icons/ced48cad1f2d402fbed25bcc95e70a78_1792988265207439260.png"
}
],
"source_url": "https://portal.grab.com/foodweb/category/shortcuts?countryCode=SG&latlng=1.287953%2C103.851784"
}
}Request schema
No body schema
Response schema
#/definitions/grabfood.collectionsResponseDoc
| 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.CollectionsResponse | No | ||||
| data.collection_count | integer | No | How many collections the upstream returned. | |||
| data.collections | array | No | Every promoted collection the portal publishes here. | |||
| data.collections[].description | string | No | 1-for-1 deals & more | The portal's own description for this collection. | ||
| data.collections[].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.collections[].id | string | No | 17424 | The collection's id -- pass it straight to /grabfood/category's category_shortcut_id. | ||
| data.collections[].image_url | string | No | Collection banner (webp). | |||
| data.collections[].image_url_fallback | string | No | The banner's non-webp fallback. | |||
| data.collections[].name | string | No | Food Lobangs | The collection's display name, e.g. "Food Lobangs". | ||
| data.country_code | string | No | SG | Market the shortcut list is scoped to, upper-case (e.g. "SG"). | ||
| 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 shortcut 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/collections?latitude=1.287953&longitude=103.851784" \
-H "x-api-key: $CRAWLORA_API_KEY"