Search DuckDuckGo Maps
litescrape.duckduckgo.maps.searchReturns places from DuckDuckGo's local results in `local_results`
- 价格
- $0.00015/success按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- 2026年9月29日实测可用
GEThttps://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
q | 字符串 | 必填 | Place or category query, 1 to 500 characters. | coffee |
lat | 数字 | 可选 | Map center latitude from -90 through 90. Requires lon; use instead of bbox. | 30.2672 |
lon | 数字 | 可选 | Map center longitude from -180 through 180. Requires lat; use instead of bbox. | -97.7431 |
bbox | 字符串 | 可选 | Map rectangle as top,left,bottom,right (latitude,longitude of the top-left corner, then of the bottom-right corner); must not wrap the antimeridian. Use instead of lat/lon; one of the two is required. | 30.35,-97.90,30.10,-97.50 |
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. | |
strict_bbox | 布尔 | 可选 | Exclude results outside the requested bounds. | |
- 查询参数
q字符串必填Place or category query, 1 to 500 characters.
示例:
coffeelat数字可选Map center latitude from -90 through 90. Requires lon; use instead of bbox.
示例:
30.2672lon数字可选Map center longitude from -180 through 180. Requires lat; use instead of bbox.
示例:
-97.7431bbox字符串可选Map rectangle as top,left,bottom,right (latitude,longitude of the top-left corner, then of the bottom-right corner); must not wrap the antimeridian. Use instead of lat/lon; one of the two is required.
示例:
30.35,-97.90,30.10,-97.50timeout数字可选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.
strict_bbox布尔可选Exclude results outside the requested bounds.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70",
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.duckduckgo.maps.search?q=coffee+shops&bbox=30.30%2C-97.80%2C30.20%2C-97.70", {
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 计费,已含服务费。