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

DuckDuckGo Maps

API 文档
https://api.sandbase.ai/v1/api/duckduckgo/maps

Search DuckDuckGo Maps for places inside a viewport rectangle or around a center.

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

Playground

输入
Place or category query, up to 500 characters.
Viewport center latitude. Requires lon. 范围:-90 到 90。
Viewport center longitude. Requires lat. 范围:-180 到 180。
Viewport rectangle as 'top,left,bottom,right'. Required unless lat and lon are supplied.
Exclude results outside the requested bounds. Default true.
输出就绪

您的输出将显示在这里

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

API README

DuckDuckGo Maps

Returns a list of places that match a text query inside a map viewport. Each place has an address, coordinates, rating, opening hours, contact details and a few reviews. You pass q plus either lat and lon for a center point or bbox for a rectangle.

Use cases

  • Build a list of coffee shops near a given point with their addresses and phone numbers.
  • Compare rating and reviews counts across businesses in one neighborhood.
  • Plot places on a map using gps_coordinates.
  • Check which nearby places are open now and what hours they keep.

Request

curl -X POST "https://api.sandbase.ai/v1/api/duckduckgo/maps" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "coffee", "lat": 40.7128, "lon": -74.006}'

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

Parameters

NameTypeRequiredDescription
qstringYesPlace or category query, up to 500 characters.
bboxstringNoViewport rectangle as 'top,left,bottom,right'. Required unless lat and lon are supplied.
latnumberNoViewport center latitude. Requires lon.
lonnumberNoViewport center longitude. Requires lat.
strict_bboxbooleanNoExclude results outside the requested bounds. Default true.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "local_results": [
    {
      "address": "38 Park Row, New York, NY 10038",
      "address_lines": [
        "38 Park Row"
      ],
      "city": "New York",
      "country_code": "US",
      "gps_coordinates": {
        "latitude": 40.7116156,
        "longitude": -74.0066955
      },
      "images": [
        "https://s3-media0.fl.yelpcdn.com/bphoto/kIWhmJh35yANG7qeEZsdvg/o.jpg"
      ],
      "link": "https://www.yelp.com/biz/starbucks-new-york-395?adjust_creative=duckduckgo&utm_c…",
      "menu": "https://www.starbucks.com/menu",
      "open_state": "Closed",
      "operating_hours": {
        "fri": "05:00:00 - 20:00:00",
        "mon": "05:00:00 - 20:00:00",
        "sat": "05:00:00 - 20:00:00",
        "sun": "05:00:00 - 20:00:00",
        "thu": "05:00:00 - 20:00:00",
        "tue": "05:00:00 - 20:00:00",
        "wed": "05:00:00 - 20:00:00"
      },
      "phone": "+12126088073",
      "phone_formatted": "+1 212 608 8073"
    }
  ],
  "search_metadata": {
    "created_at": "2026-11-03 07:33:07 UTC",
    "id": "581ba2bb9f7abc1700bb0841",
    "processed_at": "2026-11-03 07:33:07 UTC",
    "status": "Success",
    "total_time_taken": 1.348
  },
  "search_parameters": {
    "lat": 40.7128,
    "lon": -74.006,
    "q": "coffee",
    "strict_bbox": true
  }
}

Response fields

FieldMeaning
local_results[].titleName of the place.
local_results[].typeCategory label for the place, such as Coffee & tea.
local_results[].address / local_results[].city / local_results[].country_codeFull street address, city and country code of the place.
local_results[].gps_coordinates.latitude / local_results[].gps_coordinates.longitudeCoordinates of the place.
local_results[].rating / local_results[].reviewsAverage rating and the number of reviews behind it.
local_results[].price / local_results[].price_scorePrice level shown as dollar signs and as a number.
local_results[].open_stateWhether the place is open or closed at the time of the call, for example Closed.
local_results[].operating_hoursOpening and closing times for each weekday, keyed by mon to sun.
local_results[].phone / local_results[].phone_formatted / local_results[].websitePhone number in raw and display form, and the place's website.
local_results[].review_details[]A few sample reviews with date, rating, snippet and the reviewer in user.
local_results[].source[]Map services that list this place, each with its own place_id.

Notes

  • Send either lat and lon together, or bbox as top,left,bottom,right. The search_parameters object in the response echoes the values used.
  • strict_bbox defaults to true, so results outside the requested bounds are dropped.
  • position gives the rank of each place in local_results.
  • Check search_metadata.status for Success before reading the results.

Pricing

$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
DuckDuckGo$0.00015 每次调用异步 JSON
DuckDuckGo$0.01 每次调用JSON
DuckDuckGo$0.01 每次调用JSON
DuckDuckGo$0.015 每次调用JSON
DuckDuckGo$0.015 每次调用JSON
DuckDuckGo$0.01 每次调用JSON

问题

常见问题

如何使用 DuckDuckGo Maps API?

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

DuckDuckGo Maps API 的价格是多少?

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

DuckDuckGo Maps API 接受哪些参数?

必填:q (string)。 可选:lat (number), lon (number), bbox (string) 和 strict_bbox (boolean)。 Parameters 表和本页的 Playground 列出了每个字段。

DuckDuckGo Maps API 返回什么?

JSON 结果。此端点异步运行,因此响应会告诉您如何获取已完成的结果。 本页的 README 包含一个示例响应。

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

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