Search Yelp businesses
litescrape.yelp.business.searchReturns Yelp businesses in `organic_results`
- 价格
- $0.00015/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
Four live requests returned upstream 503 service_unavailable. The documented request contract and price are retained; no successful result is verified yet.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
l | 字符串 | 可选 | Yelp map-bounds token, up to 1,024 characters. | g:-97.80,30.20,-97.70,30.30 |
cflt | 字符串 | 可选 | Yelp category identifier, such as coffee. | coffee |
attrs | 字符串 | 可选 | Comma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters. | OutdoorSeating |
start | 整数 | 可选 | Result offset from 0 through 10,000. | |
sortby | 字符串 | 可选 | Result order. | |
timeout | 数字 | 可选 | 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 and a request ID. Omit to retain the standard server deadline. | |
find_loc | 字符串 | 必填 | Search location, 1 to 500 characters. | Austin, TX |
find_desc | 字符串 | 可选 | Business name, category, or search terms, up to 500 characters. | coffee |
yelp_domain | 字符串 | 可选 | Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname. | www.yelp.com |
- 查询参数
l字符串可选Yelp map-bounds token, up to 1,024 characters.
示例:
g:-97.80,30.20,-97.70,30.30cflt字符串可选Yelp category identifier, such as coffee.
示例:
coffeeattrs字符串可选Comma-separated Yelp attribute filters, such as OutdoorSeating; up to 4,096 characters.
示例:
OutdoorSeatingstart整数可选Result offset from 0 through 10,000.
sortby字符串可选Result order.
timeout数字可选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 and a request ID. Omit to retain the standard server deadline.
find_loc字符串必填Search location, 1 to 500 characters.
示例:
Austin, TXfind_desc字符串可选Business name, category, or search terms, up to 500 characters.
示例:
coffeeyelp_domain字符串可选Supported first-party localized Yelp hostname, such as www.yelp.co.uk. Links in the response use this hostname.
示例:
www.yelp.com
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.yelp.business.search?find_loc=Austin%2C+TX&find_desc=coffee", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.00015/success 计费,已含服务费。