# iFood Restaurants Scraper · City URL discovery · $3/1K (`mlg14/ifood-scraper`) Actor

Collect public iFood restaurants by city or from supplied URLs for directory building, entity matching and coverage checks. Exports merchant IDs, slugs and coverage status, no menus yet. $3/1K restaurants.

- **URL**: https://apify.com/mlg14/ifood-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## iFood Restaurants Scraper

iFood Restaurants Scraper collects public iFood restaurant URLs by city and exports structured restaurant records to JSON, CSV, or a spreadsheet. This iFood data export provides stable merchant identifiers, city slugs, source dates, and explicit coverage status; live restaurant details are included only when the public page responds.

**Current source status:** A verified run returned 30 restaurant records for `fortaleza-ce`, but the live restaurant page returned a challenge. That run did not capture ratings, delivery fees, menus, prices, or reviews. The actor reports these gaps in each result. Use it today for restaurant URL discovery and identity matching, and check `enrichmentStatus` before using any row for menu or pricing analysis.

### What data can you extract from iFood?

The public sitemap provides restaurant URLs, merchant identifiers, city slugs, URL slugs, and sometimes a modification date. A readable `name` is generated from the URL slug until a public page supplies a verified name. It may differ from the restaurant's displayed name or omit accents. The actor attempts page enrichment once per run; after a block, it stops repeating the same blocked request for every restaurant. Null values mean the source did not supply a value during that run. Zero counts in an uncaptured menu mean zero items *captured*, not that the restaurant has no items.

| Field | Description | Example or current state |
|---|---|---|
| `merchantId` | Stable identifier in the restaurant URL | `8a230fc1-...` |
| `url` | Canonical restaurant page URL | `/delivery/fortaleza-ce/...` |
| `city` | City slug from the URL | `fortaleza-ce` |
| `slug` | Restaurant path segment | `pao-de-acucar---nautico-meireles` |
| `lastModified` | Sitemap modification timestamp | `2023-10-05T17:01:20.659Z` |
| `name` | Page name if captured; otherwise readable URL label | `Pao De Acucar   Nautico Meireles` |
| `nameSource` | Provenance of `name` | `url-slug` |
| `category` | Cuisine or store category, if exposed | `null` when blocked |
| `distance` | Location-dependent distance | `null` without delivery context |
| `rating` | Aggregate rating, if exposed | `null` when blocked |
| `reviewsCount` | Aggregate review count, if exposed | `null` when blocked |
| `available` | Current open or available state | `null` when blocked |
| `deliveryFee` | Delivery charge in BRL | `null` without live context |
| `deliveryTime` | Delivery estimate | `null` without live context |
| `minimumOrderValue` | Minimum order amount | `null` when blocked |
| `currency` | Monetary currency code | `BRL` |
| `address` | Restaurant address, if exposed | `null` when blocked |
| `dataSource` | Source that contributed to the row | `sitemap` |
| `enrichmentStatus` | Live page access result | `blocked` |
| `menuRequested` | Whether menu data was requested | `true` |
| `menuMode` | Requested local cap behavior | `limited` |
| `menuExtractionStatus` | Whether menu data was captured | `not-captured` |
| `menuCompletenessStatus` | Menu coverage assessment | `not-extracted` |
| `menuSource` | Source of captured menu items | `null` |
| `menuSearchTerms` | Terms used by a menu fallback | `null` |
| `menuItemsDiscovered` | Unique menu items observed | `0` when none captured |
| `menuItemsReturned` | Menu items in this row | `0` when none captured |
| `menuTruncated` | Whether a local cap removed captured items | `false` |
| `menuLimitApplied` | Requested local cap in limited mode | `50` |
| `pagesFetched` | Successful menu source responses | `0` when none captured |
| `stopReason` | Reason menu collection stopped | `live-source-unavailable` |
| `menuItemCount` | Length of returned `menu` | `0` when none captured |
| `avgMenuPrice` | Mean price of returned items | `null` without items |
| `cheapestItem` | Lowest-priced returned item | `null` without items |
| `cheapestPrice` | Price of that item | `null` without items |
| `mostExpensiveItem` | Highest-priced returned item | `null` without items |
| `mostExpensivePrice` | Price of that item | `null` without items |
| `topMenuItems` | Short summary of returned items | `null` without items |
| `menu` | Captured menu item array | `[]` when not captured |
| `reviewsRequested` | Whether reviews were requested | `false` by default |
| `reviewsExtractionStatus` | Review capture status | `not-requested` |
| `reviews` | Captured public review array | `[]` when not captured |
| `scrapedAt` | UTC record creation time | ISO timestamp |

The fields are intentionally stable across runs. A later run may fill some live fields if public access changes, while the identity and coverage columns remain available for joining datasets and comparing runs. Always inspect `nameSource` before using `name` as an exact business name. For matching, `merchantId` is safer than the label because punctuation, accents, and branch descriptors in a URL can differ from the storefront title.

### How to scrape iFood

1. Choose **URL mode** if you already have restaurant page URLs. Paste them into `restaurantUrls`; each valid, unique URL can produce one record. The URL must contain a city slug, restaurant slug, and merchant identifier.
2. Choose **city discovery** if you need a list. Enter the city slug from a restaurant URL, such as `fortaleza-ce`, and set `maxRestaurants`. City discovery reads public sitemap entries and does not use a delivery address to rank nearby restaurants.
3. Optionally enter a `query` to retain URLs whose restaurant slug contains that text. For example, `pizza` matches slugs containing those letters. This filter is applied locally to the sitemap; it is not the site's search ranking.
4. Run the actor and inspect `enrichmentStatus`, `menuCompletenessStatus`, and `nameSource` in the first rows. Export the default dataset in the format needed by your analysis workflow.

For a first run, use a city with known public sitemap coverage and a small limit. The verified input below returned 30 records. A zero-result run can mean that the chosen city has no entries in the available shards, the filter is too narrow, or the sitemap could not be fetched at that time. Changing the address will not repair a city lookup because the address is not applied to sitemap discovery.

### Input

| Parameter | Type | Default | Description |
|---|---|---|---|
| `restaurantUrls` | array of strings | Empty | Direct restaurant URLs. Suppresses city discovery when supplied. |
| `city` | string | `fortaleza-ce` | Exact city slug for public sitemap discovery. |
| `address` | string | Empty | Optional reference text; it does not set a delivery location in the current source. |
| `query` | string | Empty | Case-insensitive substring filter on URL slugs. |
| `maxRestaurants` | integer | `50` | Maximum unique rows, from 1 to 500. |
| `includeMenu` | boolean | `true` | Records whether menu data is requested; empty results have explicit status. |
| `includeReviews` | boolean | `false` | Records whether public reviews are requested; empty results have explicit status. |
| `menuMode` | string | `limited` | `limited` or `all`; controls a prospective local item cap. |
| `maxMenuItems` | integer | `50` | Local cap in limited mode, from 1 to 500. |
| `proxyConfiguration` | object | Platform default | Optional network configuration. Retry and escalation may be needed for sitemap access. |

**Verified city input:**

```json
{
  "city": "fortaleza-ce",
  "maxRestaurants": 30,
  "includeMenu": true,
  "includeReviews": false
}
```

**Direct URL input:**

```json
{
  "restaurantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/bubblekill-patio-paulista-bela-vista/5024be82-d729-41b9-a64f-d44ba306f232"
  ],
  "maxRestaurants": 1,
  "includeMenu": true
}
```

Direct URLs provide identity fields even when live pages cannot be reached. They do not require a city lookup. A URL copied from an old listing might point to a closed or renamed restaurant; a valid URL structure alone does not prove current trading status. The `available` field stays null unless the live source actually supplies it. Duplicate merchant identifiers are removed before output, and malformed URLs are skipped with a run warning.

### Output example

This is one row from the 30-record verified run. It shows the coverage state seen during that run; the empty menu is an access result, not a statement about the restaurant's actual catalog.

```json
{
  "merchantId": "8a230fc1-2c5b-4a8d-b02a-e107c9d6d99b",
  "city": "fortaleza-ce",
  "slug": "pao-de-acucar---nautico-meireles",
  "url": "https://www.ifood.com.br/delivery/fortaleza-ce/pao-de-acucar---nautico-meireles/8a230fc1-2c5b-4a8d-b02a-e107c9d6d99b",
  "lastModified": "2023-10-05T17:01:20.659Z",
  "name": "Pao De Acucar   Nautico Meireles",
  "nameSource": "url-slug",
  "rating": null,
  "deliveryFee": null,
  "currency": "BRL",
  "dataSource": "sitemap",
  "enrichmentStatus": "blocked",
  "menuRequested": true,
  "menuMode": "limited",
  "menuExtractionStatus": "not-captured",
  "menuCompletenessStatus": "not-extracted",
  "menuItemsReturned": 0,
  "menu": [],
  "reviewsRequested": false,
  "reviewsExtractionStatus": "not-requested",
  "reviews": [],
  "scrapedAt": "2026-09-26T21:33:10.750581+00:00"
}
```

Other optional fields in the table are present in the actual row and were null, zero, or empty in this run. The example is shortened to make the status fields easy to inspect. The sitemap's `lastModified` describes its entry; it is not proof that the menu, delivery fee, or business status was updated on that date.

### Use cases

- **Directory building:** Start a list of restaurant page URLs for a city, retain merchant IDs, and deduplicate repeated sightings across later runs.
- **Entity matching:** Join a known set of merchant IDs to another authorized dataset without relying on a displayed name that may change or lose accents.
- **City coverage checks:** Compare counts of public sitemap entries across city slugs, while treating the count as indexed coverage rather than the number of active restaurants.
- **Change monitoring:** Store URL, slug, and sitemap date over time to detect renamed paths or removed public entries. Confirm material business changes from an independent live source before acting on them.
- **Lead list preparation:** Create a review queue of public restaurant pages for manual verification. The output does not include owner contact details or private customer data.
- **Access monitoring:** Track the coverage status fields across scheduled runs to see whether live page data has become reachable or has stopped responding.

The actor's current verified use is identity discovery. It is not a verified source for competitive menu pricing, customer sentiment, or delivery economics while live pages remain blocked. If those measures are central to a decision, wait for a run with nonempty live data and check the coverage fields before calculating averages or comparing businesses.

### How much does it cost to scrape iFood?

The configured result charge is **$3 per 1,000 emitted restaurant records**, or $0.003 per record. The limit controls how many records can be emitted, not how many sitemap entries may be inspected while finding them. At that rate, 30 results correspond to $0.09 in result charges; 100 results correspond to $0.30; and 1,000 results correspond to $3.00. A 500-result input cap corresponds to $1.50 if all 500 records are emitted. Actual charges depend on the result count and the platform's billing rules. Compute, storage, and proxy traffic may add usage charges.

A small exploratory run is sensible because the current output does not include live menus or prices. The verified 30-row run completed in under a minute and had a small measured platform usage amount, but runtime and network charges can change with retries and proxy escalation. A blocked live page is tested once and then skipped for the rest of the run, avoiding repeated attempts that would delay every row. A failed sitemap fetch can still consume time without producing chargeable dataset rows.

### Tips for best results

Use the exact city slug found in an iFood restaurant URL. Accents and spaces in a human-readable city name are not accepted as a substitute for that slug. Set `maxRestaurants` to the number of URLs you can review or process downstream. The public sitemap is divided into shards, and a city may appear in a later shard, so a lookup can take longer than a direct URL input.

Keep `query` broad enough to match URL slugs. A restaurant's displayed name may use punctuation or spelling that the slug does not preserve. `query` only tests the slug; it does not search menu item names, cuisine labels, neighborhoods, or review text. If a query yields zero rows, try the same city without `query` before concluding that the city is absent.

For exact business matching, keep `merchantId` as your key. Treat `name` as a display convenience when `nameSource` is `url-slug`. Read `enrichmentStatus` before using ratings or operational data, and require `menuCompletenessStatus` to indicate meaningful capture before computing menu statistics. An empty `menu` paired with `not-extracted` must be excluded from price calculations.

### Limits

The verified source is a public XML sitemap. It may omit unindexed restaurants, include URLs for closed stores, or show a modification date unrelated to a menu change. The site can also challenge requests to sitemap shards, so results can vary across runs. This actor scans a defined set of public shards and stops at the requested result count; it is not a census of every restaurant on the platform.

The live restaurant page returned HTTP 403 in both ordinary and Brazilian residential browser runs during development. The catalog endpoint and alternate mobile-style hosts were also blocked or unavailable. As a result, the golden run had no verified restaurant rating, fee, availability, menu item, price, or review content. These fields are retained in the schema for compatibility and are null or empty when not observed. This is a material limitation for restaurant intelligence work.

City discovery does not geocode `address`, rank by delivery distance, or reproduce a customer search session. `distance`, `deliveryFee`, `deliveryTime`, and `available` depend on live location context and should not be inferred from the city slug. `includeMenu`, `includeReviews`, and menu cap controls describe requested coverage, but a blocked live source cannot satisfy them. `menuMode: "all"` removes a local cap only; it never proves external completeness. These distinctions are reflected in each record's status and count fields.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/ifood-scraper`

An agent gets back one record per iFood restaurant with `merchantId`, `url`, `city`, `slug`, `name` and coverage status fields such as `enrichmentStatus`. Keep `maxRestaurants` small to bound run time and the $3 per 1,000 results cost.

**Prompt 1:** "List 20 iFood restaurants in Fortaleza."

```json
{
  "city": "fortaleza-ce",
  "maxRestaurants": 20
}
```

**Prompt 2:** "Find iFood pizza restaurants in Sao Paulo."

```json
{
  "city": "sao-paulo-sp",
  "query": "pizza",
  "maxRestaurants": 20,
  "includeMenu": false
}
```

**Prompt 3:** "Get the iFood record for this restaurant URL."

```json
{
  "restaurantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/bubblekill-patio-paulista-bela-vista/5024be82-d729-41b9-a64f-d44ba306f232"
  ],
  "maxRestaurants": 1
}
```

### FAQ

**Is it legal to collect these records?** The actor reads public URLs and metadata. Review the site's terms and applicable law for your use, respect privacy requirements, and avoid using public data to infer private customer or owner information. Public visibility does not grant every possible reuse right.

**Do I need a proxy?** A normal route is tried first. Sitemap requests sometimes required retries and escalation in the verified work. A Brazilian residential browser route did not clear the live page challenge, so adding an expensive proxy does not guarantee menu access.

**How fast is it?** The 30-record golden run completed in under a minute. A direct URL batch may be faster because it skips sitemap discovery. Network retries, later city shards, and temporary blocks can increase runtime.

**Can I schedule and monitor it?** Yes. Run it on a schedule and retain output datasets. Compare `merchantId`, `url`, and `lastModified` between runs, and alert when `enrichmentStatus` or result counts change. A sitemap change is a lead for verification, not proof of a real-world change.

**Can I export to a spreadsheet?** Yes. Download the default dataset as CSV or JSON and import it into your preferred spreadsheet. Arrays such as `menu` and `reviews` are easier to inspect in JSON; the current verified rows contain empty arrays.

**Why is a field empty?** Look at `dataSource`, `enrichmentStatus`, `menuExtractionStatus`, and `menuCompletenessStatus`. Null live fields in the verified run came from a blocked page. A zero menu count means nothing was captured, not that the merchant sells nothing.

**Does the address find nearby restaurants?** No. City discovery filters public sitemap URLs by exact city slug. The optional address is retained only as input context and does not set a delivery location or change ranking. Use direct URLs when a precise set of merchants is already known.

### Integrations

The dataset can feed an API client, a scheduled reporting job, a webhook consumer, or a spreadsheet import. Use `merchantId` as the join key and filter out rows with `enrichmentStatus: "blocked"` when a workflow requires live business facts. Keep the coverage columns when forwarding records so later consumers do not mistake missing values for measured zeros.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request. Include the city slug or a public example URL, the run time, and the relevant status fields so the source behavior can be reproduced.

# Actor input Schema

## `restaurantUrls` (type: `array`):

Public iFood restaurant URLs to process directly, each with city, slug and merchant ID. Example: https://www.ifood.com.br/delivery/sao-paulo-sp/name/5024be82-d729-41b9-a64f-d44ba306f232. Leave empty to discover by city.

## `city` (type: `string`):

City slug taken from an iFood restaurant URL, used to find restaurants in the public sitemap. Example: fortaleza-ce or sao-paulo-sp. Use it for city discovery; ignored when restaurantUrls is set.

## `address` (type: `string`):

Optional delivery address kept as reference text only; it does not filter or rank results. Example: Av. Paulista 1000, Sao Paulo. Leave empty in almost every run because discovery works by city slug.

## `query` (type: `string`):

Optional case-insensitive text that the restaurant URL slug must contain. Example: pizza keeps slugs containing pizza. Use it to narrow a city list; leave empty for all restaurants. It is not a full-text search.

## `maxRestaurants` (type: `integer`):

Maximum number of unique restaurant records to return, from 1 to 500. Example: 30. Use a small value for tests and cost control, since each returned restaurant record is billed.

## `includeMenu` (type: `boolean`):

Request menu data for each restaurant. Allowed values: true or false. Example: true. Leave true by default; when the live page is blocked the menu stays empty and a coverage status says not-extracted.

## `includeReviews` (type: `boolean`):

Request public reviews for each restaurant. Allowed values: true or false. Example: true. Set true only if you want review data attempted; leave false by default, since blocked pages return an empty list.

## `menuMode` (type: `string`):

How many menu items to keep when menu data is available. Allowed values: limited, all. Example: limited. Use limited to cap items at maxMenuItems; set all to remove the local cap.

## `maxMenuItems` (type: `integer`):

Local cap on menu items per restaurant when menuMode is limited, from 1 to 500. Example: 50. Use a lower value for smaller records; it has no effect when menuMode is all or menus are blocked.

## `proxyConfiguration` (type: `object`):

Optional proxy settings for network requests. Example: {"useApifyProxy": true}. Leave empty to start with datacenter access and escalate only if sitemap requests are blocked.

## Actor input object example

```json
{
  "city": "fortaleza-ce",
  "address": "",
  "query": "",
  "maxRestaurants": 50,
  "includeMenu": true,
  "includeReviews": false,
  "menuMode": "limited",
  "maxMenuItems": 50
}
```

# Actor output Schema

## `restaurants` (type: `string`):

Restaurant records and coverage status in the default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "city": "fortaleza-ce"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/ifood-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "city": "fortaleza-ce" }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/ifood-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "city": "fortaleza-ce"
}' |
apify call mlg14/ifood-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mlg14/ifood-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/F5MUmGZcVHoBzbjOt/builds/osrncf7Mm6kBFVTxF/openapi.json
