{"openapi":"3.1.0","info":{"title":"Talabat Middle East Restaurants and Menus (x402 & MCP)","version":"0.1.0","description":"Talabat restaurants, merchant profiles, menu items, promotions and delivery areas across nine Middle East markets, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://ai.opendata.best"}],"paths":{"/s/talabat-com/v1/search":{"post":{"operationId":"talabat_com_search","summary":"Talabat Middle East Restaurants and Menus: Restaurants, cuisines and areas across Middle East markets","description":"Restaurant listings, cuisines, delivery areas and verticals across nine Middle East countries. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["talabat-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto and fill a target field to select its mode, or choose a mode explicitly. Empty input runs a billed example of up to 3 rows; use Merchant mode for public brand URLs and Restaurant mode for branch menus.","default":"auto","enum":["auto","area","search","cuisine","city","chain","catalog","vertical","home","cuisinesHub","discoverAreas","discoverCities","discoverCuisines"]},"country":{"type":"string","description":"Choose the Talabat country path. Use a country that matches all URLs in the run.","default":"uae","enum":["uae","kuwait","ksa","qatar","bahrain","egypt","oman","jordan","iraq"]},"areaId":{"type":"string","description":"Delivery area identifier, such as 1174 for Al Barsha 1 in Dubai. Supply the matching areaSlug for local listings."},"areaSlug":{"type":"string","description":"Area slug that goes with the area id (for example al-barsha-1)."},"searchQuery":{"type":"string","description":"Search term for restaurants in a delivery area. Use areaId and areaSlug to choose the location."},"cuisineSlug":{"type":"string","description":"Cuisine path segment, such as pizza. Include areaId and areaSlug to request restaurants in that area."},"citySlug":{"type":"string","description":"City path segment for city mode, such as dubai. City pages may return discovery links rather than restaurant rows."},"chainName":{"type":"string","description":"Restaurant name filter for chain mode. Matches names containing this text within the selected area."},"restaurantId":{"type":"string","description":"Brand restaurant identifier for chain mode. This is different from a delivery branch ID."},"vertical":{"type":"string","description":"Category for vertical mode. Availability and row types vary by category and country.","default":"restaurants","enum":["restaurants","groceries","pharmacies","talabat-mart","flowers","donations"]},"lang":{"type":"string","description":"Use en or ar for the requested language where available. This does not translate search terms."},"filters":{"type":"array","items":{"type":"string"},"description":"Listing filters such as free_delivery, top_rated or Offers. Availability depends on the selected area."},"sort":{"type":"string","description":"Listing sort value, such as rating, fastest_delivery, min_order, deliverycharges or a_z."},"groceryOnly":{"type":"boolean","description":"Keep grocery vendors in listing results when the source identifies them as grocery businesses.","default":false},"enrichDetails":{"type":"boolean","description":"For catalog/sitemap/public startUrls: replace up to maxEnrich rows with brand profiles, not menus.","default":false},"enrichMenus":{"type":"boolean","description":"Request enabled menu or other detail rows for up to maxEnrich restaurants in supported listing modes. Off by default; additional rows are billed separately.","default":false},"maxEnrich":{"type":"integer","description":"Maximum restaurants eligible for detail, menu or review enrichment. Each enabled row type still shares maxResults.","default":5,"minimum":0,"maximum":50},"includeMenuItems":{"type":"boolean","description":"Add menu products as separate menuItem rows when available. These rows share maxResults with restaurants and all other row types.","default":false},"maxMenuItemsPerRestaurant":{"type":"integer","description":"Per-parent cap for menuItem rows. Menu items share the current input's maxResults allowance.","default":20,"minimum":0,"maximum":200},"includeChoices":{"type":"boolean","description":"Include available menu choices when maxChoicesPerRestaurant is greater than zero. Choices are disabled by the default zero cap.","default":true},"maxChoicesPerRestaurant":{"type":"integer","description":"Maximum menu products per restaurant for which choices are requested. Zero disables choice collection.","default":0,"minimum":0,"maximum":50},"includePromotions":{"type":"boolean","description":"Add available promotions as separate billed rows. Off by default; these rows share maxResults.","default":false},"includePaymentMethods":{"type":"boolean","description":"Add available payment options as separate billed rows. Off by default; these rows share maxResults.","default":false},"includeReviews":{"type":"boolean","description":"Add available restaurant reviews as separate billed rows. Off by default; these rows share maxResults.","default":false},"maxReviewsPerRestaurant":{"type":"integer","description":"Maximum review rows per restaurant, within the shared maxResults allowance.","default":20,"minimum":0,"maximum":200},"fetchAllPages":{"type":"boolean","description":"Expand listing pagination where supported. maxPages and maxResults still apply.","default":false},"maxPages":{"type":"integer","description":"Maximum listing pages to read; for sitemap mode, this counts XML documents including the index. Detail enrichment has a separate maxEnrich cap.","default":3,"minimum":1,"maximum":100},"page":{"type":"integer","description":"First listing page to request, starting at 1. Pagination support depends on the selected mode.","default":1,"minimum":1,"maximum":100},"maxResults":{"type":"integer","description":"Most Dataset rows for each start URL or selected target, across every enabled row type. Default 70; larger numbers are collected in parts of 70. The whole run stops at your maximum total charge. Free plan capped at 200 rows/run.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"country":"uae","areaId":"1174","areaSlug":"al-barsha-1","maxResults":10}}}},"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_talabat_com"},"example":{"jobId":"job_talabat-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","itemType":"example_itemType","title":"example_title","country":"example_country","branchId":"example_branchId"}],"meta":{"site":"talabat-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"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"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/talabat-com/v1/restaurants":{"post":{"operationId":"talabat_com_restaurants","summary":"Talabat Middle East Restaurants and Menus: Merchant profile, menus, choices and reviews","description":"Restaurant details, menu items, choices, promotions and reviews from a Talabat URL, branch/merchant slug or startUrls. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["talabat-com","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.030000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"Leave on Auto and fill a target field to select its mode, or choose a mode explicitly. Empty input runs a billed example of up to 3 rows; use Merchant mode for public brand URLs and Restaurant mode for branch menus.","default":"restaurant","enum":["restaurant","merchant","startUrls"]},"country":{"type":"string","description":"Choose the Talabat country path. Use a country that matches all URLs in the run.","default":"uae","enum":["uae","kuwait","ksa","qatar","bahrain","egypt","oman","jordan","iraq"]},"restaurantUrl":{"type":"string","description":"Full menu URL for restaurant mode, or /country/slug brand URL for merchant mode","pattern":"^https?://([A-Za-z0-9-]+\\.)*talabat\\.com(/.*)?$"},"branchId":{"type":"string","description":"Delivery branch identifier for restaurant mode. Alternatively, provide its full restaurantUrl."},"branchSlug":{"type":"string","description":"Branch path segment used with branchId to form a restaurant URL."},"merchantSlug":{"type":"string","description":"Public merchant path segment for merchant mode, such as v-garden. Alternatively, supply a public brand restaurantUrl."},"areaId":{"type":"string","description":"Delivery area identifier, such as 1174 for Al Barsha 1 in Dubai. Supply the matching areaSlug for local listings."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Talabat links: area listings (/uae/restaurants/1174/al-barsha-1), restaurant menus, cuisine, city or brand pages. One country per run. Each URL gets its own maxResults row allowance. Leave empty to use the verified App API area example."},"lang":{"type":"string","description":"Use en or ar for the requested language where available. This does not translate search terms."},"includeMenuItems":{"type":"boolean","description":"Add menu products as separate menuItem rows when available. These rows share maxResults with restaurants and all other row types.","default":false},"maxMenuItemsPerRestaurant":{"type":"integer","description":"Per-parent cap for menuItem rows. Menu items share the current input's maxResults allowance.","default":20,"minimum":0,"maximum":200},"includeChoices":{"type":"boolean","description":"Include available menu choices when maxChoicesPerRestaurant is greater than zero. Choices are disabled by the default zero cap.","default":true},"maxChoicesPerRestaurant":{"type":"integer","description":"Maximum menu products per restaurant for which choices are requested. Zero disables choice collection.","default":0,"minimum":0,"maximum":50},"includePromotions":{"type":"boolean","description":"Add available promotions as separate billed rows. Off by default; these rows share maxResults.","default":false},"includePaymentMethods":{"type":"boolean","description":"Add available payment options as separate billed rows. Off by default; these rows share maxResults.","default":false},"includeReviews":{"type":"boolean","description":"Add available restaurant reviews as separate billed rows. Off by default; these rows share maxResults.","default":false},"maxReviewsPerRestaurant":{"type":"integer","description":"Maximum review rows per restaurant, within the shared maxResults allowance.","default":20,"minimum":0,"maximum":200},"maxResults":{"type":"integer","description":"Most Dataset rows for each start URL or selected target, across every enabled row type. Default 70; larger numbers are collected in parts of 70. The whole run stops at your maximum total charge. Free plan capped at 200 rows/run.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"country":"uae","restaurantUrl":"https://www.talabat.com/uae/restaurant/754009/daily-restaurant-al-barsha-1?aid=1174","includeMenuItems":true,"maxResults":10}}}},"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_talabat_com"},"example":{"jobId":"job_talabat-_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","itemType":"example_itemType","title":"example_title","country":"example_country","branchId":"example_branchId"}],"meta":{"site":"talabat-com","endpoint":"restaurants","maxResults":10,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":30000,"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"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/talabat-com/v1/health":{"get":{"operationId":"talabat_com_health","summary":"Talabat Middle East Restaurants and Menus: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["talabat-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_talabat_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"ID"},"itemType":{"type":["string","null"],"title":"Legacy type"},"title":{"type":["string","null"],"title":"Title"},"country":{"type":["string","null"],"title":"Country"},"branchId":{"type":["string","null"],"title":"Branch"},"restaurantName":{"type":["string","null"],"title":"Restaurant"},"restaurantCity":{"type":["string","null"],"title":"City"},"areaId":{"type":["string","null"],"title":"Area"},"cuisineSlug":{"type":["string","null"],"title":"Cuisine"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"price":{"type":["string","null"],"title":"Price"},"rate":{"type":["string","null"],"title":"Rating"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"geo":{"type":["string","null"],"title":"Geo"},"person":{"type":["string","null"],"title":"Person"},"org":{"type":["string","null"],"title":"Organization"},"web":{"type":["string","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_talabat_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_talabat_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"]}}}}