Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of thefork.restaurant
    FieldTypeDescription
    restaurantrequiredstringThe 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.
    • restaurant is the number after -r in the address of the restaurant's page, or that address on any of TheFork's sites. The page is read in English.
    • menu is the à la carte menu the restaurant gave TheFork, item after item, each with its section's heading and its price in currency; set_menus are the menus that can be booked.
    • hours has a row a day and period, such as Mon 12:30-14:00, in the restaurant's own time; 24:00 is midnight.
    • features is 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 failed with not_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.

    Record fields of thefork.restaurant
    FieldTypeNotes
    restaurant_idintegerTheFork's id of the restaurant: the number after -r in its page's address.
    namestringThe restaurant's name.
    urlstringThe restaurant's page on TheFork.
    cuisinestring or nullThe restaurant's main cuisine, e.g. French.
    addressstring or nullThe street address.
    postal_codestring or nullThe postal code.
    citystring or nullThe city, as the address writes it.
    countrystring or nullThe country.
    latitudenumber or nullThe latitude, in decimal degrees.
    longitudenumber or nullThe longitude.
    ratingnumber or nullTheFork's rating, out of 10. Null for a restaurant not rated yet.
    review_countinteger or nullHow many ratings it is of.
    average_pricenumber or nullThe average price of a meal, as the restaurant states it, in currency.
    currencystring or nullThe currency of the prices, an ISO 4217 code such as EUR.
    top_chart_rankinteger or nullThe restaurant's place in TheFork's chart of the city's top 100, when it is in it.
    bookableboolean or nullTrue when a table can be booked through TheFork.
    distinctionsarray of stringThe distinctions the page shows, as TheFork names them: MICHELIN, INSIDER, TOPHOST, TOPCHART, …
    rating_labelstring or nullThe word TheFork puts on the rating, e.g. Excellent.
    food_ratingnumber or nullThe average rating of the food, out of 10.
    service_ratingnumber or nullThe average rating of the service, out of 10.
    ambience_ratingnumber or nullThe average rating of the ambience, out of 10.
    tripadvisor_ratingnumber or nullThe Tripadvisor rating the page shows, out of 5.
    tripadvisor_review_countinteger or nullHow many Tripadvisor reviews that rating is of.
    chefstring or nullThe chef the page names.
    descriptionstring or nullThe restaurant's description, in the language the restaurant wrote it.
    michelin_starsinteger or nullThe restaurant's MICHELIN stars, when it has any.
    offerstring or nullThe offer the page puts forward, e.g. a discount on the à la carte menu.
    discount_percentinteger or nullThe largest discount the restaurant offers through TheFork, in percent.
    hoursarray of stringThe 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.
    featuresarray of stringWhat 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_optionsarray of stringThe diets the restaurant caters for, e.g. Vegetarian dishes.
    transportstring or nullHow to get there by public transport, as the page states it.
    parkingstring or nullWhere to park, as the page states it.
    menuarray of objectThe à 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 nullThe heading of the menu's section the item is in, e.g. Desserts.
    name (in menu[])stringThe dish or drink, as the menu writes it.
    price (in menu[])number or nullIts price, in the record's currency.
    description (in menu[])string or nullWhat the menu says of it.
    set_menusarray of objectThe set menus that can be booked, with their prices.
    name (in set_menus[])stringThe set menu's name.
    price (in set_menus[])number or nullIts price, in the record's currency.
    description (in set_menus[])string or nullWhat it includes, in TheFork's words.
    conditions (in set_menus[])string or nullWhen it is served, as the page states it.
    imagestring or nullThe first photo at the top of the page.
    fetched_atstring (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-r122

    Install 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:

    JSON
    {
      "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.

    JSON
    {
      "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.

    JSON
    {
      "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.