# DiDi Food Restaurant & Menu Scraper - Mexico & LatAm (`teodor_banea/didi-food-restaurant-menu-scraper`) Actor

Scrape DiDi Food restaurants and menus in Mexico, Colombia, Costa Rica and Peru: every store of a city with cuisine, rating and address, plus menu items with sections, descriptions, images and prices in MXN, COP, CRC or PEN. No login or proxy setup.

- **URL**: https://apify.com/teodor_banea/didi-food-restaurant-menu-scraper.md
- **Developed by:** [Banea Teodor](https://apify.com/teodor_banea) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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

## DiDi Food Restaurant & Menu Scraper — Mexico, Colombia, Costa Rica, Peru

### What does DiDi Food Restaurant & Menu Scraper do?

This Actor reads **DiDi Food**'s public restaurant pages in **Mexico, Colombia, Costa Rica and Peru** and returns
clean, flat data you can drop into a spreadsheet or a database:

- **Stores** of any DiDi Food city — 64 Mexican cities (Ciudad de México, Guadalajara, Monterrey, Puebla, Mérida,
  Tijuana…), 7 Colombian cities (Bogotá, Medellín, Cali, Barranquilla, Cartagena, Bucaramanga, Cúcuta), San José and
  Lima: name, page URL, cuisine, rating, address, image and the store's position in the city list. With store page
  details (on by default) you also get the site's short store summary, the number of menu sections and items, and the
  lowest and highest menu price.
- **Menus** — one row per menu item with its menu section, description, photo, the price as a number in the local
  currency (MXN, COP, CRC or PEN) and the price exactly as shown ("MX$150.00", "$9,900", "₡9,240", "S/ 67.00").

Type a city (accents optional) or paste DiDi Food store URLs. No login, no cookies and no proxy setup are needed.

### Why use this Actor?

- **Menu price monitoring in Latin America** — track what tacos, pizza, burgers or sushi cost on DiDi Food city by
  city, and how prices move week by week.
- **Compare delivery apps** — field names follow our other delivery Actors (Deliveroo, Yemeksepeti, BOX, efood…), so
  the rows stack in one table.
- **Market maps and lead lists** — every store of a city with cuisine, rating and address; Mexico City alone lists
  about 6,000 stores.
- **Clean output** — every row has every key, numbers are numbers, text is free of HTML.

### How much does it cost?

You pay per result (one row) plus a small start fee per run, as shown on the Actor's pricing tab. Typical sizes:

| Run | Rows | Requests |
|---|---|---|
| One store's menu | 7–171 items seen (about 55 on average) | 1 |
| Stores of a city, list only (details off) | Mexico City ≈ 6,000; Delicias ≈ 115 | 1 per 20 stores |
| Stores of a city with details (default) | same | 1 per store |
| Prefilled example (3 stores × 10 items) | 30 | 4 |

Keep first runs small with **Maximum stores per city**, **Maximum items per store** and **Maximum results**.

### Input

| Field | Description | Example |
|---|---|---|
| What to scrape | Full menus (one row per menu item) or Restaurants (one row per store) | `menus` |
| Country | Mexico, Colombia, Costa Rica or Peru | `mx` |
| Cities | City names as DiDi Food lists them (accents and case ignored) or city codes | `["Ciudad de México", "Guadalajara"]` |
| Store URLs or ids | DiDi Food store pages, DiDi Food store links or 19-digit store ids | `https://web.didiglobal.com/mx/food/ciudad-de-mexico-cdmx/<store>/<id>/` |
| Search stores | Text in the store name (accents ignored) | `tacos` |
| Cuisines | Cuisine labels as DiDi Food shows them | `["Pizzas", "Sushi"]` |
| Minimum rating | 4, 4.5 or 4.8 | `4.5` |
| Maximum stores per city | Stores per city (and for the URL list); empty menus do not count | `50` |
| Maximum items per store | First N items of each menu | `25` |
| Maximum results | Ceiling on rows for the whole run | `1000` |
| Include store page details | Restaurants mode: summary, menu size and price range (one request per store) | `true` |

Unknown city names are listed in the log and under ERRORS with close matches ("Did you mean: Guadalajara
(guadalajara-jal)?"), and the run goes on with the other cities.

### Output

Menu item row (menus mode; fictitious example):

```json
{
    "rowType": "menuItem",
    "storeId": "5764600000000000001",
    "storeName": "Taquería Ejemplo (Centro)",
    "storeSlug": "taqueria-ejemplo-centro",
    "storeUrl": "https://web.didiglobal.com/mx/food/ciudad-de-mexico-cdmx/taqueria-ejemplo-centro/5764600000000000001/",
    "storeCity": "Ciudad de México",
    "storeCitySlug": "ciudad-de-mexico-cdmx",
    "storeCuisine": ["Tacos"],
    "storeRating": 4.6,
    "storeIsOpen": null,
    "searchLocation": "Ciudad de México",
    "countryCode": "MX",
    "currency": "MXN",
    "categoryId": null,
    "categoryName": "Tacos",
    "categoryPosition": 2,
    "productId": "3f1c0a9b7d2e4c61",
    "name": "Taco al pastor",
    "description": "Con piña y cilantro",
    "price": 25,
    "priceOriginal": null,
    "priceDiscounted": null,
    "discountPercent": null,
    "priceText": "MX$25.00",
    "isPopular": null,
    "isAvailable": null,
    "hasOptions": null,
    "modifierGroups": null,
    "tags": null,
    "imageUrl": "https://img0.didiglobal.com/static/soda_public/img_example.jpg",
    "position": 5,
    "scrapedAt": "2026-11-19T18:00:00.000Z",
    "runId": "aBcDeFgHiJkLmNoPq"
}
```

Store row (restaurants mode with details; fictitious example):

```json
{
    "rowType": "restaurant",
    "storeId": "5764600000000000001",
    "name": "Taquería Ejemplo (Centro)",
    "slug": "taqueria-ejemplo-centro",
    "url": "https://web.didiglobal.com/mx/food/ciudad-de-mexico-cdmx/taqueria-ejemplo-centro/5764600000000000001/",
    "sourceUrl": null,
    "searchLocation": "Ciudad de México",
    "city": "Ciudad de México",
    "citySlug": "ciudad-de-mexico-cdmx",
    "countryCode": "MX",
    "currency": "MXN",
    "chainName": null,
    "rating": 4.6,
    "ratingCount": null,
    "cuisine": ["Tacos"],
    "primaryCuisine": "Tacos",
    "etaMinutes": null,
    "deliveryFee": null,
    "isFreeDelivery": null,
    "minimumOrder": null,
    "isOpen": null,
    "openingHours": null,
    "openingHoursText": null,
    "address": "Av. Ejemplo 123, Col. Centro, C.P. 06000",
    "postcode": "06000",
    "latitude": null,
    "longitude": null,
    "phone": null,
    "description": "Taquería Ejemplo ofrece tacos al pastor y de suadero. Su ambiente es familiar.",
    "logoUrl": null,
    "imageUrl": "https://img0.didiglobal.com/static/soda_public/store_example",
    "menuCategoryCount": 9,
    "menuItemCount": 42,
    "menuPriceMin": 25,
    "menuPriceMax": 289,
    "listPosition": 7,
    "hasDetails": true,
    "scrapedAt": "2026-11-19T18:00:00.000Z",
    "runId": "aBcDeFgHiJkLmNoPq"
}
```

#### What you get — and what the public pages do not show

DiDi Food's ordering app requires a login; this Actor reads only the **public** store and city pages. Those pages
show the menu (sections, items, descriptions, photos, prices), the store's name, cuisine, rating, address and image.
They do **not** show:

- option groups / extras / sizes (`modifierGroups`, `hasOptions` are null — unknown, not "none"),
- stock or "sold out" flags (`isAvailable` is null), item tags (`tags` is null),
- item and section ids (`categoryId` is null; `productId` is a **synthetic** stable id built from the store id,
  section and item name — use `storeId` + `productId` to compare runs; a renamed item, or an item whose section
  is renamed, gets a new id),
- opening hours, open-now status, delivery fee and time, minimum order, coordinates, phone, review counts and chain
  names (null in every row).

These keys are kept so the rows line up with our other delivery Actors. No discounted (struck-through) prices were
seen on the public pages; if one shows up, `priceOriginal`, `priceDiscounted` and `discountPercent` are filled.
Some stores leave sections on the public page that they keep for the app's own set-up, with names such as
"Mod - No Tocar" or "Modificadores - No Borrar" ("do not touch / do not delete"). They often hold extras or duplicates,
but sometimes real dishes, so they are kept with their real `categoryName` — filter them by that name if you do not
want them. `postcode` is filled only when the address labels it ("C.P. 06000", "CP 54720", "Código Postal 44870"). The store
`description` is a short summary the site writes; it is often cut off by the site, so only complete sentences are kept
(street abbreviations such as "Cra." or "Av." do not end a sentence), and Markdown marks some summaries carry
(headings, bold, rules) are removed.

**Freshness:** these public pages can lag the app — a price or item may already have changed in the app. Menus also
change with the time of day: breakfast and promotion sections come and go, so two runs a few hours apart can differ.

**Rows without store page details** (restaurants mode with details off) carry what the city list card shows: its
address is often shorter than the store page's (and rarely labels a postcode), and its rating can differ by 0.1 from
the store page. With details on (and in menus mode) the store page's values are used, and Minimum rating is checked
against the rating in the row.

In menus mode the store records are stored in the run's key-value store under `RESTAURANTS`; anything that could not be
read (unknown cities, stores not found, unreadable pages) is listed under `ERRORS`.

### Tips and tricks

- **Complete vs sample**: a city returns every store DiDi Food lists for it, in the site's own order (big chains such
  come first). Run with Maximum stores per city = 0 to get the whole list.
- **Big cities**: Mexico City lists about 6,000 stores (≈ 300,000 menu items). For a city-wide store list use
  restaurants mode with details off (20 stores per request, a few minutes for a whole city) — it is the cheapest way to
  map a city.
- **Speed**: every store page is one request; Mexican store pages are slow to answer (several seconds each). Expect
  roughly 50–60 stores per minute in Mexico (faster in Colombia, Costa Rica and Peru) with details or menus, so a whole
  large city takes one to a few hours — turn details
  off for a plain store list, or raise the run timeout in Run options.
- **Wrong country**: a city typed for the wrong country (e.g. "Lima" with Mexico) is reported with a hint to switch
  the Country field; each run reads one country.
- **Store URLs** longer than Maximum stores per city are cut to that number; the skipped count is in the final status
  and under ERRORS.
- **Filters** (search, cuisine, rating) work on the city list, so filtered runs read list pages until enough stores
  match.
- **Store URLs** may come from any of the four countries; the currency follows the store.
- **Scheduling**: run daily or weekly with the same input and compare by `storeId` + `productId`; downstream tools can
  de-duplicate by these ids.

### Integrations

Export the dataset as JSON, CSV or Excel, or connect it to Google Sheets, Make, Zapier, Airbyte or your own code with
the Apify API and webhooks. Each run's rows are available at the dataset URL shown on the run page.

### Privacy

The Actor returns business information that DiDi Food publishes on its public store pages: store name, cuisine,
rating, address and menu. It collects no customer reviews, no customer data and no personal names or phone numbers.

# Changelog

This Actor's version history is a separate document: https://apify.com/teodor_banea/didi-food-restaurant-menu-scraper/changelog.md

# Actor input Schema

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

Choose "Full menus" for one row per menu item with its section, description, price and image (a typical store has 20–100 items). Choose "Restaurants" for one row per store with cuisine, rating, address and menu size.

## `country` (type: `string`):

Select the DiDi Food market. Cities and store ids are looked up in this country; prices come in its currency (MXN, COP, CRC or PEN).

## `cities` (type: `array`):

Enter cities as DiDi Food lists them, e.g. "Ciudad de México", "Guadalajara", "Monterrey", "Bogotá", "Medellín", "San José" or "Lima". Case and accents are ignored and the site's city codes work too ("ciudad-de-mexico-cdmx"). Unknown names are reported with close matches. Each city returns the stores DiDi Food lists for it (Mexico City lists about 6,000).

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

Enter DiDi Food store page URLs (https://web.didiglobal.com/mx/food/<city>/<store>/<id>/), DiDi Food store links or bare store ids (19 digits; the Country field tells where to look). They are read in addition to the cities, always from their store page.

## `searchQuery` (type: `string`):

Keep only stores whose name contains this text. Case and accents are ignored, so "cafe" also finds "Café".

## `cuisines` (type: `array`):

Keep only stores with one of these cuisines as DiDi Food shows them, e.g. "Pizzas", "Hamburguesas", "Tacos", "Sushi", "Postres". Case and accents are ignored.

## `minRating` (type: `string`):

Keep only stores rated at least this much. Stores without a rating are dropped when this is set.

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

Limit the stores returned (restaurants) or the stores whose menus are read (menus) for each city; your store URLs form one more group with the same limit. 0 = all stores of the city (restaurants: up to 8,000 per city; menus: up to 2,000 per city). Stores with an empty menu are skipped without counting.

## `maxItemsPerRestaurant` (type: `integer`):

In menus mode, keep only the first N menu items of each store (in menu order). 0 = the whole menu.

## `maxItemsTotal` (type: `integer`):

Set a hard ceiling on returned rows for the whole run, across all cities. 0 = no ceiling (still capped at 50,000 rows). The run stops as soon as it is reached.

## `includeDetails` (type: `boolean`):

In restaurants mode, also read each store's page: the site's short store summary, the number of menu sections and items, and the lowest and highest menu price. One extra request per store (the city list alone gives 20 stores per request). Store URLs always get these details.

## Actor input object example

```json
{
  "mode": "menus",
  "country": "mx",
  "cities": [
    "Ciudad de México",
    "Guadalajara"
  ],
  "restaurantUrls": [
    "https://web.didiglobal.com/mx/food/ciudad-de-mexico-cdmx/example-tacos/5764600000000000001/",
    "5764600000000000002"
  ],
  "searchQuery": "tacos",
  "cuisines": [
    "Pizzas",
    "Sushi"
  ],
  "maxRestaurants": 3,
  "maxItemsPerRestaurant": 10,
  "maxItemsTotal": 0,
  "includeDetails": true
}
```

# Actor output Schema

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

Every row of the run as JSON.

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

Store rows.

## `menuItems` (type: `string`):

Menu item rows.

## `resultsCsv` (type: `string`):

The same rows as a CSV download.

## `restaurantRecords` (type: `string`):

In menus mode, one record per store whose menu was read (same fields as a restaurant row).

## `errors` (type: `string`):

Cities or stores that could not be read. Only present when something went wrong.

# 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 = {
    "mode": "menus",
    "country": "mx",
    "cities": [
        "Ciudad de México"
    ],
    "maxRestaurants": 3,
    "maxItemsPerRestaurant": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("teodor_banea/didi-food-restaurant-menu-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 = {
    "mode": "menus",
    "country": "mx",
    "cities": ["Ciudad de México"],
    "maxRestaurants": 3,
    "maxItemsPerRestaurant": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("teodor_banea/didi-food-restaurant-menu-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 '{
  "mode": "menus",
  "country": "mx",
  "cities": [
    "Ciudad de México"
  ],
  "maxRestaurants": 3,
  "maxItemsPerRestaurant": 10
}' |
apify call teodor_banea/didi-food-restaurant-menu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,teodor_banea/didi-food-restaurant-menu-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/WCAT9L9HVAQ49w7vQ/builds/ZrZKuZeiofXVmjJ6d/openapi.json
