Blog / API guides

Resy API: Restaurant Availability as JSON

To get Resy restaurant and availability data as JSON, call Perceptlayer's seven Resy endpoints: /v1/resy/search finds restaurants by keyword and location, /v1/resy/venue returns one restaurant's details, and /v1/resy/calendar returns an inventory value per date for a venue_id. Each successful call costs 1 credit. These endpoints read public restaurant and availability data only. They don't book, hold or cancel tables, and they aren't a booking integration. This guide shows the requests, parameters, recorded responses, a Python availability log and the cost.

What does the Resy API on Perceptlayer return?

The Resy API on Perceptlayer has seven GET endpoints that return public restaurant data as JSON: restaurant search, a city's listings, a city's cuisines, a venue's details and party-size settings, a date-by-date availability calendar and a slot lookup. Each costs 1 credit per successful call, and failed calls cost nothing. All seven are read-only.

Method Path Returns Credits Required Optional
GET /v1/resy/search Restaurants for a keyword 1 query day, party_size, latitude, longitude, radius, page, time_zone
GET /v1/resy/city-listings A city's venues 1 location day, party_size, latitude, longitude
GET /v1/resy/cuisines A city's cuisines 1 location maximum_num_cuisines
GET /v1/resy/venue One venue 1 none id, url_slug, location
GET /v1/resy/venue-config Party-size settings 1 venue_id none
GET /v1/resy/calendar Availability by date 1 venue_id, start_date, end_date num_seats, time_zone
GET /v1/resy/slot One slot 1 config_id day, party_size, time_zone

These are Perceptlayer endpoints, not Resy's own systems or a partner API, so they can't reserve anything. If you need to place bookings, that's a different product; compare what the site itself offers and read its terms. The Resy API page lists every endpoint with a playground.

How do you search Resy restaurants?

Send a GET request to https://api.perceptlayer.com/v1/resy/search with a query and, optionally, a latitude and longitude to search near a point. Put your key in the X-API-Key header. This request produced the recorded response below:

curl "https://api.perceptlayer.com/v1/resy/search?query=ramen&latitude=40.712941&longitude=-74.006393" \
  -H "X-API-Key: $API_KEY"

Keys start with sk_live_, and where headers aren't possible the key can go in the api_key query parameter; the authentication docs cover both. The recorded search returned 18 hits on one page. This excerpt keeps the first hit:

{
  "success": true,
  "data": {
    …
    "search": {
      "nbHits": 18,
      "cuisines": [
        "Japanese",
        "Asian"
      ],
      "hits": [
        {
          "rating": {
            "count": 69,
            "average": 4.13043
          },
          "cuisine": [
            "Asian"
          ],
          "travel_time": {
            "distance": 0.6742633601277273
          },
          "name": "Loong Ramen",
          "location": {
            "code": "ny",
            "name": "New York",
            "id": 1,
            "url_slug": "new-york-ny"
          },
          "url_slug": "loong-ramen",
          …
          "id": {
            "resy": 95598
          },
          …
          "price_range_id": 1,
          "_geoloc": {
            "lng": -74.01778278815263,
            "lat": 40.708414425079305
          },
          …
          "neighborhood": "Battery Park City",
          "max_party_size": 4,
          "rating_value": 4.13043,
          "review_count": 69
        },
        …
      ],
      …
    },
    "pagination": {
      "page": 1,
      "per_page": 18,
      "total": 18,
      "total_pages": 1,
      "has_more": false,
      "returned": 18
    },
    "query": "ramen",
    "page": 1
  },
  "meta": {
    "endpoint_family": "search",
    …
    "credits_charged": 1,
    …
  }
}

Each hit also has availability, holding slots, templates and notify_options arrays, but their contents are trimmed in our recording, so we can't show what a slot contains. Use pagination.has_more and the page parameter to read further pages when a search returns more than one.

Which parameters do the endpoints take?

Most parameters are plain strings and numbers with a length limit or nothing documented beyond their type. The table lists every one. Nothing else is documented, including defaults, date formats and units for radius, so check behaviour in the playground before you depend on it.

Parameter Endpoints Type Documented constraint
query search string Required, up to 100 characters
location city-listings, cuisines, venue string Up to 100 characters; required on the first two
day search, city-listings, slot string None documented
party_size search, city-listings, slot integer None documented
latitude, longitude search, city-listings number None documented
radius, page search integer None documented
time_zone search, calendar, slot string An IANA zone name such as America/New_York, or UTC
maximum_num_cuisines cuisines integer None documented
id venue integer None documented
url_slug venue string Up to 200 characters
venue_id venue-config, calendar integer Required
start_date, end_date calendar string Required
num_seats calendar integer None documented
config_id slot string Required, up to 200 characters

The recordings used location=new-york-ny for city listings, location=ny for cuisines and YYYY-MM-DD dates for the calendar. Those match the url_slug and code values in a search hit's location object.

How do you check a restaurant's availability by date?

Call /v1/resy/calendar with a venue_id, a start_date and an end_date, and optionally num_seats. It returns a scheduled array with one date and one inventory value per day, plus last_calendar_day. One call covers the whole range, so a week or a month of dates costs the same 1 credit.

curl "https://api.perceptlayer.com/v1/resy/calendar?venue_id=60029&num_seats=2&start_date=2026-12-15&end_date=2026-12-22" \
  -H "X-API-Key: $API_KEY"
{
  "success": true,
  "data": {
    "scheduled": [
      {
        "date": "2026-12-15",
        "inventory": "available"
      },
      {
        "date": "2026-12-16",
        "inventory": "available"
      },
      …
    ],
    "last_calendar_day": "2026-12-31"
  },
  …
}

The only inventory value in the recording is "available", so store whatever string comes back rather than mapping it to a boolean. last_calendar_day was 2026-12-31 for this venue; record it too, since it tells you how far ahead the calendar reached at the time of the call.

Where does the venue_id come from?

The recorded venue call with id=60029 returned Le Gratin with id.resy 60029, and the recorded calendar and venue-config calls used that same 60029 as venue_id. Search hits carry the same id.resy field, such as 95598 for Loong Ramen, so the names match, but we have no recording that passes a search hit's id to the calendar. Confirm it in the playground on the calendar endpoint page first.

What do venue and venue-config add?

/v1/resy/venue returns a restaurant's full record. The recording for id=60029 includes location (address, neighborhood, postal_code, latitude, longitude), locale.time_zone "EST5EDT", price_range_id 2, and a rater entry with score 4.64996 from total 7,839 ratings, plus editorial collections, images and links. /v1/resy/venue-config returns party-size settings: the recording has venue.max_party_size 6 and a top-level max_party_size 20. The two differ, and nothing documents which governs what, so store both.

/v1/resy/slot takes a config_id with an optional day, party_size and time_zone. We don't have a recorded slot response or a recording that shows where a config_id comes from, so see the slot endpoint page and test it there.

How do you log restaurant availability in Python?

An availability log calls /calendar for a fixed list of venues on a schedule and appends one row per venue per date: when you checked, the venue, the date, the inventory value and last_calendar_day. Over weeks this shows how far ahead each restaurant's dates open and how availability changes as a date approaches, across a set of restaurants. The script reads only fields in the recorded calendar response.

import csv
import datetime
import os
import time

import requests

API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/resy/calendar"
VENUE_IDS = [60029]
SEATS = 2


def calendar(venue_id, start, end, attempts=3):
    params = {"venue_id": venue_id, "num_seats": SEATS,
              "start_date": start, "end_date": end}
    for _ in range(attempts):
        r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
        if r.status_code in (429, 503):
            time.sleep(int(r.headers.get("Retry-After", "5")))
            continue
        r.raise_for_status()
        return r.json()["data"]
    raise RuntimeError(f"gave up on venue {venue_id}")


today = datetime.date.today()
start, end = today.isoformat(), (today + datetime.timedelta(days=30)).isoformat()
checked = datetime.datetime.now(datetime.timezone.utc).isoformat()

with open("resy-availability.csv", "a", newline="") as f:
    out = csv.writer(f)
    for venue_id in VENUE_IDS:
        data = calendar(venue_id, start, end)
        for day in data.get("scheduled", []):
            out.writerow([checked, venue_id, day.get("date"),
                          day.get("inventory"), data.get("last_calendar_day")])
        time.sleep(1)

The one-second pause keeps a free account within 1 request a second. Keep num_seats fixed between runs so the rows compare like with like.

What should the job do with errors?

Every error returns an HTTP status and a JSON body with code, message and request_id, and costs nothing. Retry rate_limited (429) and temporarily_unavailable (503) after the Retry-After seconds, and treat invalid_parameters (422) as a bug in your input. Requests have no idempotency key, so a client timeout can hide a call that succeeded and was billed. The errors docs list every code.

What does Resy data cost?

Every successful call costs 1 credit, whatever it returns. A search returns many restaurants for 1 credit, and a calendar call returns every date in its range for 1 credit, so cost follows how many venues you check and how often, not how many dates you ask for.

Plan Arithmetic Credits a month
20 venues' calendars daily 20 × 30 days × 1 credit 600
50 venues' calendars daily 50 × 30 days × 1 credit 1,500
300 venues' calendars daily 300 × 30 days × 1 credit 9,000
1,000 venues' calendars daily 1,000 × 30 days × 1 credit 30,000

The first three fit the Starter pack's 10,000 credits; the last fits the Build pack's 50,000. The 100 free credits on signup cover 100 calls: enough to search a neighbourhood, pull a few venues and run a 20-venue calendar check for four days. Failed calls return X-Credits-Used: 0. See pricing for what credits cost and the credits docs for how calls are debited.

To try it, run query=ramen in the playground on the search endpoint page, then get a free API key. Other restaurant sources are covered in the DoorDash store and menu guide and the Uber Eats store data guide, and more sources sit under reviews APIs.

APIs in this post

Frequently asked questions

Can I book a table with these Resy endpoints?

No. All seven endpoints are read-only: they return public restaurant and availability data, collected from publicly available sources at the time of the call. None of them makes, holds, changes or cancels a reservation, and none connects to a diner's account. For booking, look at what the site itself offers and read its terms.

Is this Resy's official API?

No. These are Perceptlayer endpoints, separate from Resy's own systems. They search restaurants, return venue details and settings, and read a date calendar and slots. To decide whether the site's own offering fits you better, compare its access rules and fields with the recorded responses in this guide yourself.

What does the calendar inventory field mean?

Each entry in scheduled pairs a date with an inventory string. The only value in our recording is "available", and no other values are documented, so store the string exactly as returned and count values per date rather than assuming a fixed set. The response also carries last_calendar_day, the furthest date the calendar covered.

How much does checking availability cost?

Each successful calendar call costs 1 credit and covers every date from start_date to end_date. Checking 50 restaurants once a day is 50 × 30 × 1 = 1,500 credits a month. The 100 free credits on signup cover 100 calls. Failed calls cost nothing.

How fast can I check many restaurants?

Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute, so a 50-venue check takes under a minute. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. The rate limits docs list each pack's rate.

  1. MyAnimeList API: Anime and Manga Data as JSON

    Six MyAnimeList endpoints at 1 credit each: anime and manga by id, search, season and top lists, with score, rank, members and a real response.

  2. Vimeo API: Public Videos as JSON

    Three restricted Vimeo endpoints at 1 credit each: video search with a total count, video details and an account's public videos, with real responses.

  3. Uber Eats API: Store Data as JSON

    Get an Uber Eats store's rating, hours, delivery fee, ETA and popular items as JSON from one call to /v1/uber-eats/store, at 1 to 11 credits for each call.

Start with 100 free credits

No password to set. We email you a sign-in link, and your key works on every API.

No credit card. 100 free credits on signup.