{"openapi":"3.1.0","info":{"title":"Rappi Latin America Restaurants and Stores (x402 & MCP)","version":"0.1.0","description":"Rappi restaurants, menu items, grocery stores, products and brand locations across nine Latin American 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/rappi-com/v1/search":{"post":{"operationId":"rappi_com_search","summary":"Rappi Latin America Restaurants and Stores: Search Rappi restaurants, stores, brands and categories","description":"Restaurant, grocery store, brand and category rows across nine Latin American markets. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["rappi-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 to select a mode from the target you fill. Select nearby restaurants, the home feed, stores or a discovery mode explicitly when you have no target. Note: search is disallowed by robots.txt on UY, EC and CR; Brazil (br) web pages are blocked so API-backed modes (restaurants, nearMe, restaurant, discoverCategories, discoverCities, discoverCountries) apply.","default":"auto","enum":["auto","search","restaurants","nearMe","category","stores","home","brand","discoverCountries","discoverCities","discoverCategories","discoverVerticals"]},"country":{"type":"string","description":"Choose Mexico, Colombia, Argentina, Brazil, Chile, Peru, Ecuador, Uruguay or Costa Rica. Availability varies by market and delivery location.","default":"mx","enum":["mx","co","ar","br","cl","pe","ec","uy","cr"]},"query":{"type":"string","description":"Enter one search phrase, such as pizza or sushi. Filling this field selects search mode when no higher-priority target is supplied. Note: search is disallowed by robots.txt on UY/EC/CR and web search is unavailable on BR."},"citySlug":{"type":"string","description":"Enter a supported city slug, such as guadalajara, medellin or sao-paulo. Use discoverCities to see the supported values; unknown cities can fall back to the market default."},"categorySlug":{"type":"string","description":"Enter a cuisine or category slug, such as pizza or sushi. Use discoverCategories to find available categories."},"brandUrl":{"type":"string","description":"Paste a Rappi brand delivery URL to list chain locations. For an individual restaurant menu, use storeUrl instead.","pattern":"^$|^(https?://)?([A-Za-z0-9-]+\\.)*rappi\\.[A-Za-z.]+([/?#].*)?$"},"brandId":{"type":"string","description":"Enter the numeric chain ID from its Rappi brand delivery URL. This selects brand locations, not one restaurant menu."},"brandSlug":{"type":"string","description":"Optional brand-name part of the Rappi URL. Leave empty if you only know brandId."},"vertical":{"type":"string","description":"Choose a store-type slug, such as market, farmatodo or express. Use discoverVerticals for reference values.","default":"market"},"lat":{"type":"number","description":"Latitude of the delivery location. When omitted, the Actor uses the selected market location; Brazil defaults to Sao Paulo, not Brasilia."},"lng":{"type":"number","description":"Longitude of the delivery location. Provide it together with lat to use your own coordinates."},"freeDelivery":{"type":"boolean","description":"Keep listings with evidence of free delivery when this filter is supported. Missing free-delivery information does not count as free delivery."},"minRating":{"type":"number","description":"Exclude known ratings below this value. Restaurants without a rating can remain in the results."},"openNow":{"type":"boolean","description":"Exclude restaurants marked closed when an opening status is available. Listings with no status can remain."},"turbo":{"type":"boolean","description":"Accepted for compatibility, but it does not enforce fast-delivery filtering. Leave unset unless reusing an existing input."},"filters":{"type":"array","items":{"type":"string"},"description":"Optional listing filter keys, such as free_delivery, discounts or new. Not every filter is supported on every page."},"enrichDetails":{"type":"boolean","description":"Look up available merchant address, coordinates and organization details for retained restaurant listings. This can take longer and does not guarantee contact fields.","default":true},"enrichMenus":{"type":"boolean","description":"Add menu rows to restaurant listings, including search and home results, for up to maxEnrich stores. These rows share maxResults and are billed at the same rate.","default":false},"maxEnrich":{"type":"integer","description":"Limit how many stores receive detail or menu enrichment across continued collection. Product collection uses at most three stores.","default":5,"minimum":0,"maximum":50},"includeMenuItems":{"type":"boolean","description":"Add menu items as separate menuItem rows for a restaurant input. They share maxResults with the restaurant row, with at most 25 child rows per store.","default":false},"includeToppings":{"type":"boolean","description":"Add topping options as separate topping rows in restaurant mode; requires includeMenuItems. Toppings share the row limit and the 25-child-row cap with menu items.","default":false},"includeProducts":{"type":"boolean","description":"Add separate product rows for up to three stores, subject to maxEnrich and the remaining row allowance. Each product row is billed like a store row.","default":false},"cleanMenu":{"type":"boolean","description":"Remove promotional and fee-only entries from menus and product lists.","default":true},"maxPages":{"type":"integer","description":"Legacy page-count setting, from 1 to 50. Current row-based collection follows maxResults and can continue beyond this value.","default":1,"minimum":1,"maximum":50},"maxResults":{"type":"integer","description":"Maximum rows per input: default 70, with larger requests collected in parts of 70; all row types count together. The run stops at your maximum total charge, and Free-plan users are limited to 200 rows per run and 10 total runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"country":"mx","query":"pizza","enrichDetails":false,"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_rappi_com"},"example":{"jobId":"job_rappi-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","recordType":"example_recordType","country":"example_country","storeId":"example_storeId","storeName":"example_storeName"}],"meta":{"site":"rappi-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/rappi-com/v1/stores":{"post":{"operationId":"rappi_com_stores","summary":"Rappi Latin America Restaurants and Stores: One Rappi store's menu items or retail catalog","description":"Store profile, menu items, toppings or retail products for a store ID, URL or startUrls. Unit price: $0.003000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["rappi-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 to select a mode from the target you fill. Select nearby restaurants, the home feed, stores or a discovery mode explicitly when you have no target. Note: search is disallowed by robots.txt on UY, EC and CR; Brazil (br) web pages are blocked so API-backed modes (restaurants, nearMe, restaurant, discoverCategories, discoverCities, discoverCountries) apply.","default":"restaurant","enum":["restaurant","startUrls"]},"country":{"type":"string","description":"Choose Mexico, Colombia, Argentina, Brazil, Chile, Peru, Ecuador, Uruguay or Costa Rica. Availability varies by market and delivery location.","default":"mx","enum":["mx","co","ar","br","cl","pe","ec","uy","cr"]},"storeUrl":{"type":"string","description":"Paste the full Rappi restaurant page URL to collect that restaurant. Enable includeMenuItems if you also need menu rows.","pattern":"^$|^(https?://)?([A-Za-z0-9-]+\\.)*rappi\\.[A-Za-z.]+([/?#].*)?$"},"storeId":{"type":"string","description":"Enter the numeric restaurant ID from its Rappi URL, such as 1923804381. You can use storeUrl instead."},"storeSlug":{"type":"string","description":"Optional restaurant-name part of the Rappi URL. Leave empty if you only know storeId."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Paste Rappi restaurant, category, search, brand or store-list URLs. Each URL is an input with its own maxResults allowance."},"includeMenuItems":{"type":"boolean","description":"Add menu items as separate menuItem rows for a restaurant input. They share maxResults with the restaurant row, with at most 25 child rows per store.","default":false},"includeToppings":{"type":"boolean","description":"Add topping options as separate topping rows in restaurant mode; requires includeMenuItems. Toppings share the row limit and the 25-child-row cap with menu items.","default":false},"includeProducts":{"type":"boolean","description":"Add separate product rows for up to three stores, subject to maxEnrich and the remaining row allowance. Each product row is billed like a store row.","default":false},"cleanMenu":{"type":"boolean","description":"Remove promotional and fee-only entries from menus and product lists.","default":true},"enrichDetails":{"type":"boolean","description":"Look up available merchant address, coordinates and organization details for retained restaurant listings. This can take longer and does not guarantee contact fields.","default":true},"maxResults":{"type":"integer","description":"Maximum rows per input: default 70, with larger requests collected in parts of 70; all row types count together. The run stops at your maximum total charge, and Free-plan users are limited to 200 rows per run and 10 total runs.","default":10,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"country":"mx","storeId":"1923804381","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_rappi_com"},"example":{"jobId":"job_rappi-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","recordType":"example_recordType","country":"example_country","storeId":"example_storeId","storeName":"example_storeName"}],"meta":{"site":"rappi-com","endpoint":"stores","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/rappi-com/v1/health":{"get":{"operationId":"rappi_com_health","summary":"Rappi Latin America Restaurants and Stores: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["rappi-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_rappi_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"Entity ID"},"recordType":{"type":["string","null"],"title":"Type"},"country":{"type":["string","null"],"title":"Country"},"storeId":{"type":["string","null"],"title":"Store ID"},"storeName":{"type":["string","null"],"title":"Parent store"},"storeCity":{"type":["string","null"],"title":"City"},"storeType":{"type":["string","null"],"title":"Store type"},"name":{"type":["string","null"],"title":"Name"},"productId":{"type":["string","null"],"title":"Product ID"},"price":{"type":["string","null"],"title":"Price"},"priceText":{"type":["string","null"],"title":"Price text"},"rating":{"type":["string","null"],"title":"Rating"},"reviewAmount":{"type":["string","null"],"title":"Reviews"},"eta":{"type":["string","null"],"title":"ETA"},"deliveryCost":{"type":["string","null"],"title":"Delivery"},"status":{"type":["string","null"],"title":"Status"},"categories":{"type":["string","null"],"title":"Categories"},"menuItemCount":{"type":["string","null"],"title":"Menu items"},"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":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"},"url":{"type":["string","null"],"format":"uri","title":"URL"}},"additionalProperties":true},"Response_rappi_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_rappi_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"]}}}}