# TheFork Scraper - Restaurants, Ratings and Prices (`scrapewise/thefork-scraper`) Actor

Scrape thefork.com city listings: restaurants with cuisine, rating, number of reviews, average price, address, discount offer and link. No login, no reviewer data. Error rows are free.

- **URL**: https://apify.com/scrapewise/thefork-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** Travel
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.37 / 1,000 restaurant delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## TheFork Scraper

Scrape thefork.com city listings. Give a city page such as `https://www.thefork.com/restaurants/paris-c415144` and get one row per restaurant with its cuisine, rating out of 10, number of reviews, average meal price in euros, address, current discount offer and restaurant link, across as many listing pages as you need.

Use it to compare restaurants in one city by rating and price, build a list of places with a current discount, track how a city's average prices move over time, or feed a dashboard of restaurants for a travel or food site.

### At a glance

| | |
|---|---|
| **Price** | US$ 1.80 per 1,000 restaurants delivered, plus US$ 0.001 per run |
| **You pay for** | Unique restaurants delivered. Error rows and restaurants already delivered in an earlier run are free |
| **Login** | None. Only the public city listing is read |
| **Listing** | One city listing per link. The Paris listing has about 3,350 restaurants in 135 pages |
| **Speed** | About 25 restaurants per page, with a few seconds between pages |
| **Export** | Table, JSON, CSV, Excel, HTML, or through the API |

### Quick start

1. Keep the default, or paste a city listing link such as `https://www.thefork.com/restaurants/paris-c415144`.
2. Set **Maximum restaurants** to the number you need. The default is 50.
3. Press **Start** and open the **Restaurants** table when the run ends.

The same run through the API input:

```json
{
  "startUrls": [{ "url": "https://www.thefork.com/restaurants/paris-c415144" }],
  "maxItems": 100
}
```

Leave the input empty to run the Paris example with the default maximum.

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `startUrls` | array of links | Paris listing | City listing links from thefork.com, such as `https://www.thefork.com/restaurants/paris-c415144`. Each link is read page by page. |
| `maxItems` | integer | 50 | Most restaurants to deliver in one run. Leave 0 for no limit. Each restaurant is charged once. |
| `proxyConfiguration` | object | France connection | Keep the default. The listings are read from France, so the restaurants and prices are the French listing. |

Several links in one run are read in order. A restaurant that appears in two listings is delivered once.

### Output

Each row is one restaurant. Fields with no value are empty (`null`), never guessed.

| Field | Type | Meaning |
|---|---|---|
| `type` | string | `restaurant` for a delivered restaurant, `error` for a free error row |
| `restaurantId` | string | TheFork restaurant id (UUID) |
| `name` | string | Restaurant name as TheFork lists it |
| `cuisine` | string | Main cuisine, for example `French` or `Italian` |
| `rating` | number | TheFork rating out of 10 |
| `reviewCount` | integer | Number of TheFork reviews. It is a count only |
| `averagePriceEur` | number | Average price of a meal for one person, in euros |
| `address` | string | Restaurant address as TheFork lists it |
| `discount` | string | Discount offer on the listing, for example `Up to -30%`. Empty when there is none |
| `url` | string | Restaurant page on thefork.com |
| `sourceUrl` | string | The city listing the restaurant was read from |
| `scrapedAt` | string | When the Actor read the restaurant (UTC) |
| `errorCode` | string | Error code, only on error rows |
| `error` | string | Error message, only on error rows |

The Actor does not collect reviewer names, review texts or profiles. `reviewCount` is only the number of reviews.

### Example output

Real row from a local run on the Paris listing (the first restaurant of the run, other fields as TheFork gives them):

```json
{
  "type": "restaurant",
  "restaurantId": "1e134b8e-ea57-47aa-b787-3190b14dae36",
  "name": "Elie Traiteur",
  "cuisine": "Lebanese",
  "rating": 9.4,
  "reviewCount": 973,
  "averagePriceEur": 14.0,
  "address": "7 Rue Cadet, 75009, Paris",
  "discount": "Up to -30%",
  "url": "https://www.thefork.com/restaurant/elie-traiteur-r807731",
  "sourceUrl": "https://www.thefork.com/restaurants/paris-c415144",
  "scrapedAt": "2026-11-04T00:44:31Z",
  "errorCode": null,
  "error": null
}
```

### Notes on the fields

- **rating** is TheFork's own score out of 10, the same number the listing shows next to the restaurant name. It is empty for restaurants with no score.
- **reviewCount** counts the reviews TheFork has for the restaurant. Use it to judge how much a rating can be trusted.
- **averagePriceEur** is the average price for one person. TheFork gives it in euro cents; the Actor writes it in euros with two decimals.
- **address** is the business address as TheFork writes it: street, postcode and city in one line.
- **discount** keeps the first offer label of type classic or festival offer, such as `Up to -30%` or `Up to -50% · TheFork Festival`.
- **url** points to the restaurant page on thefork.com, built from the restaurant name and its id on the site.

### Ideas for using the data

- **Shortlist:** run one city and sort by `rating` and `averagePriceEur` to find well-rated places in your budget.
- **Deal finder:** keep the rows where `discount` is not empty and send a message when a favourite restaurant starts an offer.
- **Price watch:** run the same city every week and compare the average of `averagePriceEur` from one run to the next.
- **Cuisine map:** group the rows by `cuisine` and count restaurants per cuisine in a city.
- **Directory:** load the dataset into a site or a spreadsheet with the name, address and link of each restaurant.

### Tips for better results

- One listing link gives the city's full list in TheFork order. Read the `rating` and `reviewCount` together, because a high rating with a few reviews is a weaker signal.
- Set **Maximum restaurants** to the number you need. A run stops at the limit, so you pay only for what it delivers.
- Put several city links in **City listing links** to read them in one run, for example two cities for a comparison.
- Empty `discount` means the listing shows no discount offer for that restaurant at the time of the run.

### Integrations, scheduling and AI agents

- **Schedules:** run the city every week and compare the rows over time.
- **Export:** download the dataset as JSON, CSV or Excel from the run page, or read it through the API.
- **Make, n8n and Zapier:** send a new restaurant with a high rating to a spreadsheet or a chat message.
- **Apify MCP server:** let an AI agent read a city listing and answer questions about the restaurants.

### FAQ

**Do I need a TheFork account?**
No. The Actor reads only the public city listing.

**Why is `discount` empty for some restaurants?**
TheFork shows a discount offer only for some restaurants on the listing. Other offers, such as loyalty points or special menus, are not written in this field.

**Are the prices in euros?**
Yes. `averagePriceEur` is the average price of a meal for one person, in euros, as TheFork lists it.

**Does one link return every restaurant in the city?**
It returns the restaurants on the city listing, one page of 25 at a time, up to 40 pages per link. The Paris listing has more pages than that, so a run stops at 40 pages (about 1,000 restaurants) for each link.

**Can I get the same restaurant twice?**
No. Each restaurant is delivered once per run, even when several links include it.

**What happens when the site refuses a page?**
The Actor tries the page again, up to 8 times. If every try is refused, it writes a free error row with `errorCode` `BLOCKED` and moves on.

**Can I stop the run and start again later?**
Yes. A restaurant already delivered in an earlier run is not charged again.

### Limitations

- Only the city listing is read. The Actor has no filter for cuisine, price or rating; use the listing link as the filter for the city.
- Rows reflect the listing at the time of the run. A restaurant that closes or changes its offer shows the new value on the next run.
- Some restaurants have no rating yet. Their `rating` is empty.
- The site can refuse a page for a few minutes. A refused page writes a free error row, and running again later usually works.

### Changelog

**3 Nov 2026, version 0.1**

- First version. City listings with cuisine, rating, number of reviews, average price, address, discount and link. Pages read with `?p=N`.

# Actor input Schema

## `startUrls` (type: `array`):

TheFork city listing links, for example https://www.thefork.com/restaurants/paris-c415144. Each link is read page by page; the list is the one the site shows for that city. Leave empty for the Paris example.

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

Most restaurants to deliver in one run. Each restaurant is charged once. Leave 0 for no limit.

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

Keep the default. The listings are read from France, so the restaurants and prices are the French listing.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.thefork.com/restaurants/paris-c415144"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "countryCode": "FR"
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (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 = {
    "startUrls": [
        {
            "url": "https://www.thefork.com/restaurants/paris-c415144"
        }
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "countryCode": "FR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/thefork-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 = {
    "startUrls": [{ "url": "https://www.thefork.com/restaurants/paris-c415144" }],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "countryCode": "FR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapewise/thefork-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 '{
  "startUrls": [
    {
      "url": "https://www.thefork.com/restaurants/paris-c415144"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "countryCode": "FR"
  }
}' |
apify call scrapewise/thefork-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapewise/thefork-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/Q8ZPBx0N74oPHqwfg/builds/WeOJGm9wkWbvC3iH1/openapi.json
