GrabFood API endpoint
Returns one GrabFood market's own storefront configuration: the languages that market advertises (the accepted `lang` values), its default language, currency code and symbol, footer link taxonomy, external links, SEO block, social links, the default map centre, the complete set of markets the storefront advertises, and its public API base-URL config. Parsed from the market page's own `__NEXT_DATA__` payload.
/grabfood/countryReturns one GrabFood market's own storefront bootstrap configuration, read from the __NEXT_DATA__ payload the market page server-renders for any anonymous visitor.
Query parameters:
country (required) — the storefront's market path segment. One of sg, id, ph, my, vn, mm, kh. Any other value is a 400; th is a 404 because the storefront advertises it on its landing page but food.grab.com/th 301-redirects to www.grab.com/th/food and has no Next.js page to read.lang (optional) — a language tag from that market's own supported_languages. Defaults to the market's default_language. The advertised sets are sg -> en, id -> id, en, ph -> en, my -> en, vn -> en, vi, mm -> en, kh -> km, en (first listed is the default). A language outside that market's set is a 400.Response fields:
country, lang — the pair that was actually fetched.supported_languages[], default_language — the market's advertised language space, i.e. the accepted lang values.currency_code, currency_symbol — e.g. SGD / S$.footer_path, promo_category — the market's own footer path and promoted-category id.footer_links.categories[], footer_links.favorites[] — the site's own featured links, each {key, path} (e.g. {"key":"sg-fs-bubble-tea","path":"restaurants?search=bubble-tea"}). In some markets (ID and MY observed) the categories entries carry chain/<key> paths; that is the only place the site itself publishes chain keys. It is not a guarantee: several of those keys answer the site's own error document (see /api/v1/grabfood/chain), and SG/PH/VN/MM/KH publish no chain links at all.links{} — the market's external links map, exactly the keys the page carries (about_grab, terms, privacy, help, ...).seo, social_media[] — the page's own SEO block and social links.landing_page — the storefront's own country-selection config: available[] (the complete advertised market set, ["id","sg","ph","my","vn","th","mm","kh"]), unavailable[], hero_image.geolocation — the market page's default map centre and address block (address, address_detail, city, city_id, country_code, display_address, is_accurate, latitude, longitude, note_to_driver).runtime_config{} — the page's own public API base-URL config (APP_FOODWEB_API_BASE_URL etc.).build_id — the Next.js build the page was served with. Reported for observability only: no request in this API depends on it.country_config — the complete upstream countryConfig object, byte-for-byte. Grab varies its keys per market (ggb*, grablite*, sunsetGGB, orderingCities and others appear in some markets only), so this object is returned alongside the typed fields rather than replaced by them.source_url — the page the data was read from.| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| country | string | Yes | Market code: sg, id, ph, my, vn, mm or kh | sg | |
| lang | string | No | its default language | Market language tag from that market's supported_languages; defaults to its default language | en |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/grabfood/country?country=sg&lang=en" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"country": "sg",
"lang": "en",
"supported_languages": [
"en"
],
"default_language": "en",
"currency_code": "SGD",
"currency_symbol": "S$",
"footer_path": "/sg/",
"promo_category": 10566,
"footer_links": {
"categories": [
{
"key": "sg-fs-bubble-tea",
"path": "restaurants?search=bubble-tea"
}
],
"favorites": [
{
"key": "sg-pc-burger-king",
"path": "restaurants?search=burger-king"
}
]
},
"links": {
"about_grabfood": "https://www.grab.com/sg/food/",
"terms": "https://www.grab.com/sg/terms/consumer/"
},
"seo": {
"site_name": "Grabfood SG",
"twitter_site": "@GrabSG"
},
"social_media": [
{
"href": "https://www.facebook.com/grabsg",
"icon": "facebook",
"name": "Facebook"
}
],
"landing_page": {
"available": [
"id",
"sg",
"ph",
"my",
"vn",
"th",
"mm",
"kh"
],
"unavailable": [],
"hero_image": "/static/page-landing/hero-1.webp"
},
"geolocation": {
"address": "Singapore",
"country_code": "SG",
"is_accurate": false,
"latitude": 1.287953,
"longitude": 103.851784
},
"build_id": "o3NiVNzXdB1DsdpjldVq5",
"source_url": "https://food.grab.com/sg/en/"
}
}Request schema
No body schema
Response schema
#/definitions/grabfood.countryResponseDoc
| 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.CountryResponse | No | ||||
| data.build_id | string | No | o3NiVNzXdB1DsdpjldVq5 | The Next.js build id this page was served with. Informational only: no request in this API depends on it. Grab Food rotates it on deploy. | ||
| data.country | string | No | sg | Market code that was read, lower-case (e.g. "sg"). | ||
| data.country_config | object | No | The complete upstream countryConfig object, byte-for-byte, so every market-specific field the page carries is preserved (Grab varies keys per market: ggb*, grablite*, sunsetGGB, orderingCities and others appear in some markets only). The typed fields above mirror its stable subset. | |||
| data.currency_code | string | No | SGD | |||
| data.currency_symbol | string | No | S$ | |||
| data.default_language | string | No | en | This market's own default language. | ||
| data.footer_links | object | No | This market's own footer taxonomy: the featured category and favorite quick-links the site publishes. | |||
| data.footer_links.categories | array | No | ||||
| data.footer_links.categories[].key | string | No | sg-fs-bubble-tea | GrabFood's own internal key for the link, e.g. "sg-fs-bubble-tea". | ||
| data.footer_links.categories[].path | string | No | restaurants?search=bubble-tea | Path the link points at, relative to the market root, e.g. "restaurants?search=bubble-tea". | ||
| data.footer_links.favorites | array | No | ||||
| data.footer_links.favorites[].key | string | No | sg-fs-bubble-tea | GrabFood's own internal key for the link, e.g. "sg-fs-bubble-tea". | ||
| data.footer_links.favorites[].path | string | No | restaurants?search=bubble-tea | Path the link points at, relative to the market root, e.g. "restaurants?search=bubble-tea". | ||
| data.footer_path | string | No | /sg/ | |||
| data.geolocation | grabfood.Geolocation | No | ||||
| data.geolocation.address | string | No | Singapore | |||
| data.geolocation.address_detail | string | No | ||||
| data.geolocation.city | string | No | ||||
| data.geolocation.city_id | integer | No | ||||
| data.geolocation.country_code | string | No | SG | |||
| data.geolocation.display_address | string | No | ||||
| data.geolocation.is_accurate | boolean | No | ||||
| data.geolocation.latitude | number | No | 1.287953 | |||
| data.geolocation.longitude | number | No | 103.851784 | |||
| data.geolocation.note_to_driver | string | No | ||||
| data.landing_page | grabfood.LandingPage | No | ||||
| data.landing_page.available | array | No | Market codes the storefront advertises as available, in its own order. | |||
| data.landing_page.hero_image | string | No | ||||
| data.landing_page.unavailable | array | No | Market codes the storefront advertises as unavailable. | |||
| data.lang | string | No | en | Language that was read (e.g. "en"). | ||
| data.links | object | No | This market's own external links map (about, terms, privacy, help, ...), exactly the keys the market page carries. | |||
| data.promo_category | integer | No | 10566 | This market's own promoted-category id. | ||
| data.runtime_config | object | No | The page's own public API base-URL config (runtimeConfig). | |||
| data.seo | grabfood.CountrySEO | No | ||||
| data.seo.image_height | string | No | 630 | |||
| data.seo.image_url | string | No | ||||
| data.seo.image_width | string | No | 1200 | |||
| data.seo.site_name | string | No | Grabfood SG | |||
| data.seo.twitter_card | string | No | summary_large_image | |||
| data.seo.twitter_site | string | No | @GrabSG | |||
| data.seo.type | string | No | website | |||
| data.social_media | array | No | ||||
| data.social_media[].href | string | No | ||||
| data.social_media[].icon | string | No | ||||
| data.social_media[].name | string | No | ||||
| data.source_url | string | No | https://food.grab.com/sg/en/ | URL the data was read from. | ||
| data.supported_languages | array | No | Languages this market advertises, from its own countryConfig.supported_languages. These are the values GET /grabfood/country's lang parameter accepts for this market. | |||
| 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 |
| 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/country?country=sg&lang=en" \
-H "x-api-key: $CRAWLORA_API_KEY"