qstringrequerido
Place or category query, up to 500 characters.
https://api.sandbase.ai/v1/api/duckduckgo/mapsSearch DuckDuckGo Maps for places inside a viewport rectangle or around a center.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
rating and reviews counts across businesses in one neighborhood.gps_coordinates.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.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Place or category query, up to 500 characters. |
bbox | string | No | Viewport rectangle as 'top,left,bottom,right'. Required unless lat and lon are supplied. |
lat | number | No | Viewport center latitude. Requires lon. |
lon | number | No | Viewport center longitude. Requires lat. |
strict_bbox | boolean | No | Exclude results outside the requested bounds. Default true. |
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
}
}
| Field | Meaning |
|---|---|
local_results[].title | Name of the place. |
local_results[].type | Category label for the place, such as Coffee & tea. |
local_results[].address / local_results[].city / local_results[].country_code | Full street address, city and country code of the place. |
local_results[].gps_coordinates.latitude / local_results[].gps_coordinates.longitude | Coordinates of the place. |
local_results[].rating / local_results[].reviews | Average rating and the number of reviews behind it. |
local_results[].price / local_results[].price_score | Price level shown as dollar signs and as a number. |
local_results[].open_state | Whether the place is open or closed at the time of the call, for example Closed. |
local_results[].operating_hours | Opening and closing times for each weekday, keyed by mon to sun. |
local_results[].phone / local_results[].phone_formatted / local_results[].website | Phone 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. |
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.search_metadata.status for Success before reading the results.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
qstringrequeridoPlace or category query, up to 500 characters.
latnumberViewport center latitude. Requires lon.
lonnumberViewport center longitude. Requires lat.
bboxstringViewport rectangle as 'top,left,bottom,right'. Required unless lat and lon are supplied.
strict_bboxbooleanExclude results outside the requested bounds. Default true.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
DuckDuckGo MapsEsta API DuckDuckGo | $0.00015 por llamada | JSON asíncrono |
DuckDuckGo | $0.01 por llamada | JSON |
DuckDuckGo | $0.01 por llamada | JSON |
DuckDuckGo | $0.015 por llamada | JSON |
DuckDuckGo | $0.015 por llamada | JSON |
DuckDuckGo | $0.01 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/duckduckgo/maps con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.00015 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.
Requeridos: q (string). Opcionales: lat (number), lon (number), bbox (string) y strict_bbox (boolean). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Un resultado JSON. Este endpoint se ejecuta de forma asíncrona, así que la respuesta indica cómo obtener el resultado final. El README de esta página incluye una respuesta de ejemplo.
No. DuckDuckGo Maps funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de DuckDuckGo por separado.