# iFood All-in-One API (`romy/ifood-all-in-one-api`) Actor

REST API for live iFood (Brazil) data: restaurant/catalog-item search, search-box autocomplete, and merchant detail (menu, hours, rating, images). Always-on via Apify Standby, no account or setup needed.

- **URL**: https://apify.com/romy/ifood-all-in-one-api.md
- **Developed by:** [Romy](https://apify.com/romy) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.60 / 1,000 search results returneds

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

### What does iFood All-in-One API do?

**iFood All-in-One API** is a REST endpoint for live iFood (Brazil) data — restaurant/catalog search, search-box autocomplete, and merchant detail. All from a single always-on API powered by [Apify Standby](https://docs.apify.com/platform/actors/development/programming-interface/standby).

It talks directly to the same marketplace API the official iFood Android app uses. No iFood account, no API key — call the endpoint, get JSON back.

### Why use iFood All-in-One API?

- **Real dish-level search, not just restaurant listings** — `/search` returns catalog items (dishes) together with the merchant selling each one, including price
- **Reliable** — every endpoint confirmed live with real data, not a flaky wrapper
- **Always-on** — Standby mode means no cold start, responds in milliseconds
- **No account needed** — every endpoint works fully anonymously
- **Use cases:** menu/price monitoring, restaurant discovery, delivery-market research

### Endpoints

| Method | Path              | Description                                      |
| ------ | ----------------- | ------------------------------------------------- |
| `GET`  | `/search`         | Restaurant/catalog-item search near a point       |
| `GET`  | `/autocomplete`   | Search-box autocomplete suggestions               |
| `GET`  | `/merchant`       | Merchant (restaurant) detail — menu, hours        |
| `GET`  | `/merchant-extra` | Supplementary merchant detail                     |

### How to use iFood All-in-One API

1. Open this Actor's Standby API URL (shown on the Actor's page, under the API tab).
2. Call any endpoint — for example:
   ```bash
   curl "https://romy--ifood-all-in-one-api.apify.actor/search?latitude=-23.5629&longitude=-46.6544&term=pizza"
   curl "https://romy--ifood-all-in-one-api.apify.actor/autocomplete?latitude=-23.5629&longitude=-46.6544&term=piz"
   curl "https://romy--ifood-all-in-one-api.apify.actor/merchant?id=42e0069f-7cb6-4058-b703-2aa395465233&latitude=-23.5629&longitude=-46.6544"
   curl "https://romy--ifood-all-in-one-api.apify.actor/merchant-extra?id=42e0069f-7cb6-4058-b703-2aa395465233&latitude=-23.5629&longitude=-46.6544"
   ```
   Every call needs your Apify API token, either as `Authorization: Bearer <token>` or `?token=<token>` — the Actor's page API tab has a ready-to-copy version with your token filled in.
3. Read the JSON response — no setup required.

### Parameters

**`GET /search`** — `latitude`/`longitude`/`term` required.

| Param       | Type            | Meaning                          |
| ----------- | --------------- | --------------------------------- |
| `latitude`  | number, required | Search origin point               |
| `longitude` | number, required | Search origin point               |
| `term`      | string, required | Search term, e.g. `pizza`         |
| `size`      | int, default 20  | Results per page                  |

**`GET /autocomplete`** — `latitude`/`longitude`/`term` required. Returns merchant and term suggestions for a partial query.

**`GET /merchant`** / **`GET /merchant-extra`** — `id`/`latitude`/`longitude` required. `id` is a merchant id from `/search` or `/autocomplete`. `latitude`/`longitude` must be a point the merchant actually delivers to (the upstream API scopes detail by delivery coverage, confirmed live).

### Data notes

- **No account or login is required for any endpoint wrapped here.**
- **No proxy or infrastructure setup needed on your side** — this Actor handles everything required to reach iFood reliably.
- **Every endpoint here was confirmed live with real data**, not just a 200 status: real merchant names/prices/images in search and autocomplete, real menu/hours data in merchant detail.

### Pricing

Pay-per-event, billed on each successful call. See the Actor's Pricing tab for current rates.

### Known limitations

- **Restaurant reviews/reputation are not available** through this Actor.
- Restaurant-only search (without catalog items) is not currently available.
- This is an unofficial, reverse-engineered integration, not affiliated with or endorsed by iFood (Movile Internet Movel S.A. / iFood.com Agência de Restaurantes Online S.A.). Behavior may change if iFood changes its API.

Found a bug or have a feature request? Use the Issues tab on this Actor's page.

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `api` (type: `string`):

This Actor doesn't write to a dataset — every response is returned directly over HTTP by its Standby web server. See the README / web server OpenAPI schema (webServerSchema) for the full endpoint list and response shapes (GET /search).

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/ifood-all-in-one-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("romy/ifood-all-in-one-api").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 '{}' |
apify call romy/ifood-all-in-one-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/ifood-all-in-one-api"
        }
    }
}
```

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/cPpRqsTF8gmOPDMNp/builds/eWENtUDbcqOw84MUL/openapi.json
