# TheFork Restaurant Scraper: Ratings, Prices and Offers (`santamaria-automations/thefork-restaurant-scraper`) Actor

Get restaurants from TheFork city lists: name, link, cuisines, address, coordinates, TheFork rating and review count, average price, offers, booking times, awards, tags and photos. No login needed.

- **URL**: https://apify.com/santamaria-automations/thefork-restaurant-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** Travel, Lead generation
- **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 thefork restaurant scrapeds

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

## TheFork Restaurant Scraper

Get restaurants from TheFork city lists as clean rows. For each restaurant you get the name, link, cuisines, address, coordinates, TheFork rating and review count, average price, current offers, booking times, awards, tags and photos. No login and no account needed.

Use it to build restaurant lists for a city, compare prices and ratings between districts, follow offers over time, or find places with free tables.

### What you get

One row per restaurant, in the order of the list. Main fields:

- Identity: `id`, `uuid`, `url`, `name`, `slug`
- Food: `cuisine`, `cuisines`, `dish_types`, `dietary_options`, `ambiance`, `services`, `languages`
- Place: `address`, `formatted_address`, `city`, `postal_code`, `country`, `neighborhoods`, `latitude`, `longitude`
- Price: `average_price`, `currency`, `price_level`, `price_range`
- Rating: `rating` (TheFork score), `rating_scale`, `review_count`
- Offers: `has_offer`, `best_discount_percent`, `promotions`
- Booking: `is_bookable`, `has_availability`, `accepts_reservations`, `reservations_today`, `timeslots`
- Distinctions: `awards`, `top_chart_rank`, `top_chart_size`, `has_loyalty_program`
- Media and tags: `main_photo_url`, `photos`, `tags`, `payment_methods`
- Context: `position`, `page`, `source_url`, `data_source`, `scraped_at`

Fields the page does not show are empty (`null` or an empty list).

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | list of URLs | TheFork city pages, for example `https://www.thefork.com/restaurants/paris-c415144`. Local sites such as thefork.fr, thefork.it and thefork.es work too. |
| `maxResults` | number | Most restaurants to return for each address. Default 50. Each page holds 25. |
| Connection settings | form field | Leave the default. The actor picks the connection it needs. |

Example:

```json
{
  "startUrls": [
    "https://www.thefork.com/restaurants/paris-c415144",
    "https://www.thefork.com/restaurants/milan-c348156"
  ],
  "maxResults": 40
}
```

You can also start from a later page by adding `?p=3` to the address.

### Output sample

```json
{
  "id": "849456",
  "uuid": "e1b6ff55-3c11-434f-b91c-b62080d04f47",
  "url": "https://www.thefork.com/restaurant/le-petit-ble-noir-r849456",
  "name": "Le petit blé noir",
  "cuisine": "French",
  "cuisines": ["French", "European"],
  "address": "188 Rue Saint-Maur",
  "formatted_address": "188 Rue Saint-Maur, 75010, Paris",
  "city": "Paris",
  "postal_code": "75010",
  "country": "France",
  "latitude": 48.8713783,
  "longitude": 2.3724345,
  "average_price": 22,
  "currency": "EUR",
  "price_level": 2,
  "price_range": "€€",
  "rating": 9.5,
  "rating_scale": 10,
  "review_count": 695,
  "has_offer": true,
  "best_discount_percent": 30,
  "timeslots": [
    { "time": "12:00", "has_availability": true, "discount_percent": 30, "offer_label": "-30%", "offer_id": "a9017a92-f6b3-40a2-9e73-ce5d744e727b" }
  ],
  "is_bookable": true,
  "has_availability": true,
  "payment_methods": ["Credit Card", "TheFork Pay", "UnionPay"],
  "position": 1,
  "page": 1,
  "source_url": "https://www.thefork.com/restaurants/paris-c415144",
  "data_source": "next-data",
  "scraped_at": "2026-11-06T09:09:28Z"
}
```

The full row also holds `promotions`, `awards`, `tags`, `photos` and the other fields listed above.

### Pricing

You pay per result, plus a small start fee per run.

| Event | Price |
|---|---|
| Actor start (`actor-start`) | $0.001 |
| Restaurant scraped (`thefork-restaurant-result`) | $2.00 per 1,000 |

A run is charged for the restaurants it delivers. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops when it is reached and says so in the run status.

### Limitations

- The actor reads the city and area list pages. It does not open each restaurant page, so menus, opening hours, phone numbers and full review texts are not included.
- Booking times, offers and the number of reservations made today are a snapshot of the moment the page was read. They change during the day.
- The rating is the TheFork score on a scale of 10. Other review sites are not included.
- Lists are limited to what the site shows. Very long lists may stop before the last page, and the page numbers the site serves can change.
- The site can answer slowly or refuse a request. The actor retries, and a run that cannot read any page ends with an error and no charge.
- Names, tags and labels come in the language of the site you start from. Use a local site address to get local labels.
- Only the first start address page that matches the city id is read. A wrong city name in the address can show another city.

### FAQ

**Can I scrape a whole city?**
Set `maxResults` high. A page holds 25 restaurants and the actor reads one page after another until it has enough or the list ends.

**Which addresses work?**
City and area list pages on thefork.com and on local sites such as thefork.fr, thefork.it and thefork.es that use the same page layout.

**Why do I get fewer rows than I asked for?**
The list may be shorter than `maxResults`, or a run may have reached the maximum cost you set. The run status says which.

**Are rows repeated across pages?**
No. Each restaurant is returned once per run.

**What happens if a run is interrupted?**
The actor saves its progress and continues where it stopped, without returning rows twice or charging them twice.

**Do I need a TheFork account?**
No. The actor reads public list pages only, and it skips addresses that the site asks automated tools not to read.

# Actor input Schema

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

TheFork city pages, for example https://www.thefork.com/restaurants/paris-c415144. Local sites such as thefork.fr, thefork.it and thefork.es work too. Each page holds 25 restaurants and the actor reads further pages until it has Max results restaurants for that address.

## `maxResults` (type: `integer`):

Most restaurants to return for each address. 0 or empty uses 50.

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

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.thefork.com/restaurants/paris-c415144"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset with one record per restaurant

# 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": [
        "https://www.thefork.com/restaurants/paris-c415144"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

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

```

## MCP server setup

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