# TheFork Restaurant Intelligence Scrapper (`jdtpnjtp/thefork-restaurant-scraper-advanced`) Actor

Comprehensive restaurant intelligence from TheFork platform. Get detailed venue data, pricing, reviews, ratings, and availability across 11 European countries. Enterprise-grade reliability with 99.9 % success rate.

- **URL**: https://apify.com/jdtpnjtp/thefork-restaurant-scraper-advanced.md
- **Developed by:** [Data Forge](https://apify.com/jdtpnjtp) (community)
- **Categories:** Travel, E-commerce, Integrations
- **Features:** Limited permissions
- **Stats:** 105 total users, 4 monthly users, 99.8% runs succeeded, 1 bookmarks
- **User rating**: 4.14 out of 5 stars

## Pricing

from $5.00 / 1,000 review extracteds

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 Restaurant Intelligence Scraper

**The most comprehensive TheFork data extraction tool on Apify.** Get complete restaurant profiles, full menus with prices, and detailed customer reviews from Europe's #1 restaurant booking platform.

### Why This Scraper?

| Feature | This Scraper | Others |
|---------|-------------|--------|
| Proxy costs | **$0** - included | $5-50/month |
| Data completeness | **100%** - all fields | 30-60% |
| Menu extraction | **Full menus with prices** | Not available |
| Photo extraction | **Food + Customer photos** | Not available |
| Success rate | **99%+** | 70-90% |

**Pay only for results, not infrastructure.** No proxy setup, no maintenance, no hidden fees.

***

### Performance Benchmark

| Data Type | Speed | Notes |
|-----------|-------|-------|
| Restaurants | **1,500/min** | From city pages |
| Reviews | **3,000/min** | From restaurant pages |
| Menus | **3,000/min** | With restaurant extraction |

*Benchmarks measured with optimal proxy pool. Actual speeds may vary based on TheFork server load.*

***

### What You Get

#### From City Pages (`/restaurants/paris-c415144`)

Extract **complete restaurant profiles** including:

- Basic info (name, address, coordinates, contact)
- Ratings & review counts
- Full pricing data (average price, price level)
- Complete tag system (cuisine, atmosphere, dietary, payment methods)
- Current promotions & discounts
- Booking availability & timeslots
- **Full menus** with all dishes and prices (optional)
- **Photos** - professional food shots & customer uploads (optional)
- FAQ data
- Michelin stars, Gault & Millau ratings

#### From Restaurant Pages (`/restaurant/name-r123456`)

Extract **detailed customer reviews** including:

- Rating value (0-10 scale)
- Full review text
- Meal date & time
- Reviewer profile (name, avatar, total reviews)
- Restaurant replies
- Likes count
- Filter by language, occasion, date range

***

### Quick Start

#### Extract 100 Restaurants from Paris

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

**Cost: ~$1.01**

#### Extract Reviews from a Restaurant

```json
{
    "urls": ["https://www.thefork.com/restaurant/le-jules-verne-r58649"],
    "maxReviews": 200,
    "reviewsTimeframe": "1m"
}
```

**Cost: ~$0.21**

#### Full Data Package (Restaurants + Menus + Reviews)

```json
{
    "urls": ["https://www.thefork.com/restaurants/lisbon-c522301"],
    "maxRestaurants": 50,
    "includeMenu": true,
    "includeReviewsForRestaurants": true,
    "maxReviewsPerRestaurant": 20
}
```

**Cost: ~$1.66**

***

### Input Parameters

#### URLs (Required)

| Parameter | Type | Description |
|-----------|------|-------------|
| `urls` | array | TheFork URLs to scrape (1-10). Mix city and restaurant URLs freely. The scraper auto-detects URL type. |

**Example URLs:**

- City: `https://www.thefork.com/restaurants/paris-c415144`
- Restaurant: `https://www.thefork.com/restaurant/le-jules-verne-r58649`

***

#### Restaurant Extraction Settings

*Applied when scraping city pages*

| Parameter | Type | Default | Range | Description |
|-----------|------|---------|-------|-------------|
| `maxRestaurants` | integer | 100 | 1-1000 | Restaurants per city URL |
| `includeMenu` | boolean | false | - | Extract full menu data |
| `includeReviewsForRestaurants` | boolean | false | - | Fetch reviews for each restaurant |
| `maxReviewsPerRestaurant` | integer | 50 | 1-500 | Reviews limit per restaurant |
| `reviewsTimeframe` | select | `7d` | - | Time filter for reviews (also applies to restaurant reviews) |

##### Photo Extraction (Cost Warning)

| Parameter | Type | Default | Range | Description |
|-----------|------|---------|-------|-------------|
| `includeFoodPhotos` | boolean | false | - | Professional food photos. **Adds cost!** |
| `maxFoodPhotos` | integer | 30 | 1-100 | Limit food photos per restaurant |
| `includeCustomerPhotos` | boolean | false | - | Customer-uploaded photos. **Adds cost!** |
| `maxCustomerPhotos` | integer | 30 | 1-100 | Limit customer photos per restaurant |

**Cost tip:** Photos are billed per batch of 10. Set `maxFoodPhotos: 10` to minimize costs while still getting samples.

***

#### Review Extraction Settings

*Applied when scraping restaurant pages*

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `maxReviews` | integer | 100 | Max reviews per restaurant (1-5000) |
| `reviewsTimeframe` | select | `7d` | Time filter for reviews |

**Timeframe options:**

- `1d` - Last 24 hours
- `7d` - Last week
- `1m` - Last month
- `6m` - Last 6 months
- `1y` - Last year
- `all` - All time

***

#### Review Filters

*Fine-tune which reviews to extract*

| Parameter | Type | Default | Options |
|-----------|------|---------|---------|
| `reviewsWithText` | select | `WITH_REVIEW` | `ALL` (all ratings), `WITH_REVIEW` (text only) |
| `reviewsOrderBy` | select | `MEAL_DATE` | `MEAL_DATE` (newest), `RATING` (highest) |
| `reviewsSortDirection` | select | `DESC` | `DESC`, `ASC` |
| `reviewsLanguage` | text | `all` | `all` or language code (`en`, `fr`, `de`, `es`, `it`, `pt`, `nl`) |
| `reviewsOccasion` | select | - | `BUSINESS`, `FRIENDS`, `ROMANTIC`, `FAMILY`, `ALONE` |

***

### Pricing (Pay Per Event)

**You only pay for extracted data. No proxy fees. No platform fees.**

#### Extraction Events

| Event | Price | When Charged |
|-------|-------|--------------|
| Actor Start | $0.005 | Once per run |
| Restaurant | $0.01 | Per restaurant extracted |
| Menu | $0.003 | Per restaurant with menu data |
| Photos (batch) | $0.001 | Per 10 photos (food or customer) |
| Review | $0.001 | Per review extracted |

#### Webhook Monitoring (Coming Soon)

| Plan | Price | Included |
|------|-------|----------|
| Base | $20/month | Up to 3 monitored URLs |
| Additional URL | $5/month | Per extra URL beyond 3 |

*Example: Monitoring 5 URLs = $20 + (2 × $5) = $30/month*

#### Cost Examples

| Scenario | Breakdown | Total |
|----------|-----------|-------|
| 100 restaurants (basic) | $0.005 + 100 × $0.01 | **$1.01** |
| 100 restaurants + menus | $0.005 + 100 × $0.01 + 100 × $0.003 | **$1.31** |
| 100 restaurants + menus + 30 photos each | $1.31 + 100 × 3 × $0.001 | **$1.61** |
| 500 reviews | $0.005 + 500 × $0.001 | **$0.51** |
| 50 restaurants + 20 reviews each | $0.005 + 50 × $0.01 + 50 × $0.003 + 1000 × $0.001 | **$1.66** |

#### Cost Control Tips

1. **Start small** - Test with `maxRestaurants: 10` first
2. **Skip photos initially** - Add them only if needed
3. **Use timeframe filters** - `reviewsTimeframe: "1m"` reduces review volume
4. **Set photo limits** - `maxFoodPhotos: 10` gives samples without high costs

***

### Output Data

#### Restaurant Object (Complete)

```json
{
    "_type": "restaurant",
    "id": "26201",
    "uuid": "e3a4ef96-0b29-46b5-8ac6-66788a4c4435",
    "name": "Restaurant Auguste - Gael Orieux",
    "url": "https://www.thefork.com/restaurant/restaurant-auguste-gael-orieux-r26201",
    "address": {
        "street": "54, rue de Bourgogne",
        "zip_code": "75007",
        "locality": "Paris",
        "country": "France"
    },
    "geolocation": {
        "latitude": 48.85616,
        "longitude": 2.31712
    },
    "rating": {
        "score": 9.5,
        "review_count": 3626
    },
    "cuisine": "French",
    "price_level": 4,
    "avg_price": {
        "value": 10000,
        "currency": "EUR",
        "formatted": "100.00 EUR"
    },
    "is_bookable": true,
    "tags": {
        "payment": ["Credit Card", "Mastercard", "Visa", "TheFork Pay"],
        "features": ["Lobster", "Seafood platter", "Wifi", "Air-conditioning", "Sommelier"],
        "cuisine": ["French", "European"],
        "atmosphere": ["Cosy", "Fine Dining", "Romantic", "Good for a business lunch"],
        "dietary": ["Gluten free", "Peanut allergy"],
        "other": ["1 star MICHELIN", "INSIDER", "Gault & Millau 2020", "Top Chefs"]
    },
    "main_photo": {
        "url": "https://cdn.thefork.com/tf-lab/image/upload/restaurant/..."
    },
    "photos_count": 45,
    "has_offer": true,
    "promo": {
        "id": "12f8dc16-4c43-4595-81aa-02df6f550566",
        "discount_percentage": 30,
        "label": "-30% on the menu"
    },
    "can_burn_yums": true,
    "timeslots": [
        {"time": 1140, "has_availability": true, "can_burn_yums": false},
        {"time": 1200, "has_availability": true, "can_burn_yums": true}
    ],
    "menu": {
        "a_la_carte": {
            "id": "306c6a62-74f6-444d-9f3f-6e5ac6a780ca",
            "updated_at": "2026-01-12T09:46:17.848Z",
            "sections": [
                {
                    "name": "Starter",
                    "items": [
                        {
                            "id": "ada40e83-195f-4526-967a-b757d39fb801",
                            "name": "Escargots et chantilly des sous-bois",
                            "description": "Soupe d'oignons roses de Roscoff",
                            "price": {"value": 3900, "currency": "EUR", "formatted": "39.00 EUR"},
                            "is_main_dish": false
                        }
                    ]
                },
                {
                    "name": "Main course",
                    "items": [
                        {
                            "name": "Homard bleu roti, aigre douce de carotte",
                            "description": "Pulpe fruitee",
                            "price": {"formatted": "79.00 EUR"},
                            "is_main_dish": true
                        }
                    ]
                }
            ]
        },
        "preset_menus": [
            {
                "id": "22d930e4-fec0-4501-ad25-8cf83c9cb750",
                "name": "Menu Instant Michelin",
                "price": {"value": 9600, "formatted": "96.00 EUR"},
                "description": "Appetizer + Fish + Meat + Dessert",
                "is_bookable": true,
                "valid_date_start": "2023-01-05",
                "valid_date_end": "2030-12-31"
            }
        ]
    },
    "photos": {
        "header_photo": "https://cdn.thefork.com/...",
        "food_photos": [
            {"url": "https://cdn.thefork.com/...", "title": "Signature dish"}
        ],
        "customer_photos": [
            {"url": "https://cdn.thefork.com/...", "title": "Customer photo"}
        ]
    },
    "faq": [
        {
            "question": "Does Restaurant Auguste have special offers?",
            "answer": "Yes, Restaurant Auguste is offering 30% off the menu!"
        },
        {
            "question": "Does Restaurant Auguste have vegetarian options?",
            "answer": "Yes, vegetarian options are available on the menu."
        }
    ],
    "scraped_at": "2026-01-19T20:55:13.912457",
    "_source_url": "https://www.thefork.com/restaurants/paris-c415144"
}
```

#### Review Object (Complete)

```json
{
    "_type": "review",
    "id": "205eb51c-ebdd-4d37-92be-fa171c41ee56",
    "restaurant_id": "1567",
    "restaurant_name": "Antigua",
    "rating_value": 10,
    "meal_date": "2026-01-16T17:30:00.000Z",
    "review_body": "Excellent experience! The seafood paella was perfectly seasoned, generous portions, and the service was impeccable. Will definitely return.",
    "likes": 5,
    "reviewer": {
        "id": "3120af53-78ec-44a1-b1a7-a3c4629b720c",
        "first_name": "Marie",
        "last_name": "D.",
        "name": "Marie D.",
        "avatar_url": "https://lh3.googleusercontent.com/a/ACg8ocI...",
        "review_count": 28
    },
    "scraped_at": "2026-01-19T20:56:36.268699",
    "_source_url": "https://www.thefork.com/restaurant/antigua-r1567"
}
```

***

### Field Reference

#### Restaurant Fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | TheFork restaurant ID |
| `uuid` | string | Unique identifier |
| `name` | string | Restaurant name |
| `url` | string | TheFork page URL |
| `address` | object | Street, zip_code, locality, country |
| `geolocation` | object | Latitude, longitude |
| `rating` | object | Score (0-10), review_count |
| `cuisine` | string | Primary cuisine type |
| `price_level` | integer | 1-4 ($ to $$$$) |
| `avg_price` | object | Value (cents), currency, formatted |
| `is_bookable` | boolean | Currently accepting bookings |
| `tags` | object | payment, features, cuisine, atmosphere, dietary, other |
| `main_photo` | object | Primary image URL |
| `photos_count` | integer | Total photos available |
| `has_offer` | boolean | Active promotion |
| `promo` | object | Discount details if active |
| `timeslots` | array | Available booking times |
| `menu` | object | Full menu data (if enabled) |
| `photos` | object | header_photo, food_photos, customer_photos (if enabled) |
| `faq` | array | Restaurant FAQ |
| `scraped_at` | string | Extraction timestamp |

#### Review Fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Review unique ID |
| `restaurant_id` | string | Parent restaurant ID |
| `restaurant_name` | string | Restaurant name |
| `rating_value` | integer | Rating 0-10 |
| `meal_date` | string | When the meal occurred |
| `review_body` | string | Review text content |
| `likes` | integer | Community likes |
| `reviewer` | object | Reviewer profile details |
| `scraped_at` | string | Extraction timestamp |

***

### Use Cases

#### Market Research & Competitive Analysis

- Map restaurant landscape in target cities
- Track competitor pricing and menu changes
- Identify market gaps and opportunities

#### Business Intelligence

- Monitor customer sentiment trends
- Analyze review patterns by time/occasion
- Track promotional activity

#### Investment & Due Diligence

- Evaluate restaurant performance metrics
- Identify high-growth establishments
- Assess market saturation

#### Menu & Pricing Analytics

- Compare pricing across cuisines/locations
- Track menu item popularity
- Analyze price-to-rating correlations

***

### Webhooks

#### Apify Platform Webhooks (Free)

Receive results automatically via Apify webhooks:

1. Go to **Integrations** in your Apify account
2. Create webhook for `ACTOR.RUN.SUCCEEDED`
3. Enter your endpoint URL
4. Receive complete dataset on every run

*This is a standard Apify feature - no additional cost.*

#### Built-in Real-Time Monitoring (Coming Soon)

Automated monitoring webhooks for continuous tracking:

**Features:**

- Restaurant change detection (rating, pricing, menu updates)
- New review alerts as they're posted
- Promotion & discount notifications
- Configurable check intervals (hourly to monthly)

**Pricing:**
| Plan | Monthly Cost | What's Included |
|------|--------------|-----------------|
| Base Subscription | $20 | Monitor up to 3 URLs |
| Additional URLs | +$5 each | Per URL beyond the first 3 |

**Examples:**

- Monitor 1 restaurant: $20/month
- Monitor 3 restaurants: $20/month
- Monitor 5 restaurants: $20 + (2 × $5) = $30/month
- Monitor 10 restaurants: $20 + (7 × $5) = $55/month

**How it works:**

1. Enable webhook monitoring in input
2. Specify URLs to monitor and your webhook endpoint
3. Receive automatic notifications when data changes
4. Billed monthly via PPE events

*This feature is under development. Configure `webhookUrl` to be notified when it launches.*

***

### Coverage

TheFork operates in **12 European countries** with **55,000+ restaurants**:

France, Italy, Spain, Belgium, Netherlands, Switzerland, Portugal, Austria, Sweden, Denmark, Czech Republic, United Kingdom

***

### FAQ

**Do I need proxies?**
No. Our infrastructure handles everything. You pay only for results.

**What's the maximum URLs per run?**
10 URLs. For larger volumes, schedule multiple runs.

**How fresh is the data?**
Real-time extraction directly from TheFork.

**Can I mix city and restaurant URLs?**
Yes. The scraper auto-detects and processes both types.

**How do I control costs?**

- Use lower limits (`maxRestaurants`, `maxReviews`)
- Disable photos unless needed
- Use `reviewsTimeframe` to limit review volume

***

### Support

Issues or questions? Create a ticket in the Apify console.

***

### Legal Disclaimer

**This scraper is an independent product and is not affiliated with, endorsed by, sponsored by, or in any way officially connected with TheFork SAS, TripAdvisor LLC, or any of their subsidiaries or affiliates.**

The name "TheFork" and related trademarks are the property of their respective owners. This tool is provided for legitimate data collection purposes such as market research, competitive analysis, and business intelligence.

**Users are solely responsible for:**

- Ensuring their use complies with applicable laws and regulations
- Respecting TheFork's Terms of Service and robots.txt
- Using extracted data ethically and legally
- Any consequences arising from the use of this tool

The developer assumes no liability for misuse of this software or any damages resulting from its use.

***

**License:** Apache 2.0

# Actor input Schema

## `urls` (type: `array`):

Paste any TheFork URLs (1-10). City pages extract restaurants, restaurant pages extract reviews. Mix both types freely!

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

Maximum restaurants to extract from each city URL. For large cities (1000+), extraction uses automatic pagination. Paris has ~3500, London ~2800, Madrid ~2200 restaurants.

## `startPage` (type: `integer`):

Starting page for pagination (1-based). Use this to resume scraping from a specific page. Page 1 = restaurants 1-25, Page 2 = 26-50, etc.

## `includeMenu` (type: `boolean`):

Extract full menu with all dishes, prices, preset menus, and FAQs. Adds $0.003 per restaurant. For 100 restaurants = $0.30 extra.

## `includeReviewsForRestaurants` (type: `boolean`):

Fetch reviews for each restaurant. Billed per review at $0.001. For 100 restaurants x 50 reviews = $5.00 extra. Use maxReviewsPerRestaurant to control.

## `maxReviewsPerRestaurant` (type: `integer`):

Limit reviews fetched per restaurant. Cost = restaurants x reviews x $0.001. Example: 100 restaurants x 20 reviews = $2.00. Keep low to control costs.

## `includeFoodPhotos` (type: `boolean`):

Extract professional food photos. Billed at $0.001 per 10 photos. For 100 restaurants with 30 photos each = $0.30 extra. Set maxFoodPhotos to control costs.

## `maxFoodPhotos` (type: `integer`):

Limit food photos per restaurant. Lower = lower cost. Set to 10 for samples, 30 for moderate coverage, 100 for complete galleries.

## `includeCustomerPhotos` (type: `boolean`):

Extract customer-uploaded photos. Same billing as food photos: $0.001 per 10 photos. Can significantly increase costs for restaurants with many customer photos.

## `maxCustomerPhotos` (type: `integer`):

Limit customer photos per restaurant. Restaurants may have 100+ customer photos - set a reasonable limit to control costs.

## `maxReviews` (type: `integer`):

Maximum reviews to extract from each restaurant URL.

## `reviewsOffset` (type: `integer`):

Skip the first N reviews and start from review #(N+1). Useful for incremental syncing or fetching the next batch after a previous run. Default 0 = start from newest. Combined with 'Max Reviews per Restaurant' you get reviews \[N+1 .. N+Max].

## `reviewsTimeframe` (type: `string`):

Filter reviews by time period. Select 'All Time' for complete history.

## `reviewsWithText` (type: `string`):

Filter reviews by content type.

## `reviewsOrderBy` (type: `string`):

Primary sort field for reviews.

## `reviewsSortDirection` (type: `string`):

Sort order for reviews.

## `reviewsLanguage` (type: `string`):

Filter reviews by language. Use 'all' for all languages, or a two-letter code (en, fr, de, es, it, pt, nl, etc.).

## `reviewsOccasion` (type: `string`):

Filter reviews by dining occasion. Leave empty for all occasions.

## `webhookUrl` (type: `string`):

Receive real-time notifications when data changes. PRICING: $20/month base (up to 3 URLs) + $5/month per additional URL. This feature is coming soon.

## `debugMode` (type: `boolean`):

Enable detailed logging for troubleshooting. Shows API requests and response details.

## Actor input object example

```json
{
  "urls": [
    "https://www.thefork.com/restaurants/lisbon-c522301",
    "https://www.thefork.com/restaurant/la-petite-maison-r324851"
  ],
  "maxRestaurants": 100,
  "startPage": 1,
  "includeMenu": false,
  "includeReviewsForRestaurants": false,
  "maxReviewsPerRestaurant": 50,
  "includeFoodPhotos": false,
  "maxFoodPhotos": 30,
  "includeCustomerPhotos": false,
  "maxCustomerPhotos": 30,
  "maxReviews": 100,
  "reviewsOffset": 0,
  "reviewsTimeframe": "7d",
  "reviewsWithText": "WITH_REVIEW",
  "reviewsOrderBy": "MEAL_DATE",
  "reviewsSortDirection": "DESC",
  "reviewsLanguage": "all",
  "reviewsOccasion": "",
  "debugMode": false
}
```

# Actor output Schema

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

Restaurant profiles with ratings, pricing, location, cuisine, badges, dietary options, and booking availability

## `reviews` (type: `string`):

Customer reviews with ratings, meal dates, review text, reviewer info, and restaurant owner replies

## `menus` (type: `string`):

Menu items organized by section with names, descriptions, and prices

## `allData` (type: `string`):

All scraped records (restaurants, reviews, menus) in a single combined view

## `summary` (type: `string`):

Execution summary with URL counts, extraction statistics, and run status

# 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 = {
    "urls": [
        "https://www.thefork.com/restaurants/paris-c415144"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jdtpnjtp/thefork-restaurant-scraper-advanced").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 = { "urls": ["https://www.thefork.com/restaurants/paris-c415144"] }

# Run the Actor and wait for it to finish
run = client.actor("jdtpnjtp/thefork-restaurant-scraper-advanced").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 '{
  "urls": [
    "https://www.thefork.com/restaurants/paris-c415144"
  ]
}' |
apify call jdtpnjtp/thefork-restaurant-scraper-advanced --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jdtpnjtp/thefork-restaurant-scraper-advanced"
        }
    }
}
```

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/mQVuuuBOzPeROO8PE/builds/5Z7vxKO2S1kDul0tg/openapi.json
