Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Yelp Place

Tài liệu 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.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 5 tùy chọn

Phòng thử nghiệm

Đầu vào
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.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Yelp PlaceAPI này
Yelp
$0.01 mỗi lần gọiJSON
Yelp$0.00015 mỗi lần gọiJSON
Yelp$0.00015 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Yelp Place?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/yelp/place với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Yelp Place có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Yelp Place chấp nhận những tham số nào?

Bắt buộc: place_id (string). Tùy chọn: yelp_domain (string), business_alert (string), full_menu (string), menu_name (string) và json_restrictor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Yelp Place trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ).

Tôi có cần tài khoản nhà phát triển hoặc API key của Yelp không?

Không. Yelp Place chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Yelp.