Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

OpenTable Reviews

https://api.sandbase.ai/v1/api/opentable/reviews

Get diner reviews for a restaurant on OpenTable by restaurant ID, with overall and sub-ratings, text, date and diner info.

Prezzo
$0.01USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali

Playground

Input
Parameter defines the OpenTable Restaurant ID. This identifier can be found in the URL of the restaurant's page, it's the path of the URL (the part after the first singular `/`). For example, in the URL `https://www.opentable.com/r/central-park-boathouse-new-york-2`, the Restaurant ID is `r/central-park-boathouse-new-york-2`.
Parameter defines the page number. `1` (default) is the first page of 10 results, `2` is the 2nd page, etc.
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

OpenTable Reviews

Get diner reviews for a restaurant on OpenTable by restaurant ID, with overall and sub-ratings, text, date and diner info.

Request

curl -X POST "https://api.sandbase.ai/v1/api/opentable/reviews" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rid": "r/central-park-boathouse-new-york-2"}'

The result is returned in outputs[0].data as structured JSON.

Parameters

NameTypeRequiredDescription
ridstringYesParameter defines the OpenTable Restaurant ID. This identifier can be found in the URL of the restaurant's page, it's the path of the URL (the part after the first singular /). For example, in the URL `https://www.opentable.com/r/central-
pagestringNoParameter defines the page number. 1 (default) is the first page of 10 results, 2 is the 2nd page, etc.
json_restrictorstringNoParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.

Pricing

$0.010 per successful call. Failed calls are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
OpenTable$0.01 per chiamataJSON

Domande

FAQ

Come uso l'API OpenTable Reviews?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/opentable/reviews con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API OpenTable Reviews?

$0.01 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API OpenTable Reviews?

Richiesti: rid (string). Facoltativi: page (string) e json_restrictor (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API OpenTable Reviews?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona).

Mi serve un account sviluppatore o una chiave API OpenTable?

No. OpenTable Reviews funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API OpenTable.