Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Open-Meteo Weather Forecast

API 문서
https://api.sandbase.ai/v1/api/open-meteo/forecast

Up to 16-day hourly, daily and current weather forecast by coordinates: temperature, precipitation, wind, cloud cover and more.

가격
$0.0001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 2개 · 선택 사항 18개

Playground

입력
WGS84 latitude of the location. Multiple coordinates can be comma-separated.
WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
Grid-cell preference for the coordinate. Default `land`.
Comma-separated list of current-condition variables to return. Common values: `temperature_2m`, `relative_humidity_2m`, `apparent_temperature`, `is_day`, `precipitation`, `weather_code`, `wind_speed_10m`, `wind_direction_10m`.
Comma-separated list of daily aggregation variables to return. Requires `timezone`. Common values: `temperature_2m_max`, `temperature_2m_min`, `temperature_2m_mean`, `precipitation_sum`, `rain_sum`, `snowfall_sum`, `weather_code`, `sunrise`, `sunset`, `sunshine_duration`, `wind_speed_10m_max`, `uv_i
Manual elevation (meters) for statistical downscaling. Defaults to a 90m DEM. Use `nan` to disable downscaling.
End of the interval, `yyyy-mm-dd` (ISO 8601).
Number of forecast days to return (0-16). Default 7.
Limit the forecast to a given number of hours from now.
Comma-separated list of hourly variables to return. Common values: `temperature_2m`, `relative_humidity_2m`, `dew_point_2m`, `apparent_temperature`, `precipitation`, `rain`, `showers`, `snowfall`, `weather_code`, `pressure_msl`, `cloud_cover`, `wind_speed_10m`, `wind_direction_10m`, `wind_gusts_10m`
Comma-separated 15-minutely variables (Central Europe & North America high-resolution models only).
Comma-separated forecast models to use. Default `auto` selects the best model mix per location.
Number of past days to include (0-92). Default 0.
Include a given number of past hours.
Precipitation unit. Default `mm`.
Start of the interval, `yyyy-mm-dd` (ISO 8601).
Temperature unit. Default `celsius`.
Time output format. Default `iso8601`.
IANA time zone name (e.g. `Europe/Berlin`) or `auto` to resolve from coordinates. Defaults to `GMT`.
Wind speed unit. Default `kmh`.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Open-Meteo Weather Forecast API

Returns a weather forecast for one point on Earth. You send latitude and longitude, plus the variables you want in current, hourly, daily or minutely_15. The response holds the values and their units.

Use cases

  • Show the current temperature and wind speed on a city dashboard.
  • Plan outdoor events with a daily forecast of rain, wind and temperature highs and lows.
  • Feed hourly temperature and precipitation into an energy demand or irrigation model.
  • Add a short weather summary to a travel app for a given destination.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/forecast" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52", "longitude": "13.41", "current": "temperature_2m,wind_speed_10m"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
latitudestringYesWGS84 latitude of the location. Multiple coordinates can be comma-separated.
longitudestringYesWGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
cell_selectionstringNoGrid-cell preference for the coordinate. Default land.
currentstringNoComma-separated list of current-condition variables to return. Common values: temperature_2m, relative_humidity_2m, apparent_temperature, is_day, precipitation, weather_code, wind_speed_10m, `wind_direction
dailystringNoComma-separated list of daily aggregation variables to return. Requires timezone. Common values: temperature_2m_max, temperature_2m_min, temperature_2m_mean, precipitation_sum, rain_sum, snowfall_sum, `weat
elevationstringNoManual elevation (meters) for statistical downscaling. Defaults to a 90m DEM. Use nan to disable downscaling.
end_datestringNoEnd of the interval, yyyy-mm-dd (ISO 8601).
forecast_daysintegerNoNumber of forecast days to return (0-16). Default 7.
forecast_hoursintegerNoLimit the forecast to a given number of hours from now.
hourlystringNoComma-separated list of hourly variables to return. Common values: temperature_2m, relative_humidity_2m, dew_point_2m, apparent_temperature, precipitation, rain, showers, snowfall, weather_code, `pressu
minutely_15stringNoComma-separated 15-minutely variables (Central Europe & North America high-resolution models only).
modelsstringNoComma-separated forecast models to use. Default auto selects the best model mix per location.
past_daysintegerNoNumber of past days to include (0-92). Default 0.
past_hoursintegerNoInclude a given number of past hours.
precipitation_unitstringNoPrecipitation unit. Default mm.
start_datestringNoStart of the interval, yyyy-mm-dd (ISO 8601).
temperature_unitstringNoTemperature unit. Default celsius.
timeformatstringNoTime output format. Default iso8601.
timezonestringNoIANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.
wind_speed_unitstringNoWind speed unit. Default kmh.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "current": {
    "interval": 900,
    "temperature_2m": 4.6,
    "time": "2026-11-03T07:30",
    "wind_speed_10m": 7.4
  },
  "current_units": {
    "interval": "seconds",
    "temperature_2m": "°C",
    "time": "iso8601",
    "wind_speed_10m": "km/h"
  },
  "elevation": 38.0,
  "generationtime_ms": 0.12421607971191406,
  "latitude": 52.512604,
  "longitude": 13.419517,
  "timezone": "GMT",
  "timezone_abbreviation": "GMT",
  "utc_offset_seconds": 0
}

Response fields

FieldMeaning
current.timeTime of the current reading, in the format set by timeformat. The example value is 2026-11-03T07:30, in the time zone given by timezone.
current.intervalLength of the current-conditions interval. The matching entry in current_units is seconds, so 900 means 15 minutes.
current.temperature_2m / current.wind_speed_10mCurrent air temperature at 2 m and wind speed at 10 m. These keys appear because they were listed in current. Each variable you request adds a key here.
current_unitsUnit for each key in current, such as °C for temperature_2m and km/h for wind_speed_10m. Unit parameters like temperature_unit and wind_speed_unit change these.
latitude / longitudeCoordinates of the grid cell the forecast belongs to. They can differ slightly from the coordinates you sent.
elevationElevation of the location in meters. Set the elevation parameter to override it.
timezone / timezone_abbreviationTime zone used for all timestamps in the response. It is GMT unless you set timezone.
utc_offset_secondsOffset of the response time zone from UTC, in seconds.
generationtime_msTime taken to generate the response, in milliseconds.

Notes

  • Only the variables you list in current, hourly, daily or minutely_15 come back. A request with no variable list returns just the location and time zone fields.
  • daily needs timezone. Set it to an IANA name like Europe/Berlin, or to auto to resolve it from the coordinates.
  • Use forecast_days (0-16) for the range, or start_date and end_date in yyyy-mm-dd format. Use past_days to include earlier days.
  • To look up coordinates from a place name, call Open-Meteo Geocoding. For older dates, use Open-Meteo Historical Weather.

Pricing

$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Open-Meteo$0.0001 / 호출JSON
Open-Meteo$0.0001 / 호출JSON
Open-Meteo$0.0001 / 호출JSON
Open-Meteo$0.0001 / 호출JSON
Open-Meteo$0.0001 / 호출JSON
Open-Meteo$0.0001 / 호출JSON

질문

FAQ

Open-Meteo Weather Forecast API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/open-meteo/forecast에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Open-Meteo Weather Forecast API 비용은 얼마인가요?

호출당 $0.0001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Open-Meteo Weather Forecast API는 어떤 매개변수를 받나요?

필수: latitude (string) 및 longitude (string). 선택: cell_selection(land, sea, nearest 중 하나), current (string), daily (string), elevation (string), end_date (string) 및 forecast_days (integer) 외 12개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Open-Meteo Weather Forecast API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Open-Meteo 개발자 계정이나 API 키가 필요한가요?

아니요. Open-Meteo Weather Forecast은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Open-Meteo API 액세스를 별도로 신청할 필요는 없습니다.