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

Yelp Place

Dokumentacja API
https://api.sandbase.ai/v1/api/yelp/place

Get a Yelp business by place ID or alias with rating, review count, categories, hours, address, phone, website, amenities and menu.

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

Playground

Wejście
Parameter defines the Yelp ID of a place. Each place has two unique IDs (e.g. `ED7A7vDdg8yLNKJTSVHHmg` and `arabica-brooklyn`) and you can use either of them as a value of the `place_id`. To extract the IDs of a place you can use our Yelp Search API.
Parameter defines the Yelp domain to use. It defaults to `yelp.com`. Head to the Yelp domains for a full list of supported Yelp domains.
Set parameter to `true` to include business alert information when available. It defaults to `false`. Business alerts are temporarily unavailable. With this parameter, `place_results` are returned without `business_alert`.
Set parameter to `true` to scrape business full menu when available. It defaults to `false`. When the parameter `full_menu` is set to `true`, but the business queried doesn't have a full menu page, then `place_results` will be returned instead of `full_menu_results`. This information will also be returned in `search_information` and `error` keys in the json response.
Parameter defines the name of which Full Menu to scrape when more than one Full Menu is available. It can only be used in combination with `full_menu` parameter.
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

Yelp Place

Get a Yelp business by place ID or alias with rating, review count, categories, hours, address, phone, website, amenities and menu.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yelp/place" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"place_id": "arabica-brooklyn"}'

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

Parameters

NameTypeRequiredDescription
place_idstringYesParameter defines the Yelp ID of a place. Each place has two unique IDs (e.g. ED7A7vDdg8yLNKJTSVHHmg and arabica-brooklyn) and you can use either of them as a value of the place_id. To extract the IDs of a place you can use our Yelp S
yelp_domainstringNoParameter defines the Yelp domain to use. It defaults to yelp.com. Head to the Yelp domains for a full list of supported Yelp domains.
business_alertstringNoSet parameter to true to include business alert information when available. It defaults to false. Business alerts are temporarily unavailable. With this parameter, place_results are returned without business_alert.
full_menustringNoSet parameter to true to scrape business full menu when available. It defaults to false. When the parameter full_menu is set to true, but the business queried doesn't have a full menu page, then place_results will be returned inst
menu_namestringNoParameter defines the name of which Full Menu to scrape when more than one Full Menu is available. It can only be used in combination with full_menu parameter.
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ź
Yelp$0.01 za wywołanieJSON
Yelp$0.00015 za wywołanieJSON
Yelp$0.00015 za wywołanieJSON

Pytania

FAQ

Jak używać API Yelp Place?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/yelp/place 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 Yelp Place?

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

Jakie parametry przyjmuje API Yelp Place?

Wymagane: place_id (string). Opcjonalne: yelp_domain (string), business_alert (string), full_menu (string), menu_name (string) i json_restrictor (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Yelp Place?

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

Czy potrzebuję konta deweloperskiego Yelp lub klucza API?

Nie. Yelp Place 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 Yelp.