bboxstring
Bounding box as comma-separated string: minLng,minLat,maxLng,maxLat (e.g. '-122.5,37.0,-121.5,38.0'). Omitting returns global data.
https://api.sandbase.ai/v1/api/iqair/map-dataAir quality station clusters for map visualization. Returns geographic clusters with aggregated AQI values and station counts within the specified bounding box.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Air quality station clusters for map visualization. Returns geographic clusters with aggregated AQI values and station counts within the specified bounding box.
curl -X POST "https://api.sandbase.ai/v1/api/iqair/map-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
This API runs asynchronously. The call returns a task id with status pending; poll GET https://api.sandbase.ai/v1/run/{id} until status is completed and read the result from outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
bbox | string | No | Bounding box as comma-separated string: minLng,minLat,maxLng,maxLat (e.g. '-122.5,37.0,-121.5,38.0'). Omitting returns global data. |
zoom | integer | No | Map zoom level (1-20). Higher values return more granular clusters with fewer stations per cluster. |
Flat price per call. Failed calls are not charged.
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/iqair/map-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'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.
bboxstringBounding box as comma-separated string: minLng,minLat,maxLng,maxLat (e.g. '-122.5,37.0,-121.5,38.0'). Omitting returns global data.
zoomintegerMap zoom level (1-20). Higher values return more granular clusters with fewer stations per cluster.
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 |
|---|---|---|
IQAir Map DataEsta API IQAir | $0.01 por chamada | JSON assíncrono |
IQAir | $0.01 por chamada | JSON assíncrono |
IQAir | $0.01 por chamada | JSON assíncrono |
IQAir | $0.01 por chamada | JSON assíncrono |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/iqair/map-data 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.01 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Nenhum parâmetro é obrigatório. Opcionais: bbox (string) e zoom (integer). 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.
Não. IQAir Map Data 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 IQAir separadamente.