# Resy City Listings API Documentation

Return the public Book Tonight venue listing for a city slug. Each venue carries its id, name, cuisine, price band, rating and images. Filter by day, party size and position. Omit day and party_size to use today and 2. Costs 1 credit.

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

## 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 |
| --- | --- | --- | --- |
| `location` | string | Yes | City slug, e.g. new-york-ny. |
| `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 to bias the listing. Send with longitude. |
| `longitude` | number | No | Longitude to bias the listing. Send with latitude. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/resy/city-listings?location=new-york-ny"
```

## Example response

```json
{
    "success": true,
    "data": {
        "venues": [
            {
                "id": {
                    "resy": 60029
                },
                "name": "Le Gratin"
            }
        ]
    },
    "meta": {
        "endpoint_family": "city_listings",
        "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)
