end_datestringbắt buộc
End of the interval, `yyyy-mm-dd` (ISO 8601).
https://api.sandbase.ai/v1/api/open-meteo/climateDaily climate model projections to 2050 for any coordinates, from CMIP6 high-resolution models.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns daily climate model projections for one location and date range. You send latitude, longitude, start_date, end_date, models and a daily variable list.
curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/climate" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "2024-01-07", "latitude": "52.52", "longitude": "13.41", "models": "MRI_AGCM3_2_S,EC_Earth3P_HR", "start_date": "2024-01-01", "daily": "temperature_2m_max"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End of the interval, yyyy-mm-dd (ISO 8601). |
latitude | string | Yes | WGS84 latitude of the location. Multiple coordinates can be comma-separated. |
longitude | string | Yes | WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated. |
models | string | Yes | Required. Comma-separated climate models: CMCC_CM2_VHR4, FGOALS_f3_H, HiRAM_SIT_HR, MRI_AGCM3_2_S, EC_Earth3P_HR, MPI_ESM1_2_XR, NICAM16_8S. |
start_date | string | Yes | Start of the interval, yyyy-mm-dd (ISO 8601). |
cell_selection | string | No | Grid-cell preference for the coordinate. Default land. |
daily | string | No | 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, `wind |
disable_bias_correction | boolean | No | Return raw model output without statistical bias correction. Default false. |
precipitation_unit | string | No | Precipitation unit. Default mm. |
temperature_unit | string | No | Temperature unit. Default celsius. |
timeformat | string | No | Time output format. Default iso8601. |
wind_speed_unit | string | No | Wind speed unit. Default kmh. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"daily": {
"temperature_2m_max_EC_Earth3P_HR": [
7.7
],
"temperature_2m_max_MRI_AGCM3_2_S": [
2.2
],
"time": [
"2024-01-01"
]
},
"daily_units": {
"temperature_2m_max_EC_Earth3P_HR": "°C",
"temperature_2m_max_MRI_AGCM3_2_S": "°C",
"time": "iso8601"
},
"elevation": 38.0,
"generationtime_ms": 12.299776077270508,
"latitude": 52.5,
"longitude": 13.400009,
"timezone": "GMT",
"timezone_abbreviation": "GMT",
"utc_offset_seconds": 0
}
| Field | Meaning |
|---|---|
daily.time | List of dates in the requested range. The values use the iso8601 format, such as 2024-01-01. |
daily.temperature_2m_max_EC_Earth3P_HR / daily.temperature_2m_max_MRI_AGCM3_2_S | Projected daily maximum temperature at 2 m, one list per requested model. Each value lines up with the same index in daily.time. |
daily_units.temperature_2m_max_EC_Earth3P_HR / daily_units.temperature_2m_max_MRI_AGCM3_2_S | Unit for the matching temperature list, here °C. |
daily_units.time | Format of the values in daily.time, here iso8601. |
latitude / longitude | Coordinates used for the result. They can differ slightly from the coordinates you sent, for example 52.5 instead of 52.52. |
elevation | Elevation value for the location. It is 38.0 in this response. |
timezone / timezone_abbreviation / utc_offset_seconds | Time zone used for the daily values and its offset from UTC in seconds. The response shows GMT and 0. |
generationtime_ms | Time the server took to build the response, in milliseconds. |
daily returns one list per model. The key is the variable name plus the model name, for example temperature_2m_max_MRI_AGCM3_2_S.models as a comma-separated list to compare them in one call.cell_selection to choose between land, sea and nearest grid cells. Use disable_bias_correction to get raw model output.$0.0001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/climate" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"daily": "temperature_2m_max",
"models": "MRI_AGCM3_2_S,EC_Earth3P_HR",
"end_date": "2024-01-07",
"latitude": "52.52",
"longitude": "13.41",
"start_date": "2024-01-01",
"timeformat": "iso8601",
"cell_selection": "land",
"wind_speed_unit": "kmh",
"temperature_unit": "celsius",
"precipitation_unit": "mm",
"disable_bias_correction": false
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
end_datestringbắt buộcEnd of the interval, `yyyy-mm-dd` (ISO 8601).
latitudestringbắt buộcWGS84 latitude of the location. Multiple coordinates can be comma-separated.
longitudestringbắt buộcWGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.
modelsstringbắt buộcRequired. Comma-separated climate models: `CMCC_CM2_VHR4`, `FGOALS_f3_H`, `HiRAM_SIT_HR`, `MRI_AGCM3_2_S`, `EC_Earth3P_HR`, `MPI_ESM1_2_XR`, `NICAM16_8S`.
start_datestringbắt buộcStart of the interval, `yyyy-mm-dd` (ISO 8601).
cell_selectionstringGrid-cell preference for the coordinate. Default `land`.
Mặc định: "land"
Giá trị có thể dùng: land, sea, nearest
dailystringComma-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`, `wind_speed_10m_mean`, `wind_speed_10m_max`, `cloud_cover_mean`, `relative_humidity_2
disable_bias_correctionbooleanReturn raw model output without statistical bias correction. Default `false`.
Mặc định: false
precipitation_unitstringPrecipitation unit. Default `mm`.
Mặc định: "mm"
Giá trị có thể dùng: mm, inch
temperature_unitstringTemperature unit. Default `celsius`.
Mặc định: "celsius"
Giá trị có thể dùng: celsius, fahrenheit
timeformatstringTime output format. Default `iso8601`.
Mặc định: "iso8601"
Giá trị có thể dùng: iso8601, unixtime
wind_speed_unitstringWind speed unit. Default `kmh`.
Mặc định: "kmh"
Giá trị có thể dùng: kmh, ms, mph, kn
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Open-Meteo | $0.0001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/open-meteo/climate với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.0001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: end_date (string), latitude (string), longitude (string), models (string) và start_date (string). Tùy chọn: cell_selection (một trong số land, sea, nearest), daily (string), disable_bias_correction (boolean), precipitation_unit (một trong số mm, inch), temperature_unit (một trong số celsius, fahrenheit) và timeformat (một trong số iso8601, unixtime) và 1 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Open-Meteo Climate Projections chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Open-Meteo.