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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
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.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Bing Maps MapsEsta API Bing Maps | $0.00015 por chamada | JSON assíncrono |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/bing-maps/maps com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.00015 por chamada. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.
Nenhum parâmetro é obrigatório. Opcionais: q (string), cp (string), count (integer), first (integer), setlang (string) e place_id (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Um resultado JSON. Este endpoint é assíncrono, então a resposta informa como buscar o resultado final. O README desta página inclui um exemplo de resposta.
Não. Bing Maps Maps funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Bing Maps separadamente.