Sand AISand AI MAGI-2ตอนนี้ MAGI-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.00015USD / คำขอ
Method
POST
การตอบกลับ
Async JSON
พารามิเตอร์
1 จำเป็น · 4 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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 MapsAPI นี้
DuckDuckGo
$0.00015 ต่อการเรียกAsync JSON
DuckDuckGo$0.01 ต่อการเรียกJSON
DuckDuckGo$0.01 ต่อการเรียกJSON
DuckDuckGo$0.015 ต่อการเรียกJSON
DuckDuckGo$0.015 ต่อการเรียกJSON
DuckDuckGo$0.01 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ DuckDuckGo Maps API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/duckduckgo/maps โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

DuckDuckGo Maps API ราคาเท่าไร?

$0.00015 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

DuckDuckGo Maps API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: q (string). ตัวเลือก: lat (number), lon (number), bbox (string) และ strict_bbox (boolean). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

DuckDuckGo Maps API ส่งคืนอะไร?

ผลลัพธ์ JSON จุดเชื่อมต่อนี้ทำงานแบบอะซิงโครนัส ดังนั้นการตอบกลับจะบอกวิธีดึงผลลัพธ์ที่เสร็จแล้ว README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ DuckDuckGo ไหม?

ไม่จำเป็น DuckDuckGo Maps ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DuckDuckGo API แยกต่างหาก