Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

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.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 2 opcjonalnych

Playground

Wejście
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.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
OpenTable$0.01 za wywołanieJSON

Pytania

FAQ

Jak używać API OpenTable Reviews?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/opentable/reviews z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API OpenTable Reviews?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API OpenTable Reviews?

Wymagane: rid (string). Opcjonalne: page (string) i json_restrictor (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API OpenTable Reviews?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego OpenTable lub klucza API?

Nie. OpenTable Reviews działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API OpenTable.