OpenTable API endpoint
Returns the menus of one OpenTable restaurant, identified by the required `restaurant_id`. Each menu has a title, a currency and sections, and each section lists items with title, price and description. The price is returned as a string in the menu's currency, for example HK$.
/opentable/restaurant/menusReturns an OpenTable restaurant's menus.
Query parameters:
restaurant_id (required) — OpenTable restaurant id.| Field | Filled in, of 4 checked | Values in the sample |
|---|---|---|
| title | 4 | “Lung King Heen Tasting Menu” and 3 other values |
| currency | 4 | HK$ in all 4 |
| sections | 4 | median 2 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| restaurant_id | string | Yes | OpenTable restaurant id | 164555 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/opentable/restaurant/menus?restaurant_id=164555" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"restaurant_id": "164555",
"menus": [
{
"title": "Desserts",
"currency": "HK$",
"sections": [
{
"title": "Dessert",
"items": [
{
"title": "Chilled Mango and Sago Cream with Pomelo (D)",
"price": "128.00",
"description": "Per Person"
}
]
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/opentable.menusResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | opentable.MenusResponse | No | ||||
| data.menus | array | No | ||||
| data.menus[].currency | string | No | ||||
| data.menus[].sections | array | No | ||||
| data.menus[].sections[].items | array | No | ||||
| data.menus[].sections[].items[].description | string | No | ||||
| data.menus[].sections[].items[].price | string | No | ||||
| data.menus[].sections[].items[].title | string | No | ||||
| data.menus[].sections[].title | string | No | ||||
| data.menus[].title | string | No | ||||
| data.restaurant_id | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/opentable/restaurant/menus?restaurant_id=164555" \
-H "x-api-key: $CRAWLORA_API_KEY"