{"openapi":"3.1.0","info":{"title":"iFood Brazil Restaurants and Menus (x402 & MCP)","version":"0.1.0","description":"Public iFood (Brazil) restaurants, grocery stores, menu items and reviews, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. 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://x402.opendata.best"}],"paths":{"/s/ifood-com-br/v1/search":{"post":{"operationId":"ifood_com_br_search","summary":"iFood Brazil Restaurants and Menus: Restaurants and stores by city, category, keyword or location","description":"Restaurant/store rows for a city, category or keyword search, a chain, a location (CEP, address or coordinates), the grocery vertical or a known browse page. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["ifood-com-br","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 to select a mode from the target fields. Empty input starts a pizza search in Sao Paulo with at most 3 rows; select a mode explicitly for menus, dishes, reviews or discovery.","default":"auto","enum":["auto","city","category","mercado","chain","nearMe","home","browse"]},"citySlug":{"type":"string","description":"City and state slug, such as sao-paulo-sp or rio-de-janeiro-rj. Supported place-based modes use Sao Paulo when no other location is supplied."},"searchTerm":{"type":"string","description":"Words to search for, such as pizza or hamburguer. Use Portuguese terms for local searches."},"categorySlug":{"type":"string","description":"Cuisine or vertical to search, such as pizza, japonesa or mercado. Used by category mode."},"chainName":{"type":"string","description":"Chain or brand name to search for, such as Burger King. Used by chain mode."},"cep":{"type":"string","description":"Eight-digit Brazilian postal code, with or without a hyphen. Used to choose the search location.","pattern":"^\\s*\\d{5}-?\\d{3}\\s*$"},"address":{"type":"string","description":"Brazilian location or address text used to locate the search area."},"latitude":{"type":"number","description":"Delivery latitude. Provide longitude as well when specifying coordinates."},"longitude":{"type":"number","description":"Delivery longitude. Provide latitude as well when specifying coordinates."},"pageId":{"type":"string","description":"Known iFood browse-page identifier. Required for browse mode."},"sortBy":{"type":"string","description":"Optional sorting value supported by iFood for the selected search."},"mainCategoryFilter":{"type":"string","description":"Keep merchants whose main category contains this text."},"includeVerticals":{"type":"array","items":{"type":"string"},"description":"Keep merchants matching these vertical keywords, such as mercado or farmacia."},"cnpj":{"type":"string","description":"Brazilian business registration number (14 digits, punctuation optional). Keeps merchants whose iFood merchant details list this CNPJ; merchants are looked up through their iFood merchant metadata, which can add one request per merchant.","pattern":"^\\s*(\\d{2}\\.?\\d{3}\\.?\\d{3}/?\\d{4}-?\\d{2})?\\s*$"},"onlyWithCnpj":{"type":"boolean","description":"Keep only merchant rows whose iFood merchant details list a CNPJ.","default":false},"maxResults":{"type":"integer","description":"Maximum rows per start URL, or for the single target in other modes; all row types share that allowance, with requests above 70 collected in parts of at most 70 rows. The default is 70, subject to the run cost limit and Free-plan limits of 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"citySlug":"sao-paulo-sp","searchTerm":"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_ifood_com_br"},"example":{"jobId":"job_ifood-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","name":"example_name","restaurantId":"example_restaurantId","restaurantName":"example_restaurantName","citySlug":"example_citySlug"}],"meta":{"site":"ifood-com-br","endpoint":"search","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"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/ifood-com-br/v1/stores":{"post":{"operationId":"ifood_com_br_stores","summary":"iFood Brazil Restaurants and Menus: One store's details and menu","description":"Store rows for a merchant URL, UUID or slug (mode merchant/menu), or for iFood links (mode startUrls); menu items, dishes and choices are optional rows. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["ifood-com-br","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 to select a mode from the target fields. Empty input starts a pizza search in Sao Paulo with at most 3 rows; select a mode explicitly for menus, dishes, reviews or discovery.","default":"merchant","enum":["merchant","menu","startUrls"]},"merchantUrl":{"type":"string","description":"An iFood merchant URL in the form https://www.ifood.com.br/delivery/{city}/{slug}/{uuid}. Use this instead of merchantUuid.","pattern":"^(https?://)?([A-Za-z0-9-]+\\.)*ifood\\.com\\.br(/.*)?$"},"merchantUuid":{"type":"string","description":"Merchant identifier from an iFood merchant URL. Use this instead of merchantUrl."},"merchantSlug":{"type":"string","description":"Optional merchant-name segment from an iFood merchant URL."},"citySlug":{"type":"string","description":"City and state slug, such as sao-paulo-sp or rio-de-janeiro-rj. Supported place-based modes use Sao Paulo when no other location is supplied."},"startUrls":{"type":"array","items":{"type":"string"},"description":"List of iFood merchant, city or category URLs. Each URL has its own maxResults allowance."},"includeMenuItems":{"type":"boolean","description":"Include separate menu item rows with merchant data. Off by default; each delivered row is billed and counts toward maxResults.","default":false},"includeDishes":{"type":"boolean","description":"Include separate dish rows from search. Off by default; each delivered dish is billed and counts toward maxResults.","default":false},"includeChoices":{"type":"boolean","description":"For menu items marked needChoices=true, also request the item's option groups from iFood's /items/{id} page (choices[], with add-on prices in garnishItens[].unitPrice) while the row allowance has room. Off by default; menu rows still carry needChoices, optionGroupReason and choicesRef without it.","default":false},"enrichMenus":{"type":"boolean","description":"Request menu item rows for merchants found in listings. Off by default; each delivered item is billed and counts toward maxResults.","default":false},"enrichDetails":{"type":"boolean","description":"Request additional merchant details, such as delivery fees, address, contact number and business registration. Fields may be absent when not available.","default":false},"maxEnrich":{"type":"integer","description":"Maximum number of listed merchants for which to request additional details or menu rows.","default":5,"minimum":0,"maximum":50},"loadMoreRounds":{"type":"integer","description":"Additional search pages after the first page, subject to the row limit.","default":0,"minimum":0,"maximum":20},"maxResults":{"type":"integer","description":"Maximum rows per start URL, or for the single target in other modes; all row types share that allowance, with requests above 70 collected in parts of at most 70 rows. The default is 70, subject to the run cost limit and Free-plan limits of 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"merchantUrl":"https://www.ifood.com.br/delivery/sao-paulo-sp/212-burger-pinheiros-pinheiros/d468b0b0-a18f-4ecc-9631-6faf2aa8eeb0","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_ifood_com_br"},"example":{"jobId":"job_ifood-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","name":"example_name","restaurantId":"example_restaurantId","restaurantName":"example_restaurantName","citySlug":"example_citySlug"}],"meta":{"site":"ifood-com-br","endpoint":"stores","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"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/ifood-com-br/v1/reviews":{"post":{"operationId":"ifood_com_br_reviews","summary":"iFood Brazil Restaurants and Menus: Store reviews","description":"Review rows for one store, newest first, optionally only since a date. Unit price: $0.003000/row USDC (default quote 5 rows, max 10 rows). Unsettled / 0-row / error responses are never charged.","tags":["ifood-com-br","Food"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.015000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"merchantUrl":{"type":"string","description":"An iFood merchant URL in the form https://www.ifood.com.br/delivery/{city}/{slug}/{uuid}. Use this instead of merchantUuid.","pattern":"^(https?://)?([A-Za-z0-9-]+\\.)*ifood\\.com\\.br(/.*)?$"},"merchantUuid":{"type":"string","description":"Merchant identifier from an iFood merchant URL. Use this instead of merchantUrl."},"merchantSlug":{"type":"string","description":"Optional merchant-name segment from an iFood merchant URL."},"citySlug":{"type":"string","description":"City and state slug, such as sao-paulo-sp or rio-de-janeiro-rj. Supported place-based modes use Sao Paulo when no other location is supplied."},"reviewPage":{"type":"integer","description":"First review page to request. Page numbering starts at 1.","default":1,"minimum":1,"maximum":50},"reviewPageSize":{"type":"integer","description":"Number of reviews requested per page, subject to the remaining row allowance.","default":30,"minimum":1,"maximum":50},"updatedSince":{"type":"string","description":"ISO-8601 date or date-time, such as 2026-11-01 or 2026-11-01T00:00:00Z. iFood's listing and review pages have no server-side date filter, so reviews older than this are dropped after they are read; other modes ignore it and add a noTimeFilter warning to RUN_SUMMARY.","pattern":"^\\s*(\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2})?)?)?\\s*$"},"maxResults":{"type":"integer","description":"Maximum rows per start URL, or for the single target in other modes; all row types share that allowance, with requests above 70 collected in parts of at most 70 rows. The default is 70, subject to the run cost limit and Free-plan limits of 200 rows per run and 10 runs.","default":5,"minimum":1,"maximum":10}},"additionalProperties":false},"example":{"merchantUrl":"https://www.ifood.com.br/delivery/sao-paulo-sp/212-burger-pinheiros-pinheiros/d468b0b0-a18f-4ecc-9631-6faf2aa8eeb0","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_ifood_com_br"},"example":{"jobId":"job_ifood-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","name":"example_name","restaurantId":"example_restaurantId","restaurantName":"example_restaurantName","citySlug":"example_citySlug"}],"meta":{"site":"ifood-com-br","endpoint":"reviews","maxResults":5,"payment":{"scheme":"upto","network":"eip155:84532","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"}}}},"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/ifood-com-br/v1/health":{"get":{"operationId":"ifood_com_br_health","summary":"iFood Brazil Restaurants and Menus: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["ifood-com-br","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_ifood_com_br":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"ID"},"name":{"type":["string","null"],"title":"Name"},"restaurantId":{"type":["string","null"],"title":"Restaurant ID"},"restaurantName":{"type":["string","null"],"title":"Restaurant"},"citySlug":{"type":["string","null"],"title":"City"},"mainCategory":{"type":["string","null"],"title":"Category"},"evaluationAverage":{"type":["string","null"],"title":"Rating"},"userRatingCount":{"type":["string","null"],"title":"Ratings"},"priceRange":{"type":["string","null"],"title":"Price range"},"deliveryFee":{"type":["string","null"],"title":"Delivery fee"},"deliveryTimeMin":{"type":["string","null"],"title":"Delivery min"},"deliveryTimeMax":{"type":["string","null"],"title":"Delivery max"},"distance":{"type":["string","null"],"title":"Distance (km)"},"preparationTime":{"type":["string","null"],"title":"Prep (min)"},"available":{"type":["string","null"],"title":"Available"},"phoneIf":{"type":["string","null"],"title":"Phone"},"cnpj":{"type":["string","null"],"title":"CNPJ"},"addressStreet":{"type":["string","null"],"title":"Address"},"chainName":{"type":["string","null"],"title":"Chain"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"scrapedAt":{"type":["string","null"],"title":"Scraped"}},"additionalProperties":true},"Response_ifood_com_br":{"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_ifood_com_br"}},"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"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}