qstring
Search query. Required unless place_id is supplied.
https://api.sandbase.ai/v1/api/bing-maps/mapsSearch Bing Maps listings around a map center, or look up one entity by id.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
gps_coordinates of each listing.open_state and open_hours.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.
| Name | Type | Required | Description |
|---|---|---|---|
count | integer | No | Number of listings, 1-30. Default 30. |
cp | string | No | Map center as 'latitude |
first | integer | No | Listing offset, 0-10,000. Default 0. |
place_id | string | No | Native Bing Maps entity ID for a detail lookup. Required unless q is supplied. |
q | string | No | Search query. Required unless place_id is supplied. |
setlang | string | No | Interface language such as 'en-US'. |
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"
}
}
| Field | Meaning |
|---|---|
local_results[].title | The search term that the group of listings answers, such as coffee. |
local_results[].items[].place_id | The Bing Maps entity ID of the listing. Pass it as place_id to look up that entity. |
local_results[].items[].address | Street address of the listing as one text line. |
local_results[].items[].entry_type | Type of entry, such as Business. |
local_results[].items[].gps_coordinates.latitude / local_results[].items[].gps_coordinates.longitude | Decimal degree coordinates of the listing. |
local_results[].items[].phone | Phone number of the listing, formatted as text. |
local_results[].items[].open_state / local_results[].items[].open_hours | Whether the listing is open (open_state) and a short text on closing time (open_hours), such as Open until 8 PM. |
local_results[].items[].link | Bing Maps URL that opens the listing. |
search_metadata.status | Shows Success when the search finished. |
search_parameters.count / search_parameters.first | The page size and offset the search used, with defaults filled in. |
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.count (1-30, default 30) and first (offset, 0-10,000).place_id from local_results[].items[].place_id to run a detail lookup on one listing.search_metadata use the format 2026-11-03 07:28:13 UTC.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
qstringSearch query. Required unless place_id is supplied.
cpstringMap center as 'latitude~longitude', such as '47.6062~-122.3321'.
countintegerNumber of listings, 1-30. Default 30.
firstintegerListing offset, 0-10,000. Default 0.
setlangstringInterface language such as 'en-US'.
place_idstringNative Bing Maps entity ID for a detail lookup. Required unless q is supplied.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Bing Maps MapsAPI ini Bing Maps | $0.00015 per panggilan | JSON Asinkron |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/bing-maps/maps dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.00015 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: q (string), cp (string), count (integer), first (integer), setlang (string) dan place_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Hasil JSON. Endpoint ini berjalan secara asinkron, jadi responsnya memberi tahu cara mengambil hasil yang sudah selesai. README di halaman ini menyertakan contoh respons.
Tidak. Bing Maps Maps berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Bing Maps secara terpisah.