{"openapi":"3.1.0","info":{"title":"GrabFood Menus and GrabMart Catalog (x402 & MCP)","version":"0.1.0","description":"GrabFood restaurants, menus and GrabMart grocery products across eight Southeast Asian markets, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://agensi.opendata.best"}],"paths":{"/s/grab-com/v1/search":{"post":{"operationId":"grab_com_search","summary":"GrabFood Menus and GrabMart Catalog: Search GrabFood merchants by keyword, cuisine or chain","description":"GrabFood merchant and category rows across eight Southeast Asian markets. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["grab-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, mart_items, mart_merchants). The GrabFood restaurant directory mode is unavailable because Grab no longer publishes its public restaurant sitemap; GrabMart sitemap modes still work.","default":"auto","enum":["auto","search","cuisine","chain","recommended","discoverCategories"]},"countryCode":{"type":"string","description":"Grab market country code","default":"ph","enum":["sg","my","ph","th","vn","id","kh","mm"]},"keyword":{"type":"string","description":"What to search for, for example pizza or milk tea. With mode Auto a keyword runs a restaurant search; mart mode uses it for groceries; cuisine mode uses it when Cuisine slug is empty."},"cuisineSlug":{"type":"string","description":"For mode=cuisine — e.g. pizza, chicken, mart-delivery"},"cuisineId":{"type":"string","description":"Optional cuisine numeric/string id for /cuisines/{slug}/{id}"},"chainName":{"type":"string","description":"For mode=chain — brand / chain keyword or slug"},"city":{"type":"string","description":"Optional delivery city slug (e.g. makati, cebu, chiang-mai, hanoi, bali). Leave empty to use the market's main city. Ignored when latlng is set; restaurant/startUrls URLs from another market use their own market's location."},"latlng":{"type":"string","description":"Optional delivery pin as \"latitude,longitude\" (e.g. 14.5547,121.0244). Overrides city.","pattern":"^\\s*$|^\\s*-?\\d{1,2}(\\.\\d+)?\\s*,\\s*-?\\d{1,3}(\\.\\d+)?\\s*$"},"businessType":{"type":"string","description":"Filter search/recommended results","default":"ALL","enum":["ALL","FOOD","MART"]},"lang":{"type":"string","description":"Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en"},"pageSize":{"type":"integer","description":"Number of merchants requested per page, from 1 to 32. Continuing with a cursor retains its saved page size.","default":32,"minimum":1,"maximum":32},"includeMenuItems":{"type":"boolean","description":"For restaurant mode and restaurant links in startUrls, add menu items as separate billed rows within maxResults. Listing modes return merchants without menu items.","default":false},"maxMenuItemsPerRestaurant":{"type":"integer","description":"Per-restaurant cap. Menu items still count within that input's maxResults budget.","default":25,"minimum":1,"maximum":200},"expandBranches":{"type":"boolean","description":"Include additional branch merchants when available. Each branch is a separately billed row within maxResults.","default":false},"emitCuisines":{"type":"boolean","description":"Include available cuisine tags as separate category rows. Each category row is billed and counts toward maxResults.","default":false},"emitPromoLabels":{"type":"boolean","description":"Include available promotions and labels as separate rows. Each row is billed and counts toward maxResults.","default":false},"enrichDetails":{"type":"boolean","description":"In directory mode, check up to maxEnrich merchant pages for public details. Pages without confirmed merchant data remain directoryOnly=true.","default":false},"maxEnrich":{"type":"integer","description":"Directory mode with enrichDetails: maximum public merchant pages to inspect.","default":5,"minimum":0,"maximum":50},"rowShape":{"type":"string","description":"Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","enum":["flat","nested"]},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"countryCode":"ph","keyword":"pizza","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_grab_com"},"example":{"jobId":"job_grab-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","businessType":"example_businessType","name":"example_name","countryCode":"example_countryCode","city":"example_city","merchantId":"example_merchantId"}],"meta":{"site":"grab-com","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/grab-com/v1/restaurants":{"post":{"operationId":"grab_com_restaurants","summary":"GrabFood Menus and GrabMart Catalog: GrabFood restaurant profile and menu items","description":"Merchant details and menu item rows for a GrabFood restaurant URL, merchant ID or startUrls. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["grab-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, mart_items, mart_merchants). The GrabFood restaurant directory mode is unavailable because Grab no longer publishes its public restaurant sitemap; GrabMart sitemap modes still work.","default":"restaurant","enum":["restaurant","startUrls"]},"countryCode":{"type":"string","description":"Grab market country code","default":"ph","enum":["sg","my","ph","th","vn","id","kh","mm"]},"restaurantUrl":{"type":"string","description":"Paste a full GrabFood restaurant link, or a complete GrabMart product link with mode mart_item. Keep the item and merchant identifiers and URL text in the link.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*grab\\.com(/|\\?|$).*"},"merchantId":{"type":"string","description":"Grab merchant identifier. In Auto mode, this selects restaurant details."},"merchantSlug":{"type":"string","description":"URL slug for restaurant or mart merchant detail"},"startUrls":{"type":"array","items":{"type":"string"},"description":"food.grab.com / mart.grab.com links (restaurants, cuisine pages, mart pages). One target per line."},"lang":{"type":"string","description":"Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en"},"includeMenuItems":{"type":"boolean","description":"For restaurant mode and restaurant links in startUrls, add menu items as separate billed rows within maxResults. Listing modes return merchants without menu items.","default":false},"maxMenuItemsPerRestaurant":{"type":"integer","description":"Per-restaurant cap. Menu items still count within that input's maxResults budget.","default":25,"minimum":1,"maximum":200},"expandBranches":{"type":"boolean","description":"Include additional branch merchants when available. Each branch is a separately billed row within maxResults.","default":false},"emitPromoLabels":{"type":"boolean","description":"Include available promotions and labels as separate rows. Each row is billed and counts toward maxResults.","default":false},"rowShape":{"type":"string","description":"Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","enum":["flat","nested"]},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"countryCode":"ph","merchantId":"2-CYKTRUUWFACHC6","includeMenuItems":true,"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_grab_com"},"example":{"jobId":"job_grab-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","businessType":"example_businessType","name":"example_name","countryCode":"example_countryCode","city":"example_city","merchantId":"example_merchantId"}],"meta":{"site":"grab-com","endpoint":"restaurants","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/grab-com/v1/mart":{"post":{"operationId":"grab_com_mart","summary":"GrabFood Menus and GrabMart Catalog: GrabMart grocery products and merchants","description":"GrabMart product, item detail and merchant rows across Southeast Asian markets. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["grab-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto: the mode is picked from the field you fill (Start URLs, Restaurant URL, Merchant ID, Mart item ID, Chain name, Cuisine slug or Keyword). Pick a mode to run feeds that need no target (recommended, discoverCategories, mart_items, mart_merchants). The GrabFood restaurant directory mode is unavailable because Grab no longer publishes its public restaurant sitemap; GrabMart sitemap modes still work.","default":"mart","enum":["mart","mart_items","mart_item","mart_merchants"]},"countryCode":{"type":"string","description":"Grab market country code","default":"ph","enum":["sg","my","ph","th","vn","id","kh","mm"]},"keyword":{"type":"string","description":"What to search for, for example pizza or milk tea. With mode Auto a keyword runs a restaurant search; mart mode uses it for groceries; cuisine mode uses it when Cuisine slug is empty."},"itemId":{"type":"string","description":"GrabMart product identifier for mart_item mode. Also supply itemSlug, or use a complete product link in restaurantUrl."},"itemSlug":{"type":"string","description":"For mode=mart_item — product slug in the item URL path"},"restaurantUrl":{"type":"string","description":"Paste a full GrabFood restaurant link, or a complete GrabMart product link with mode mart_item. Keep the item and merchant identifiers and URL text in the link.","pattern":"^\\s*(https?://)?([A-Za-z0-9-]+\\.)*grab\\.com(/|\\?|$).*"},"city":{"type":"string","description":"Optional delivery city slug (e.g. makati, cebu, chiang-mai, hanoi, bali). Leave empty to use the market's main city. Ignored when latlng is set; restaurant/startUrls URLs from another market use their own market's location."},"latlng":{"type":"string","description":"Optional delivery pin as \"latitude,longitude\" (e.g. 14.5547,121.0244). Overrides city.","pattern":"^\\s*$|^\\s*-?\\d{1,2}(\\.\\d+)?\\s*,\\s*-?\\d{1,3}(\\.\\d+)?\\s*$"},"lang":{"type":"string","description":"Path locale (en/th/vi/id/ms/zh/km depending on market)","default":"en"},"pageSize":{"type":"integer","description":"Number of merchants requested per page, from 1 to 32. Continuing with a cursor retains its saved page size.","default":32,"minimum":1,"maximum":32},"rowShape":{"type":"string","description":"Flat writes every value as its own column (address, coordinates, prices, opening hours ...), which suits CSV and spreadsheets. Nested keeps the legacy sub-objects (address, geo, priceV2, phones ...).","default":"flat","enum":["flat","nested"]},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 10 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0030/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"countryCode":"sg","mode":"mart","keyword":"milk","maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_grab_com"},"example":{"jobId":"job_grab-com_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","businessType":"example_businessType","name":"example_name","countryCode":"example_countryCode","city":"example_city","merchantId":"example_merchantId"}],"meta":{"site":"grab-com","endpoint":"mart","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":15000,"settledMicrousd":3000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/grab-com/v1/health":{"get":{"operationId":"grab_com_health","summary":"GrabFood Menus and GrabMart Catalog: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["grab-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_grab_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"businessType":{"type":["string","null"],"title":"Biz"},"name":{"type":["string","null"],"title":"Name"},"countryCode":{"type":["string","null"],"title":"Country"},"city":{"type":["string","null"],"title":"City"},"merchantId":{"type":["string","null"],"title":"Merchant"},"rating":{"type":["string","null"],"title":"Rating"},"voteCount":{"type":["string","null"],"title":"Votes"},"cuisine":{"type":["string","null"],"title":"Cuisine"},"price":{"type":["string","null"],"title":"Price"},"discountPrice":{"type":["string","null"],"title":"Discount price"},"currency":{"type":["string","null"],"title":"Currency"},"deliveryFee":{"type":["string","null"],"title":"Fee"},"eta":{"type":["string","null"],"title":"ETA (min)"},"addressFull":{"type":["string","null"],"title":"Address"},"latitude":{"type":["string","null"],"title":"Lat"},"longitude":{"type":["string","null"],"title":"Lng"},"promoText":{"type":["string","null"],"title":"Promo"},"SKU":{"type":["string","null"],"title":"SKU"},"barcode":{"type":["string","null"],"title":"Barcode"},"available":{"type":["string","null"],"title":"Available"},"menuTruncated":{"type":["string","null"],"title":"Menu truncated"},"detailUnavailable":{"type":["string","null"],"title":"Detail unavailable"},"preloadTruncated":{"type":["string","null"],"title":"Preload truncated"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_grab_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_grab_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}}}