Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Yelp Business Search

API 文档
https://api.sandbase.ai/v1/api/yelp/search

Search Yelp businesses by keyword and location: name, rating, review count, price level, categories and address.

价格
$0.00015美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 8 个可选
每天 100 次免费调用每天前 100 次调用免费(按组织共享)· UTC 00:00 重置。之后按次计费。

Playground

输入
Search location, 1 to 500 characters.
Business name, category, or search terms, up to 500 characters.
Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
Yelp map-bounds token, up to 1,024 characters.
Yelp category identifier, such as coffee.
Result order.
Comma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
Result offset from 0 through 10,000.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Yelp Business Search API

Search Yelp businesses by keyword and location: name, rating, review count, price level, categories and address.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yelp/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"find_desc": "coffee", "find_loc": "Austin, TX"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
find_locstringYesSearch location, 1 to 500 characters.
attrsstringNoComma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
cfltstringNoYelp category identifier, such as coffee.
find_descstringNoBusiness name, category, or search terms, up to 500 characters.
lstringNoYelp map-bounds token, up to 1,024 characters.
sortbystringNoResult order.
startintegerNoResult offset from 0 through 10,000.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater t
yelp_domainstringNoSupported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.

Pricing

Flat price per call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Yelp$0.00015 每次调用JSON
Yelp$0.01 每次调用JSON
Yelp$0.00015 每次调用JSON

问题

常见问题

如何使用 Yelp Business Search API?

向 https://api.sandbase.ai/v1/api/yelp/search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Yelp Business Search API 的价格是多少?

每次调用 $0.00015。每个组织在每个 UTC 日可获得 100 次免费调用,适用于包括此接口在内的所有符合条件的 SandBase APIs;超过后,每次调用将按此价格从您的 SandBase 余额中扣费。无需订阅。

Yelp Business Search API 接受哪些参数?

必填:find_loc (string)。 可选:find_desc (string), yelp_domain (string), l (string), cflt (string), sortby(recommended, rating, review_count 之一) 和 attrs (string) 以及另外 2 项。 Parameters 表和本页的 Playground 列出了每个字段。

Yelp Business Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。

我需要 Yelp 开发者账户或 API key 吗?

不需要。Yelp Business Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Yelp API 访问权限。