Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

IQAir Map Data

Dokumentacja API
https://api.sandbase.ai/v1/api/iqair/map-data

Air quality station clusters for map visualization. Returns geographic clusters with aggregated AQI values and station counts within the specified bounding box.

Cena
$0.01USD / wywołanie
Metoda
POST
Odpowiedź
Asynchroniczny JSON
Parametry
0 wymaganych · 2 opcjonalnych

Playground

Wejście
Bounding box as comma-separated string: minLng,minLat,maxLng,maxLat (e.g. '-122.5,37.0,-121.5,38.0'). Omitting returns global data.
Map zoom level (1-20). Higher values return more granular clusters with fewer stations per cluster. Zakres: od -9007199254740991 do 9007199254740991.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

IQAir Map Data

Air quality station clusters for map visualization. Returns geographic clusters with aggregated AQI values and station counts within the specified bounding box.

Request

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.

Parameters

NameTypeRequiredDescription
bboxstringNoBounding box as comma-separated string: minLng,minLat,maxLng,maxLat (e.g. '-122.5,37.0,-121.5,38.0'). Omitting returns global data.
zoomintegerNoMap zoom level (1-20). Higher values return more granular clusters with fewer stations per cluster.

Pricing

Flat price per call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
IQAir$0.01 za wywołanieAsynchroniczny JSON
IQAir$0.01 za wywołanieAsynchroniczny JSON
IQAir$0.01 za wywołanieAsynchroniczny JSON
IQAir$0.01 za wywołanieAsynchroniczny JSON

Pytania

FAQ

Jak używać API IQAir Map Data?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/iqair/map-data z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API IQAir Map Data?

$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API IQAir Map Data?

Nie są wymagane żadne parametry. Opcjonalne: bbox (string) i zoom (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API IQAir Map Data?

Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik.

Czy potrzebuję konta deweloperskiego IQAir lub klucza API?

Nie. IQAir Map Data działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API IQAir.