# Resy Restaurant Search API Documentation

Search Resy restaurants near a position or by keyword. Each hit carries its id, name, cuisine, price band, rating, review count, full-size images and an availability object with slots. Filter by day, party size and a geo radius, and page through results. Omit day and party_size to use today and 2. Slot dates are ISO 8601 when a zone is known, otherwise naive venue-local. Costs 1 credit.

- **Documentation:** [https://scrappa.co/docs/resy-api/resy_search](https://scrappa.co/docs/resy-api/resy_search)
- **API group:** Resy API
- **Endpoint:** `GET https://scrappa.co/api/resy/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Restaurant name, cuisine or keyword, 1 to 100 characters. Example: ramen. |
| `day` | string | No | Reservation date in YYYY-MM-DD form. Defaults to today. |
| `party_size` | integer | No | Number of guests, 1 to 20. Defaults to 2 when day is omitted. |
| `latitude` | number | No | Latitude of the search centre. Send with longitude. Defaults to New York. |
| `longitude` | number | No | Longitude of the search centre. Send with latitude. |
| `radius` | integer | No | Search radius in metres, 100 to 50000. |
| `page` | integer | No | 1-based page number. An out-of-range page returns zero hits. |
| `time_zone` | string | No | IANA zone used to render slot dates as ISO 8601 when the hit has no venue zone. Without a zone the naive value is kept and date.time_basis is naive_venue_local. Slots after midnight may carry the next date; no slot is dropped. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/resy/search?query=ramen&day=2026-11-20&party_size=2&latitude=40.712941&longitude=-74.006393"
```

## Example response

```json
{
    "success": true,
    "data": {
        "query": "ramen",
        "search": {
            "hits": [
                {
                    "id": {
                        "resy": 60029
                    },
                    "name": "Le Gratin",
                    "price_range_id": 3,
                    "rating": {
                        "average": 4.6,
                        "count": 812
                    }
                }
            ]
        },
        "pagination": {
            "page": 1,
            "per_page": 20,
            "returned": 1
        }
    },
    "meta": {
        "endpoint_family": "search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | Unsupported Filter | The request used a filter key that is not proven. No filter is fabricated. Not billable. |
| 422 | Invalid Request | Resy rejected the request. Check the parameters. Not billable and not retryable. |
| 404 | Venue Not Found | The requested venue was not found. Not billable. |
| 502 | Invalid Source Response | The upstream response no longer matches the expected shape. Not billable. |
| 503 | Upstream Unavailable | No healthy egress or the upstream failed. Not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
