# iFood Restaurant Scraper (`crawloop/ifood-restaurant-scraper`) Actor

Scrape iFood Brazil restaurants from a URL or store id: name, rating, address, CNPJ, opening hours, and menu items with prices. JSON export for delivery market research.

- **URL**: https://apify.com/crawloop/ifood-restaurant-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 restaurants

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Restaurant Scraper

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by iFood or its affiliates. Data is read from publicly accessible restaurant profile and menu responses only. No login. You are responsible for complying with applicable law (including LGPD where a company id appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

This iFood scraper reads a Brazil restaurant from its delivery URL or store id. Each dataset row is one restaurant: name, rating, address, CNPJ, opening hours, and menu items with prices. Use it as an iFood API alternative for that public storefront: export JSON to a dataset from Python, Node.js, or an MCP assistant.

City search and customer review text are outside this Actor. A run starts from restaurant URLs you already have.

| Brazil restaurants | US chain menus |
| :--- | :--- |
| iFood Restaurant Scraper ◄── you are here | [DoorDash Menu Scraper](https://apify.com/crawloop/doordash-menu-scraper) |

### When to use

- Pull the public menu and prices for restaurants you already have links for
- Collect the store address, CNPJ, and opening hours with the menu
- Feed a pricing sheet or a market-research notebook from JSON

This Actor does not search a city, and it does not return review text.

### Key features

- Restaurant URL or merchant UUID
- Name, category, rating, rating count, and price range
- Street address, city, state, CEP, and coordinates
- CNPJ, MCC, and the company name on the profile
- Opening hours and minimum order
- Nested menu items with price, original price, and availability
- HTTP fetch, 256 MB

`maxItems` caps how many restaurants are saved. `maxMenuItems` caps the dishes nested on each row.

### Input

| Field | Required | Description |
| :--- | :--- | :--- |
| `restaurantUrls` | Yes | iFood delivery URL or merchant UUID. One restaurant per value |
| `latitude` | No | Optional customer latitude for the menu request |
| `longitude` | No | Optional customer longitude. Use it with latitude |
| `includeMenu` | No | Save menu items. Default true |
| `maxMenuItems` | No | Cap nested dishes. Default 200, maximum 1000 |
| `maxItems` | No | Stop after this many restaurants. Default 10, maximum 50 |

```json
{
  "restaurantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e"
  ],
  "includeMenu": true,
  "maxMenuItems": 200,
  "maxItems": 10
}
```

### Output

One dataset row per restaurant. Menu dishes sit on `menuItems`. They are not separate rows.

| Field | Description |
| :--- | :--- |
| `name` | Restaurant name |
| `merchantId` | Store UUID |
| `url` | Public restaurant page |
| `category` | Main category |
| `rating` | Star rating |
| `ratingCount` | Number of ratings |
| `cnpj` | Company id from the profile |
| `address`, `city`, `state`, `postalCode` | Store address |
| `minimumOrder` | Minimum order in BRL |
| `hours` | Opening shifts |
| `menuItemCount` | Dishes saved on the row |
| `menuItems` | Name, category, price, original price, availability |

```json
{
  "name": "Pizza Hut - Paraiso",
  "merchantId": "f1b60ced-d490-499f-976b-6d3d717d927e",
  "category": "Pizza",
  "rating": 4.6,
  "ratingCount": 308,
  "city": "SAO PAULO",
  "state": "SP",
  "cnpj": "00.000.000/0001-00",
  "minimumOrder": 30,
  "currency": "BRL",
  "menuItemCount": 2,
  "menuItems": [
    {
      "name": "My Box",
      "category": "Pizzas",
      "price": 39.9,
      "originalPrice": 52.7,
      "available": true
    }
  ]
}
```

### Use cases

- Compare menu prices across a list of restaurant URLs
- Build a sheet of store addresses and CNPJ numbers for restaurants you already track
- Check which dishes are marked available, with the list price and the original price

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/ifood-restaurant-scraper").call({
  restaurantUrls: [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e",
  ],
  maxItems: 1,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].name, items[0].menuItemCount);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient()
run = client.actor("crawloop/ifood-restaurant-scraper").call(run_input={
    "restaurantUrls": [
        "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e",
    ],
    "maxItems": 1,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items[0]["name"], items[0]["menuItemCount"])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~ifood-restaurant-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"restaurantUrls\":[\"https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e\"],\"maxItems\":1}"
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store ID / name.

Example prompts:

- "Run iFood Restaurant Scraper for this restaurant URL and return the name, CNPJ, and the first 20 menu prices as JSON"
- "Scrape these iFood store ids with iFood Restaurant Scraper and list dishes that have an original price above the current price"
- "After the iFood menu export, run DoorDash Menu Scraper for a US chain menu and compare the field list"

### Suite next step

For a US chain menu after this Brazil restaurant export, run [DoorDash Menu Scraper](https://apify.com/crawloop/doordash-menu-scraper).

### FAQ

#### Does this search restaurants by city?

No. Pass a delivery URL or the store UUID from that URL.

#### Are customer reviews included?

No. The row includes the rating and the rating count from the profile, not review text.

#### Is the CNPJ on every row?

The field is filled when the public profile includes it. Grocery and restaurant profiles both use the same store id input.

# Actor input Schema

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

iFood delivery URL or merchant UUID. One restaurant per value.

## `latitude` (type: `number`):

Optional delivery latitude. When empty, the restaurant's own coordinates are used for the menu.

## `longitude` (type: `number`):

Optional delivery longitude. Pair it with latitude.

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

Save menu items with prices on each restaurant. Turn off to keep the profile, address, and CNPJ only.

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

Cap nested menu items on each restaurant.

## `maxItems` (type: `integer`):

Stop after this many restaurants.

## Actor input object example

```json
{
  "restaurantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e"
  ],
  "includeMenu": true,
  "maxMenuItems": 200,
  "maxItems": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset items.

# 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 = {
    "restaurantUrls": [
        "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/ifood-restaurant-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 = { "restaurantUrls": ["https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e"] }

# Run the Actor and wait for it to finish
run = client.actor("crawloop/ifood-restaurant-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 '{
  "restaurantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/pizza-hut---paraiso-jardim-paulista/f1b60ced-d490-499f-976b-6d3d717d927e"
  ]
}' |
apify call crawloop/ifood-restaurant-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/ifood-restaurant-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/psAJUXmuLg4EfkjLB/builds/zngP55Gfhsg5H0oXp/openapi.json
