end_datestringwymagane
End date in YYYYMMDD format, inclusive local calendar date.
https://api.sandbase.ai/v1/api/weather-underground/historical-airport-temperature-seriesRetrieve a complete year-scale airport observation temperature series for settlement calibration. Returns every observation within the requested local-date range (up to 366 days), preserving the full intraday path.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Retrieve a complete year-scale airport observation temperature series for settlement calibration. Returns every observation within the requested local-date range (up to 366 days), preserving the full intraday path.
curl -X POST "https://api.sandbase.ai/v1/api/weather-underground/historical-airport-temperature-series" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"station_id": "KJFK", "country_code": "US", "start_date": "20261001", "end_date": "20261002", "timezone_name": "America/New_York"}'
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 |
|---|---|---|---|
country_code | string | Yes | Two-letter ISO country code for the station (e.g. FI, US). |
end_date | string | Yes | End date in YYYYMMDD format, inclusive local calendar date. |
start_date | string | Yes | Start date in YYYYMMDD format, interpreted as a local calendar date. |
station_id | string | Yes | Airport station ICAO code (e.g. EFHK, KJFK). Obtain from search endpoint's icaoCode field. |
timezone_name | string | Yes | IANA timezone name for local date grouping (e.g. Europe/Helsinki, America/New_York). DST transitions are handled automatically. |
Flat price per call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/weather-underground/historical-airport-temperature-series" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"end_date": "20261002",
"start_date": "20261001",
"station_id": "KJFK",
"country_code": "US",
"timezone_name": "America/New_York"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
end_datestringwymaganeEnd date in YYYYMMDD format, inclusive local calendar date.
start_datestringwymaganeStart date in YYYYMMDD format, interpreted as a local calendar date.
station_idstringwymaganeAirport station ICAO code (e.g. EFHK, KJFK). Obtain from search endpoint's icaoCode field.
country_codestringwymaganeTwo-letter ISO country code for the station (e.g. FI, US).
timezone_namestringwymaganeIANA timezone name for local date grouping (e.g. Europe/Helsinki, America/New_York). DST transitions are handled automatically.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Weather Underground | $0.01 za wywołanie | Asynchroniczny JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/weather-underground/historical-airport-temperature-series 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.
$0.01 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: end_date (string), start_date (string), station_id (string), country_code (string) i timezone_name (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik.
Nie. Weather Underground Historical Airport Temperature Series 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 Weather Underground.