{"openapi":"3.0.0","info":{"title":"iFood Brazil Restaurants and Menus","version":"1.0.0","description":"Public iFood (Brazil) restaurants, grocery stores, menu items and reviews, one row per entity."},"servers":[{"url":"https://ah-ifood-com-br.opendata.best/s/ifood-com-br"}],"paths":{"/v1/search":{"post":{"operationId":"search","summary":"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.","tags":["search"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["auto","city","category","mercado","chain","nearMe","home","browse"],"description":"Mode. 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","example":"category"},"citySlug":{"type":"string","description":"City slug. 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.","example":"sao-paulo-sp"},"searchTerm":{"type":"string","description":"Search term. Words to search for, such as pizza or hamburguer. Use Portuguese terms for local searches.","example":"pizza"},"categorySlug":{"type":"string","description":"Category / search vertical. Cuisine or vertical to search, such as pizza, japonesa or mercado. Used by category mode."},"chainName":{"type":"string","description":"Chain name. Chain or brand name to search for, such as Burger King. Used by chain mode."},"cep":{"type":"string","description":"CEP. Eight-digit Brazilian postal code, with or without a hyphen. Used to choose the search location."},"address":{"type":"string","description":"Address. Brazilian location or address text used to locate the search area."},"latitude":{"type":"number","description":"Latitude. Delivery latitude. Provide longitude as well when specifying coordinates."},"longitude":{"type":"number","description":"Longitude. Delivery longitude. Provide latitude as well when specifying coordinates."},"pageId":{"type":"string","description":"Browse pageId. Known iFood browse-page identifier. Required for browse mode."},"sortBy":{"type":"string","description":"Sort. Optional sorting value supported by iFood for the selected search."},"mainCategoryFilter":{"type":"string","description":"Main category filter. Keep merchants whose main category contains this text."},"includeVerticals":{"type":"array","items":{"type":"string"},"description":"Include verticals. Keep merchants matching these vertical keywords, such as mercado or farmacia."},"cnpj":{"type":"string","description":"CNPJ filter (14 digits). 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."},"onlyWithCnpj":{"type":"boolean","description":"Only return merchants with CNPJ. Keep only merchant rows whose iFood merchant details list a CNPJ.","default":false},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"citySlug":"sao-paulo-sp","searchTerm":"pizza","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/stores":{"post":{"operationId":"stores","summary":"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.","tags":["stores"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","enum":["merchant","menu","startUrls"],"description":"Mode. 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","example":"category"},"merchantUrl":{"type":"string","description":"Merchant URL. An iFood merchant URL in the form https://www.ifood.com.br/delivery/{city}/{slug}/{uuid}. Use this instead of merchantUuid."},"merchantUuid":{"type":"string","description":"Merchant UUID. Merchant identifier from an iFood merchant URL. Use this instead of merchantUrl."},"merchantSlug":{"type":"string","description":"Merchant slug. Optional merchant-name segment from an iFood merchant URL."},"citySlug":{"type":"string","description":"City slug. 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.","example":"sao-paulo-sp"},"startUrls":{"type":"array","items":{"type":"string"},"description":"Start URLs. List of iFood merchant, city or category URLs. Each URL has its own maxResults allowance."},"includeMenuItems":{"type":"boolean","description":"Include menu items. Include separate menu item rows with merchant data. Off by default; each delivered row is billed and counts toward maxResults.","default":false,"example":false},"includeDishes":{"type":"boolean","description":"Include dish cards from search. Include separate dish rows from search. Off by default; each delivered dish is billed and counts toward maxResults.","default":false,"example":false},"includeChoices":{"type":"boolean","description":"Fetch menu choice groups. 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,"example":false},"enrichMenus":{"type":"boolean","description":"Enrich menus from list. Request menu item rows for merchants found in listings. Off by default; each delivered item is billed and counts toward maxResults.","default":false,"example":false},"enrichDetails":{"type":"boolean","description":"Enrich merchant details. Request additional merchant details, such as delivery fees, address, contact number and business registration. Fields may be absent when not available.","default":false,"example":false},"maxEnrich":{"type":"integer","minimum":0,"maximum":50,"description":"Max merchants to enrich. Maximum number of listed merchants for which to request additional details or menu rows.","default":5,"example":3},"loadMoreRounds":{"type":"integer","minimum":0,"maximum":20,"description":"Additional search pages. Additional search pages after the first page, subject to the row limit.","default":0},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"merchantUrl":"https://www.ifood.com.br/delivery/sao-paulo-sp/212-burger-pinheiros-pinheiros/d468b0b0-a18f-4ecc-9631-6faf2aa8eeb0","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reviews":{"post":{"operationId":"reviews","summary":"Store reviews","description":"Review rows for one store, newest first, optionally only since a date. Fixed for this endpoint: mode=\"reviews\".","tags":["reviews"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"merchantUrl":{"type":"string","description":"Merchant URL. An iFood merchant URL in the form https://www.ifood.com.br/delivery/{city}/{slug}/{uuid}. Use this instead of merchantUuid."},"merchantUuid":{"type":"string","description":"Merchant UUID. Merchant identifier from an iFood merchant URL. Use this instead of merchantUrl."},"merchantSlug":{"type":"string","description":"Merchant slug. Optional merchant-name segment from an iFood merchant URL."},"citySlug":{"type":"string","description":"City slug. 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.","example":"sao-paulo-sp"},"reviewPage":{"type":"integer","minimum":1,"maximum":50,"description":"Reviews start page. First review page to request. Page numbering starts at 1.","default":1},"reviewPageSize":{"type":"integer","minimum":1,"maximum":50,"description":"Reviews page size. Number of reviews requested per page, subject to the remaining row allowance.","default":30},"updatedSince":{"type":"string","description":"Updated since (client-side for reviews). ISO-8601 date or date-time, such as 2026-11-01 or 2026-11-01T00:00:00Z."},"maxResults":{"type":"integer","minimum":1,"maximum":20,"description":"Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).","default":10,"example":3},"requestId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,80}$","description":"Optional. Your id for this request: repeating it while the job runs returns the same job."}}},"example":{"merchantUrl":"https://www.ifood.com.br/delivery/sao-paulo-sp/212-burger-pinheiros-pinheiros/d468b0b0-a18f-4ecc-9631-6faf2aa8eeb0","maxResults":3}}}},"responses":{"200":{"description":"Done within the request: the rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowsPage"}}}},"404":{"description":"No results matched the query (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Invalid or missing parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"At capacity, too many running jobs, or rolling 24-hour row limit reached; retry after Retry-After seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"The source could not be collected this time (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"504":{"description":"Synchronous timeout reached before completion; task cancelled (nothing was billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"health","summary":"API health check","description":"Lightweight readiness check for this API. Never starts a collection and always bills 0 rows.","tags":["health"],"responses":{"200":{"description":"API is operational (0 rows).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"API is temporarily unavailable (not billed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"Row":{"type":"object","properties":{"rowType":{"nullable":true,"type":"string","title":"Row type"},"id":{"nullable":true,"type":"string","title":"Stable row ID"},"itemType":{"nullable":true,"type":"string","title":"Item type"},"source":{"nullable":true,"type":"string","title":"Source"},"country":{"nullable":true,"type":"string","title":"Country (fixed br)"},"citySlug":{"nullable":true,"type":"string","title":"City slug"},"city":{"nullable":true,"type":"string","title":"City"},"uf":{"nullable":true,"type":"string","title":"State (UF)"},"stateCode":{"nullable":true,"type":"string","title":"State code"},"latitude":{"nullable":true,"type":"number","title":"Latitude"},"longitude":{"nullable":true,"type":"number","title":"Longitude"},"merchantUuid":{"nullable":true,"type":"string","title":"Merchant UUID"},"merchantSlug":{"nullable":true,"type":"string","title":"Merchant slug"},"slug":{"nullable":true,"type":"string","title":"URL slug"},"restaurantId":{"nullable":true,"type":"string","title":"Restaurant ID"},"restaurantName":{"nullable":true,"type":"string","title":"Restaurant name"},"restaurantUrl":{"nullable":true,"type":"string","title":"Restaurant URL"},"merchantName":{"nullable":true,"type":"string","title":"Merchant name"},"merchantUrl":{"nullable":true,"type":"string","title":"Merchant URL"},"productId":{"nullable":true,"type":"string","title":"Product / item ID"},"itemId":{"nullable":true,"type":"string","title":"Item ID"},"title":{"nullable":true,"type":"string","title":"Title"},"name":{"nullable":true,"type":"string","title":"Name"},"description":{"nullable":true,"type":"string","title":"Description / legal name"},"url":{"nullable":true,"type":"string","title":"URL"},"shortId":{"nullable":true,"type":"string","title":"Short ID"},"mainCategory":{"nullable":true,"type":"string","title":"Main category"},"mainCategoryCode":{"nullable":true,"type":"string","title":"Main category code"},"mainCategoryName":{"nullable":true,"type":"string","title":"Main category name"},"category":{"nullable":true,"type":"string","title":"Menu category"},"categorySlug":{"nullable":true,"type":"string","title":"Category slug"},"searchTerm":{"nullable":true,"type":"string","title":"Search term"},"code":{"nullable":true,"type":"string","title":"Category code"},"filterTab":{"nullable":true,"type":"string","title":"Filter tab"},"evaluationAverage":{"nullable":true,"type":"number","title":"Rating"},"userRating":{"nullable":true,"title":"User rating (alias)"},"userRatingCount":{"nullable":true,"title":"Rating count"},"price":{"nullable":true,"title":"Price"},"minPrice":{"nullable":true,"type":"number","title":"Min price"},"unitPrice":{"nullable":true,"type":"number","title":"Unit price"},"originalPrice":{"nullable":true,"type":"number","title":"Original price"},"priceRange":{"nullable":true,"title":"Price range"},"currency":{"nullable":true,"type":"string","title":"Currency"},"minimumOrderValue":{"nullable":true,"type":"number","title":"Minimum order value"},"ean":{"nullable":true,"type":"string","title":"EAN barcode"},"deliveryFee":{"nullable":true,"title":"Delivery fee"},"deliveryTime":{"nullable":true,"title":"Delivery time"},"deliveryTimeMin":{"nullable":true,"type":"number","title":"Minimum delivery time (minutes)"},"deliveryTimeMax":{"nullable":true,"type":"number","title":"Maximum delivery time (minutes)"},"deliveredBy":{"nullable":true,"type":"string","title":"Delivered by"},"deliveryMethods":{"nullable":true,"type":"array","title":"Delivery methods","items":{}},"distance":{"nullable":true,"type":"number","title":"Distance (km)"},"distances":{"nullable":true,"title":"Distance detail"},"preparationTime":{"nullable":true,"type":"number","title":"Preparation time (min)"},"takeoutTime":{"nullable":true,"title":"Takeout time"},"available":{"nullable":true,"title":"Available"},"availableForOrder":{"nullable":true,"type":"boolean","title":"Available for order"},"enabled":{"nullable":true,"type":"boolean","title":"Enabled"},"closed":{"nullable":true,"type":"boolean","title":"Closed"},"needChoices":{"nullable":true,"type":"boolean","title":"Requires choices"},"choices":{"nullable":true,"type":"array","title":"Choice groups","items":{}},"optionGroupReason":{"nullable":true,"type":"string","title":"Why choice groups are absent"},"choicesRef":{"nullable":true,"type":"object","title":"Input that fetches the choice groups"},"availabilityRaw":{"nullable":true,"title":"Availability (as listed)"},"sectionCode":{"nullable":true,"type":"string","title":"Menu section code"},"phoneIf":{"nullable":true,"type":"string","title":"Merchant contact number"},"cnpj":{"nullable":true,"type":"string","title":"CNPJ"},"mcc":{"nullable":true,"type":"string","title":"MCC"},"shifts":{"nullable":true,"type":"array","title":"Shift schedule","items":{}},"openingHours":{"nullable":true,"type":"array","title":"Opening hours","items":{}},"address":{"nullable":true,"type":"object","title":"Merchant address"},"addressCheck":{"nullable":true,"title":"Delivery address check"},"addressStreet":{"nullable":true,"type":"string","title":"Address street (joined)"},"chainName":{"nullable":true,"type":"string","title":"Chain name"},"chainId":{"nullable":true,"type":"string","title":"Chain ID"},"catalogGroup":{"nullable":true,"type":"string","title":"Catalog group"},"regionGroup":{"nullable":true,"type":"string","title":"Region group"},"context":{"nullable":true,"title":"Context"},"features":{"nullable":true,"type":"array","title":"Features","items":{}},"paymentCodes":{"nullable":true,"type":"array","title":"Payment codes","items":{}},"resources":{"nullable":true,"type":"array","title":"Resources","items":{}},"tags":{"nullable":true,"type":"array","title":"Tags","items":{}},"productTags":{"nullable":true,"type":"array","title":"Product tags","items":{}},"logoUrl":{"nullable":true,"type":"string","title":"Logo URL"},"headerUrl":{"nullable":true,"type":"string","title":"Header URL"},"imageUrl":{"nullable":true,"type":"string","title":"Image URL"},"intentionLabel":{"nullable":true,"type":"string","title":"Intention label"},"intentionType":{"nullable":true,"type":"string","title":"Intention type"},"displayLabel":{"nullable":true,"type":"string","title":"Display label"},"rating":{"nullable":true,"type":"number","title":"Review score"},"comment":{"nullable":true,"type":"string","title":"Review comment"},"createdAt":{"nullable":true,"type":"string","title":"Review created at"},"userName":{"nullable":true,"type":"string","title":"Reviewer name"},"reviewId":{"nullable":true,"type":"string","title":"Review ID"},"evaluationId":{"nullable":true,"type":"string","title":"Evaluation ID"},"reviewPage":{"nullable":true,"type":"integer","title":"Review page"},"surveyId":{"nullable":true,"type":"string","title":"Survey ID"},"customerName":{"nullable":true,"type":"string","title":"Customer display name"},"commentDate":{"nullable":true,"title":"Comment date (as listed)"},"questionsValueAvg":{"nullable":true,"type":"number","title":"Average question score"},"evaluationItens":{"nullable":true,"type":"array","title":"Rated order items","items":{}},"reply":{"nullable":true,"type":"string","title":"Merchant reply"},"replyDate":{"nullable":true,"type":"string","title":"Merchant reply date"},"orderDeliveryDate":{"nullable":true,"title":"Order delivery date"},"orderNumber":{"nullable":true,"title":"Order number"},"moderated":{"nullable":true,"type":"boolean","title":"Moderated"},"visible":{"nullable":true,"type":"boolean","title":"Visible"},"status":{"nullable":true,"type":"string","title":"Review status"},"restaurant":{"nullable":true,"title":"Reviewed restaurant"},"enrichedFrom":{"nullable":true,"type":"string","title":"Additional detail source"},"page":{"nullable":true,"type":"integer","title":"Page"},"discoveredMerchantHrefs":{"nullable":true,"type":"array","title":"Discovered merchant links","items":{}},"extraVersionId":{"nullable":true,"type":"string","title":"Additional detail version"},"extraSnapshotExpiresAt":{"nullable":true,"type":"string","title":"Additional detail expiry"},"extraS3RequestId":{"nullable":true,"type":"string","title":"Additional detail request reference"},"extraS3HostId":{"nullable":true,"type":"string","title":"Additional detail host reference"},"extraSourceLayer":{"nullable":true,"type":"string","title":"Additional detail source label"},"engineUsed":{"nullable":true,"type":"string","title":"Collection engine"},"egressRoute":{"nullable":true,"type":"string","title":"Network route label"},"scrapedAt":{"nullable":true,"type":"string","title":"Scraped at"}},"additionalProperties":true,"description":"One collected entity. Field availability depends on rowType and the source. Fields always present (a|b = at least one of them): every row: id; rowType=category: id, name; rowType=menuItem: id, name, price, restaurantId; rowType=restaurant: id, name; rowType=review: id, rating, createdAt, restaurantId."},"Error":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","example":"invalid_input"},"message":{"type":"string"},"retryable":{"type":"boolean"}}},"JobStatus":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"]},"done":{"type":"boolean"},"rowsAvailable":{"type":"integer"},"rowsDelivered":{"type":"integer","description":"Rows already delivered (and billed) to you for this job."},"rowsLimit":{"type":"integer","description":"Most rows this job can deliver."},"estimatedFinishSec":{"type":"integer","description":"While running: estimated seconds until done."},"statusUrl":{"type":"string"},"resultsUrl":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"},"retentionHours":{"type":"integer"},"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"RowsPage":{"allOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"object","properties":{"offset":{"type":"integer"},"nextOffset":{"type":"integer"},"hasMore":{"type":"boolean"},"rowCount":{"type":"integer"},"rowsBilled":{"type":"integer","description":"Rows delivered by this response."},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row"}},"meta":{"type":"object","additionalProperties":true}}}]},"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"}}}}}}