Scraper APITheFork
thefork.restaurant
A restaurant's page on TheFork: address, ratings, average price, chef, distinctions, opening hours, menu with prices and set menus.
- Id
thefork.restaurant- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/thefork.restaurant/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
restaurantrequired | string | The restaurant, as TheFork's id of it (122: the restaurant_id of a thefork.search record) or the address of its page (https://www.thefork.com/restaurant/la-grande-cascade-r122).Limit: at least 1 characters, at most 600 characters. |
restaurantis the number after-rin the address of the restaurant's page, or that address on any of TheFork's sites. The page is read in English.menuis the à la carte menu the restaurant gave TheFork, item after item, each with its section's heading and its price incurrency;set_menusare the menus that can be booked.hourshas a row a day and period, such asMon 12:30-14:00, in the restaurant's own time;24:00is midnight.featuresis what the page lists of the restaurant's ambience, dishes, the guests it suits and its amenities. Reviews are not returned, and TheFork shows no telephone number.- An id TheFork has no restaurant under ends
failedwithnot_found, and costs nothing — see the reasons of this family.
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
restaurant_id | integer | TheFork's id of the restaurant: the number after -r in its page's address. |
name | string | The restaurant's name. |
url | string | The restaurant's page on TheFork. |
cuisine | string or null | The restaurant's main cuisine, e.g. French. |
address | string or null | The street address. |
postal_code | string or null | The postal code. |
city | string or null | The city, as the address writes it. |
country | string or null | The country. |
latitude | number or null | The latitude, in decimal degrees. |
longitude | number or null | The longitude. |
rating | number or null | TheFork's rating, out of 10. Null for a restaurant not rated yet. |
review_count | integer or null | How many ratings it is of. |
average_price | number or null | The average price of a meal, as the restaurant states it, in currency. |
currency | string or null | The currency of the prices, an ISO 4217 code such as EUR. |
top_chart_rank | integer or null | The restaurant's place in TheFork's chart of the city's top 100, when it is in it. |
bookable | boolean or null | True when a table can be booked through TheFork. |
distinctions | array of string | The distinctions the page shows, as TheFork names them: MICHELIN, INSIDER, TOPHOST, TOPCHART, … |
rating_label | string or null | The word TheFork puts on the rating, e.g. Excellent. |
food_rating | number or null | The average rating of the food, out of 10. |
service_rating | number or null | The average rating of the service, out of 10. |
ambience_rating | number or null | The average rating of the ambience, out of 10. |
tripadvisor_rating | number or null | The Tripadvisor rating the page shows, out of 5. |
tripadvisor_review_count | integer or null | How many Tripadvisor reviews that rating is of. |
chef | string or null | The chef the page names. |
description | string or null | The restaurant's description, in the language the restaurant wrote it. |
michelin_stars | integer or null | The restaurant's MICHELIN stars, when it has any. |
offer | string or null | The offer the page puts forward, e.g. a discount on the à la carte menu. |
discount_percent | integer or null | The largest discount the restaurant offers through TheFork, in percent. |
hours | array of string | The opening hours, a row per day and period: Mon 12:30-14:00, in the restaurant's own time (24:00 is midnight). Empty when the page lists none. |
features | array of string | What the page lists of the restaurant's ambience, dishes, the guests it suits and its amenities, e.g. Romantic, Seafood platter, Good for groups, Wheelchair Accessible. |
dietary_options | array of string | The diets the restaurant caters for, e.g. Vegetarian dishes. |
transport | string or null | How to get there by public transport, as the page states it. |
parking | string or null | Where to park, as the page states it. |
menu | array of object | The à la carte menu the restaurant gave TheFork, item after item in the menu's order, each with its section and price. |
section (in menu[]) | string or null | The heading of the menu's section the item is in, e.g. Desserts. |
name (in menu[]) | string | The dish or drink, as the menu writes it. |
price (in menu[]) | number or null | Its price, in the record's currency. |
description (in menu[]) | string or null | What the menu says of it. |
set_menus | array of object | The set menus that can be booked, with their prices. |
name (in set_menus[]) | string | The set menu's name. |
price (in set_menus[]) | number or null | Its price, in the record's currency. |
description (in set_menus[]) | string or null | What it includes, in TheFork's words. |
conditions (in set_menus[]) | string or null | When it is served, as the page states it. |
image | string or null | The first photo at the top of the page. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/thefork.restaurant/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"restaurant":"https://www.thefork.com/restaurant/la-grande-cascade-r122"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("thefork.restaurant", {
"restaurant": "https://www.thefork.com/restaurant/la-grande-cascade-r122",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("thefork.restaurant", {
restaurant: "https://www.thefork.com/restaurant/la-grande-cascade-r122",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "thefork.restaurant", map[string]any{"restaurant": "https://www.thefork.com/restaurant/la-grande-cascade-r122"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("thefork.restaurant", Map.of("restaurant", "https://www.thefork.com/restaurant/la-grande-cascade-r122"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run thefork.restaurant --input restaurant=https://www.thefork.com/restaurant/la-grande-cascade-r122Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"restaurant": "https://www.thefork.com/restaurant/la-grande-cascade-r122"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "thefork.restaurant",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"restaurant": "https://www.thefork.com/restaurant/la-grande-cascade-r122"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"restaurant_id": 122,
"name": "La Grande Cascade",
"url": "https://www.thefork.com/restaurant/la-grande-cascade-r122",
"cuisine": "French",
"address": "Bois de Boulogne, allée de Longchamp",
"postal_code": "75016",
"city": "Paris",
"country": "France",
"latitude": 48.86379,
"longitude": 2.24011,
"rating": 9.6,
"review_count": 5779,
"average_price": 200,
"currency": "EUR",
"top_chart_rank": 52,
"bookable": true,
"distinctions": [
"MICHELIN",
"TOPCHART",
"INSIDER"
],
"rating_label": "Excellent",
"food_rating": 9.6,
"service_rating": 9.5,
"ambience_rating": 9.6,
"tripadvisor_rating": 4.5,
"tripadvisor_review_count": 1157,
"chef": null,
"description": null,
"michelin_stars": 1,
"offer": "40% off the 'a la carte' menu",
"discount_percent": 40,
"hours": [
"Mon 12:30-14:00",
"Mon 19:30-21:30",
"Tue 12:30-14:00"
],
"features": [
"Outdoor dining",
"Romantic",
"Crab"
],
"dietary_options": [
"Gluten free",
"Vegetarian dishes"
],
"transport": "Bus Carrefour de Longchamp (L244)",
"parking": "Valet parking",
"menu": [
{
"section": "Drinks",
"name": "Half a bottle of water",
"price": 8.5,
"description": null
},
{
"section": "Drinks",
"name": "Coffee",
"price": 8.5,
"description": null
}
],
"set_menus": [
{
"name": "Menu Itinéraire en 7 étapes",
"price": 245,
"description": "This preset menu includes: First course + Second course + Third course + Fourth course + Fifth course + Sixth course + Seventh course",
"conditions": "This preset menu is available and for lunch on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday for dinner on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday Prévu pour l’ensemble de la table"
},
{
"name": "Menu du jardin en 4 étapes",
"price": 128,
"description": "This preset menu includes: First course + Second course + Third course + Fourth course",
"conditions": "This preset menu is available for dinner on Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday Prévu pour l’ensemble de la table"
}
],
"image": "https://cdn.thefork.com/tf-lab/image/upload/restaurant/27f03599-3039-41a7-9a7e-36cb359eff77/aade8655-1779-47bc-96f5-1bd402c4597f.jpg",
"fetched_at": "2026-11-19T18:07:41.427574Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
hours: 14 items, the first 3 shown. - Shortened:
features: 13 items, the first 3 shown. - Shortened:
menu: 17 items, the first 2 shown. - Shortened:
set_menus: 4 items, the first 2 shown. - Left out:
chef: it is a person's name.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the TheFork scrapers are in their own section there.