# OpenTable Restaurant Details API Documentation

Retrieve one public OpenTable restaurant by id or profile URL: name, description, dining style, cuisines, price band, address, coordinates, neighborhood, hours, dress code, parking, contact, payment options, amenities, awards, editorial lists, popular dishes, menus with sections, items and prices, up to 15 photos and the rating breakdown (overall, food, service, ambience, value, noise and one to five star counts). Costs 1 credit. Table availability slots are not included.

- **Documentation:** [https://scrappa.co/docs/opentable-api/opentable_restaurant](https://scrappa.co/docs/opentable-api/opentable_restaurant)
- **API group:** OpenTable API
- **Endpoint:** `GET https://scrappa.co/api/opentable/restaurant`

## 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 |
| --- | --- | --- | --- |
| `restaurant_id` | integer | No | Numeric OpenTable restaurant id from the search endpoint, e.g. 489. Send this or url. |
| `url` | string | No | OpenTable profile URL containing /restaurant/profile/<id>. Send this or restaurant_id. |
| `country` | string | No | OpenTable site of the restaurant: us (default), gb, ca, de, au or ie. A url sets it automatically. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/opentable/restaurant?restaurant_id=489"
```

## Example response

```json
{
    "success": true,
    "data": {
        "restaurant": {
            "id": 489,
            "name": "Mon Ami Gabi",
            "url": "https://www.opentable.com/restaurant/profile/489",
            "dining_style": "Casual Dining",
            "cuisine": "French",
            "cuisines": [
                "French",
                "Steak",
                "Seafood"
            ],
            "price_band": {
                "id": 2,
                "name": "$30 and under",
                "symbol": "$"
            },
            "rating": {
                "overall": 4.8,
                "count": 763,
                "food": 4.8,
                "service": 4.7,
                "ambience": 4.8,
                "value": 4.5,
                "noise": 2,
                "ratings": [
                    {
                        "stars": 1,
                        "count": 5
                    },
                    {
                        "stars": 5,
                        "count": 675
                    }
                ]
            },
            "address": {
                "line1": "2300 N. Lincoln Park West",
                "city": "Chicago",
                "region": "IL",
                "postal_code": "60614",
                "country": "United States"
            },
            "coordinates": {
                "latitude": 41.924216,
                "longitude": -87.6370405
            },
            "contact": {
                "phone": "(773) 348-8886",
                "website": "http://www.monamigabi.com/"
            },
            "payment_options": [
                "AMEX",
                "Visa"
            ],
            "photos": {
                "total": 867,
                "items": [
                    {
                        "id": 71253669,
                        "url": "https://resizer.otstatic.com/v3/photos/71253669-2",
                        "category": "interior"
                    }
                ]
            }
        }
    },
    "meta": {
        "endpoint_family": "restaurant",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | The requested OpenTable restaurant was not found. This response is not billable. |
| 502 | Invalid Source Response | The upstream answered with a shape that no longer matches the documented contract. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
