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

Yelp Place

Documentazione 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.

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

Playground

Input
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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Yelp PlaceQuesta API
Yelp
$0.01 per chiamataJSON
Yelp$0.00015 per chiamataJSON
Yelp$0.00015 per chiamataJSON

Domande

FAQ

Come uso l'API Yelp Place?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/yelp/place 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 Yelp Place?

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

Quali parametri accetta l'API Yelp Place?

Richiesti: place_id (string). Facoltativi: yelp_domain (string), business_alert (string), full_menu (string), menu_name (string) e json_restrictor (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Yelp Place?

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

Mi serve un account sviluppatore o una chiave API Yelp?

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