# Cheapest iFood Scraper (`serp.cheap.ofc/cheapest-ifood-scraper`) Actor

Scrape iFood (Brazil's #1 food & grocery delivery) at the lowest price per result: search restaurants near any address and pull full menus with dish names, prices, ratings, delivery fee/time and images. Pay per result — no start fee, no subscription.

- **URL**: https://apify.com/serp.cheap.ofc/cheapest-ifood-scraper.md
- **Developed by:** [serp.cheap](https://apify.com/serp.cheap.ofc) (community)
- **Categories:** Lead generation, E-commerce, Other
- **Stats:** 3 total users, 2 monthly users, 79.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 restaurant / merchant founds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Cheapest iFood Scraper

Scrape **iFood** — Brazil's #1 food & grocery delivery — at the lowest price per result on the Apify
Store. Search restaurants and stores near any address, then pull **full menus** (dish names,
descriptions and prices) plus ratings, delivery fee/time, category and images.

Fast, cheap, and light. **Pay per result, no start fee, no subscription.**

### Why this one

- **Cheapest on the Store.** Full menu at **$0.0029/restaurant** (27% under the cheapest competitor,
  8.6× under the category leader). Listing/discovery at **$0.0009/restaurant** — a mode most rivals
  don't sell separately. See [PRICING.md](./PRICING.md).
- **No residential proxy needed.** The default Apify proxy works, which keeps the price this low.
- **Everything in BRL, normalized.** Delivery fees and menu prices come back as consistent Reais.
- **Self-monitored.** Every run reports upstream health to a private tracker, so schema drift on
  iFood's side is caught early.

### Modes

Set `mode` in the input:

#### `search` — find restaurants/stores near a location
Give a **`term`** (what to look for, e.g. `"pizza"`, `"hamburguer"`, `"restaurante"`) and a location
— either an **`address`** (geocoded for you) or explicit **`latitude`/`longitude`**.

```json
{
  "mode": "search",
  "term": "pizza",
  "address": "Avenida Paulista 1000, São Paulo",
  "searchSize": 50
}
````

Returns one item per merchant: `merchantId`, `name`, `slug`, `type`, `mainCategory`, `userRating`,
`distanceKm`, `deliveryFee` (R$), `deliveryTimeMinMinutes`/`MaxMinutes`, `available`, `imageUrl`,
`url`. Charges `search-merchant` per merchant.

#### `merchant` — full detail + menu for specific restaurants

Give **`merchantUrls`**: iFood restaurant URLs, `identifier=<uuid>` action strings, or bare merchant
UUIDs (any mix). A location (`address` or `latitude`/`longitude`) is still required — iFood catalogs
are location-scoped.

```json
{
  "mode": "merchant",
  "merchantUrls": [
    "https://www.ifood.com.br/delivery/sao-paulo-sp/.../1d743d52-3fa4-43df-b9a4-de1260417b71",
    "1d743d52-3fa4-43df-b9a4-de1260417b71"
  ],
  "latitude": -23.5614117,
  "longitude": -46.6558999
}
```

Returns one item per merchant with metadata (rating, price range, category, features, payment
methods, logo/images, URL) **plus the full `menu`**: categories, each with items carrying `itemId`,
`name`, `description`, `price` (R$), `minPrice`, `hasOptions`, `available`, `imageUrl`. Charges
`merchant-detail` per merchant.

#### `selftest` — health check

Runs a fixed geocode/search/merchant/catalog probe set and reports endpoint health. No charge.

### Input reference

| Field | Type | Applies to | Notes |
|-------|------|-----------|-------|
| `mode` | string | all | `search` | `merchant` | `selftest` (required) |
| `term` | string | search | search query |
| `address` | string | search, merchant | geocoded to lat/lon if coords not given |
| `latitude` / `longitude` | number | search, merchant | explicit location (skips geocode) |
| `merchantUrls` | array | merchant | URLs, action strings, or bare UUIDs |
| `searchSize` | integer | search | merchants per search (default 50, up to 100) |
| `maxItems` | integer | all | cap on total results |
| `proxyConfiguration` | object | all | defaults to the Apify proxy — no residential needed |

### Location

A location is always required. Provide it the easy way (`address`, geocoded via iFood's own
geocoder) or the precise way (`latitude`/`longitude`). Coordinates take precedence when both are
given. Menus and search results are location-scoped, exactly as on ifood.com.br.

### Proxy

The default Apify proxy works — no residential proxy required. Override via `proxyConfiguration`
only if you need a specific proxy.

### Notes

- Prices and delivery fees are in **BRL**. iFood returns delivery fee in cents; we normalize to
  Reais so every monetary field is consistent.
- Not affiliated with iFood. Scrapes only publicly visible catalog data.

See [PRICING.md](./PRICING.md) for the full price/margin breakdown.

# Actor input Schema

## `mode` (type: `string`):

What to scrape. "search" lists restaurants/stores matching a term near a location; "merchant" fetches full menus (dishes + prices) for specific restaurants; "selftest" checks that every endpoint still works (for monitoring).

## `term` (type: `string`):

What to search near the location — a cuisine, dish, or restaurant name (e.g. "pizza", "hamburguer", "sushi"). Use a broad term like "restaurante" or "lanche" to list many merchants. Used only in "search" mode.

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

Free-text delivery address to scope results (e.g. "Avenida Paulista, 1578, São Paulo - SP"). It is geocoded to coordinates automatically. Provide this OR latitude+longitude. iFood data is location-scoped, so this is required for search and merchant modes.

## `latitude` (type: `string`):

Latitude of the delivery location. Provide latitude+longitude instead of an address if you already have coordinates.

## `longitude` (type: `string`):

Longitude of the delivery location.

## `merchantUrls` (type: `array`):

Restaurants to fetch full menus for. Accepts iFood restaurant URLs (https://www.ifood.com.br/delivery/<city>/<slug>/<uuid>) or bare merchant UUIDs. Used only in "merchant" mode. Set an address/coordinates near these merchants so they are in-range.

## `searchSize` (type: `integer`):

How many merchants to request in one search call (iFood returns up to ~100). Used only in "search" mode.

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

Maximum number of results to scrape across the whole run (merchants in search mode, restaurants in merchant mode).

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

Leave empty (recommended) — the default Apify proxy works, no residential proxy required. Set this only to force a specific proxy.

## Actor input object example

```json
{
  "mode": "search",
  "term": "hamburguer",
  "address": "Rua Oscar Freire, 500, São Paulo - SP",
  "latitude": "-23.5614117",
  "longitude": "-46.6558999",
  "merchantUrls": [
    "1d743d52-3fa4-43df-b9a4-de1260417b71"
  ],
  "searchSize": 50,
  "maxItems": 100
}
```

# Actor output Schema

## `search` (type: `string`):

No description

## `merchant` (type: `string`):

No description

# 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 = {
    "term": "pizza",
    "address": "Avenida Paulista, 1578, São Paulo - SP",
    "merchantUrls": [
        "1d743d52-3fa4-43df-b9a4-de1260417b71"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("serp.cheap.ofc/cheapest-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 = {
    "term": "pizza",
    "address": "Avenida Paulista, 1578, São Paulo - SP",
    "merchantUrls": ["1d743d52-3fa4-43df-b9a4-de1260417b71"],
}

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

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

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

```

## CLI example

```bash
echo '{
  "term": "pizza",
  "address": "Avenida Paulista, 1578, São Paulo - SP",
  "merchantUrls": [
    "1d743d52-3fa4-43df-b9a4-de1260417b71"
  ]
}' |
apify call serp.cheap.ofc/cheapest-ifood-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=serp.cheap.ofc/cheapest-ifood-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Cheapest iFood Scraper",
        "description": "Scrape iFood (Brazil's #1 food & grocery delivery) at the lowest price per result: search restaurants near any address and pull full menus with dish names, prices, ratings, delivery fee/time and images. Pay per result — no start fee, no subscription.",
        "version": "0.1",
        "x-build-id": "phBCr5Ada3Q7gBG7G"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/serp.cheap.ofc~cheapest-ifood-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-serp.cheap.ofc-cheapest-ifood-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/serp.cheap.ofc~cheapest-ifood-scraper/runs": {
            "post": {
                "operationId": "runs-sync-serp.cheap.ofc-cheapest-ifood-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/serp.cheap.ofc~cheapest-ifood-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-serp.cheap.ofc-cheapest-ifood-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "merchant",
                            "selftest"
                        ],
                        "type": "string",
                        "description": "What to scrape. \"search\" lists restaurants/stores matching a term near a location; \"merchant\" fetches full menus (dishes + prices) for specific restaurants; \"selftest\" checks that every endpoint still works (for monitoring).",
                        "default": "search"
                    },
                    "term": {
                        "title": "Search term",
                        "type": "string",
                        "description": "What to search near the location — a cuisine, dish, or restaurant name (e.g. \"pizza\", \"hamburguer\", \"sushi\"). Use a broad term like \"restaurante\" or \"lanche\" to list many merchants. Used only in \"search\" mode."
                    },
                    "address": {
                        "title": "Address",
                        "type": "string",
                        "description": "Free-text delivery address to scope results (e.g. \"Avenida Paulista, 1578, São Paulo - SP\"). It is geocoded to coordinates automatically. Provide this OR latitude+longitude. iFood data is location-scoped, so this is required for search and merchant modes."
                    },
                    "latitude": {
                        "title": "Latitude",
                        "type": "string",
                        "description": "Latitude of the delivery location. Provide latitude+longitude instead of an address if you already have coordinates."
                    },
                    "longitude": {
                        "title": "Longitude",
                        "type": "string",
                        "description": "Longitude of the delivery location."
                    },
                    "merchantUrls": {
                        "title": "Merchant URLs or IDs",
                        "type": "array",
                        "description": "Restaurants to fetch full menus for. Accepts iFood restaurant URLs (https://www.ifood.com.br/delivery/<city>/<slug>/<uuid>) or bare merchant UUIDs. Used only in \"merchant\" mode. Set an address/coordinates near these merchants so they are in-range.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchSize": {
                        "title": "Search page size",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "How many merchants to request in one search call (iFood returns up to ~100). Used only in \"search\" mode.",
                        "default": 50
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of results to scrape across the whole run (merchants in search mode, restaurants in merchant mode).",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Leave empty (recommended) — the default Apify proxy works, no residential proxy required. Set this only to force a specific proxy."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
