Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Bing Maps Maps

https://api.sandbase.ai/v1/api/bing-maps/maps

Search Bing Maps listings around a map center, or look up one entity by id.

價格
$0.00015美元/次呼叫
方法
POST
回應
非同步 JSON
參數
0 個必填 · 6 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Search query. Required unless place_id is supplied.
Map center as 'latitude~longitude', such as '47.6062~-122.3321'.
130
Number of listings, 1-30. Default 30. 範圍:1 到 30。
Listing offset, 0-10,000. Default 0. 範圍:0 到 10000。
Interface language such as 'en-US'.
Native Bing Maps entity ID for a detail lookup. Required unless q is supplied.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Bing Maps Maps

Returns Bing Maps business listings for a search query near a map center. Each listing has an address, phone number, coordinates, and open state. You can also pass a place_id to look up one entity.

Use cases

  • Build a list of coffee shops, pharmacies, or other business types near a given latitude and longitude.
  • Collect phone numbers and addresses of local businesses for a lead list.
  • Plot search results on a map using the gps_coordinates of each listing.
  • Check which nearby businesses are open right now using open_state and open_hours.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bing-maps/maps" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "coffee", "cp": "47.6062~-122.3321"}'

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

Parameters

NameTypeRequiredDescription
countintegerNoNumber of listings, 1-30. Default 30.
cpstringNoMap center as 'latitudelongitude', such as '47.6062-122.3321'.
firstintegerNoListing offset, 0-10,000. Default 0.
place_idstringNoNative Bing Maps entity ID for a detail lookup. Required unless q is supplied.
qstringNoSearch query. Required unless place_id is supplied.
setlangstringNoInterface language such as 'en-US'.

Example response

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

{
  "local_results": [
    {
      "items": [
        {
          "address": "1912 Pike Pl, Seattle, WA 98101",
          "entry_type": "Business",
          "gps_coordinates": {
            "latitude": 47.610069274902344,
            "longitude": -122.34262084960938
          },
          "link": "https://www.bing.com/maps?q=Starbucks+Coffee+Company&filters=local_ypid%3A%22YNF…",
          "open_hours": "Open until 8 PM",
          "open_state": "Open",
          "phone": "(206) 448-8762",
          "place_id": "YNF9439D454244F274"
        }
      ],
      "title": "coffee"
    }
  ],
  "search_metadata": {
    "created_at": "2026-11-03 07:28:13 UTC",
    "id": "234da23691b61502af88f81d",
    "processed_at": "2026-11-03 07:28:13 UTC",
    "status": "Success",
    "total_time_taken": 0.885
  },
  "search_parameters": {
    "count": 30,
    "cp": "47.6062~-122.3321",
    "first": 0,
    "q": "coffee"
  }
}

Response fields

FieldMeaning
local_results[].titleThe search term that the group of listings answers, such as coffee.
local_results[].items[].place_idThe Bing Maps entity ID of the listing. Pass it as place_id to look up that entity.
local_results[].items[].addressStreet address of the listing as one text line.
local_results[].items[].entry_typeType of entry, such as Business.
local_results[].items[].gps_coordinates.latitude / local_results[].items[].gps_coordinates.longitudeDecimal degree coordinates of the listing.
local_results[].items[].phonePhone number of the listing, formatted as text.
local_results[].items[].open_state / local_results[].items[].open_hoursWhether the listing is open (open_state) and a short text on closing time (open_hours), such as Open until 8 PM.
local_results[].items[].linkBing Maps URL that opens the listing.
search_metadata.statusShows Success when the search finished.
search_parameters.count / search_parameters.firstThe page size and offset the search used, with defaults filled in.

Notes

  • Send either q or place_id. A search uses q with cp as the map center in the form latitude~longitude, such as 47.6062~-122.3321.
  • Page through results with count (1-30, default 30) and first (offset, 0-10,000).
  • Take place_id from local_results[].items[].place_id to run a detail lookup on one listing.
  • Timestamps in search_metadata use the format 2026-11-03 07:28:13 UTC.

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價格回應
Bing Maps每次呼叫 $0.00015非同步 JSON

問題

常見問題

我要如何使用 Bing Maps Maps API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/bing-maps/maps。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Bing Maps Maps API 的費用是多少?

每次 $0.00015。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Bing Maps Maps API 接受哪些參數?

不需要任何參數。 選填:q (string), cp (string), count (integer), first (integer), setlang (string) 和 place_id (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Bing Maps Maps API 會回傳什麼?

JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。 本頁的 README 包含範例回應。

我需要 Bing Maps 開發者帳號或 API 金鑰嗎?

不需要。Bing Maps Maps 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Bing Maps API 存取權。