TheFork APIthefork.com ↗
Search TheFork restaurants, retrieve full details, and check real-time table availability by date and party size via 3 structured JSON endpoints.
What is the TheFork API?
The TheFork API gives developers access to 3 endpoints covering restaurant search, detailed profiles, and table availability across TheFork's European and global restaurant network. search_restaurants returns a list of matching venues with IDs and booking URLs, get_restaurant surfaces cuisine type, rating, average price, and photos for a single restaurant, and check_availability returns open time slots grouped by meal service for a chosen date and party size.
curl -X GET 'https://api.parse.bot/scraper/68f074f6-c335-4986-b0e0-d449190fa450/search_restaurants?city=Paris&name=Bistro' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace thefork-com-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: TheFork SDK — bounded, re-runnable; every call capped."""
from parse_apis.thefork_com_api import TheFork, RestaurantNotFound
client = TheFork()
# Search restaurants by name in Paris
for summary in client.restaurant_summaries.search(name="Bistro", city="Paris", limit=3):
print(summary.name, summary.city, summary.zipcode)
# Drill down: get full details for the first result
hit = client.restaurant_summaries.search(name="Le Jules Verne", city="Paris", limit=1).first()
if hit:
try:
full = hit.details()
print(full.name, full.cuisine, full.rating, full.booking_url)
except RestaurantNotFound as e:
print(f"not found: {e.restaurant_id}")
# Check availability: time slots for a future date
if hit:
for slot in hit.details().availability(date="2026-07-20", party_size=2, limit=3):
print(slot.time, slot.service, slot.offer)
print("exercised: restaurant_summaries.search / details / availability")
Search restaurants by name on TheFork. Results are biased toward the specified city when provided. Returns restaurant summaries including booking page URLs. Each result carries a numeric restaurant ID usable with get_restaurant and check_availability.
| Param | Type | Description |
|---|---|---|
| city | string | City name to bias and filter results (e.g. Paris, London, Rome). When omitted, results default to Paris. |
| namerequired | string | Restaurant name or partial name to search for. |
{
"type": "object",
"fields": {
"restaurants": "array of restaurant summaries with id, name, city, country, zipcode, thumbnail_url, and booking_url"
},
"sample": {
"restaurants": [
{
"id": "35738",
"city": "Paris",
"name": "Le V - Hôtel Vernet",
"country": "France",
"zipcode": "75008",
"booking_url": "https://www.thefork.com/restaurant/le-v---hôtel-vernet-r35738",
"thumbnail_url": "https://cdn.thefork.com/tf-lab/image/upload/f_auto,q_auto,w_184,h_184,c_fill/restaurant/b744d3ab-04a6-4c31-b288-63069a6c67fb/50d8abdd-ef5b-42d2-a533-4fc1b9cf6fa5.jpg"
}
]
}
}About the TheFork API
Restaurant Search and Identification
search_restaurants accepts a required name parameter and an optional city to bias results geographically. Each result in the restaurants array carries a numeric id that flows directly into the other two endpoints, plus thumbnail_url and booking_url for linking users to the TheFork booking page. When city is omitted, results default to Paris.
Restaurant Detail
get_restaurant takes a single restaurant_id and returns a full profile: name, cuisine, address (structured as street, zipcode, city), rating out of 10, avg_price with amount and currency, a photos array of image URLs, slug, uuid, and booking_url. The avg_price field can be null when the restaurant has not published pricing on TheFork.
Table Availability
check_availability checks open slots for a given restaurant_id, date (ISO format YYYY-MM-DD), and optional party_size (1–20 guests). The time_slots array groups results by service value — LUNCH or DINER — and each slot includes time, date_time, yums_available (TheFork's loyalty points indicator), and an offer field that surfaces any active discount. The endpoint does not place or hold a reservation; it is read-only availability data.
The TheFork API is a managed, monitored endpoint for thefork.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when thefork.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official thefork.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a restaurant discovery tool filtered by city and cuisine using search_restaurants and get_restaurant fields.
- Display real-time lunch and dinner availability calendars for a given restaurant using check_availability time_slots.
- Surface active discount offers on specific time slots to help users find promotional reservation windows.
- Aggregate TheFork ratings and average price data across multiple restaurants for neighborhood-level dining comparisons.
- Generate deep-linking booking flows using the booking_url returned by all three endpoints.
- Power a concierge app that checks party-size-specific table availability across multiple restaurants on a target date.
- Monitor yums_available flags across time slots to identify loyalty-eligible reservation windows.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.