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

Open-Meteo Air Quality

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

Hourly air quality forecast for any coordinates: PM2.5, PM10, ozone, NO2, CO, dust, pollen and European/US AQI.

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

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 `nearest`.
Comma-separated list of current-condition variables to return. Same variable set as `hourly`.
Model domain. Default `auto`.
End of the interval, `yyyy-mm-dd` (ISO 8601).
Number of forecast days to return (0-7). Default 5.
Limit forecast to a given number of hours.
Comma-separated list of hourly variables to return. Common values: `pm10`, `pm2_5`, `carbon_monoxide`, `nitrogen_dioxide`, `sulphur_dioxide`, `ozone`, `aerosol_optical_depth`, `dust`, `uv_index`, `ammonia`, `european_aqi`, `us_aqi`, and pollen (`alder_pollen`, `birch_pollen`, `grass_pollen`, `mugwor
Number of past days to include (0-92). Default 0.
Include a given number of past hours.
Start of the interval, `yyyy-mm-dd` (ISO 8601).
Time output format. Default `iso8601`.
IANA time zone name (e.g. `Europe/Berlin`) or `auto` to resolve from coordinates. Defaults to `GMT`.
출력준비됨

출력이 여기에 표시됩니다

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

API README

Open-Meteo Air Quality API

Returns an hourly air quality forecast for a latitude and longitude. You choose the variables with hourly, such as pm10 and pm2_5, and the response gives one value per hour with its unit.

Use cases

  • Show a PM2.5 and PM10 forecast for a city in a health or weather app.
  • Warn users when the forecast for ozone or NO2 rises above a limit you set.
  • Compare particulate levels across several sites by sending comma-separated coordinates.
  • Add pollen or AQI values to a daily outlook for allergy sufferers.

Request

curl -X POST "https://api.sandbase.ai/v1/api/open-meteo/air-quality" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"latitude": "52.52", "longitude": "13.41", "hourly": "pm10,pm2_5", "forecast_days": 1}'

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 nearest.
currentstringNoComma-separated list of current-condition variables to return. Same variable set as hourly.
domainsstringNoModel domain. Default auto.
end_datestringNoEnd of the interval, yyyy-mm-dd (ISO 8601).
forecast_daysintegerNoNumber of forecast days to return (0-7). Default 5.
forecast_hoursintegerNoLimit forecast to a given number of hours.
hourlystringNoComma-separated list of hourly variables to return. Common values: pm10, pm2_5, carbon_monoxide, nitrogen_dioxide, sulphur_dioxide, ozone, aerosol_optical_depth, dust, uv_index, ammonia, `european_aqi
past_daysintegerNoNumber of past days to include (0-92). Default 0.
past_hoursintegerNoInclude a given number of past hours.
start_datestringNoStart of the interval, yyyy-mm-dd (ISO 8601).
timeformatstringNoTime output format. Default iso8601.
timezonestringNoIANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.

Example response

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

{
  "elevation": 38.0,
  "generationtime_ms": 0.3840923309326172,
  "hourly": {
    "pm10": [
      15.9
    ],
    "pm2_5": [
      13.0
    ],
    "time": [
      "2026-11-03T00:00"
    ]
  },
  "hourly_units": {
    "pm10": "μg/m³",
    "pm2_5": "μg/m³",
    "time": "iso8601"
  },
  "latitude": 52.5,
  "longitude": 13.400002,
  "timezone": "GMT",
  "timezone_abbreviation": "GMT",
  "utc_offset_seconds": 0
}

Response fields

FieldMeaning
hourly.time[]Timestamp of each hourly step, in ISO 8601 local time for the chosen timezone. Each position lines up with the same position in the other hourly lists.
hourly.pm10[]Forecast concentration of particles up to 10 µm for each hour. The unit is given in hourly_units.pm10.
hourly.pm2_5[]Forecast concentration of fine particles up to 2.5 µm for each hour. The unit is given in hourly_units.pm2_5.
hourly_units.pm10 / hourly_units.pm2_5Unit for each requested variable. In this response both are μg/m³.
hourly_units.timeFormat of the values in hourly.time[]. It is iso8601 here.
latitude / longitudeCoordinates of the grid cell the data comes from. They can differ slightly from the coordinates you sent.
elevationElevation of the grid cell, in the same response as the coordinates. The value here is 38.0.
timezone / timezone_abbreviation / utc_offset_secondsTime zone applied to the timestamps and its offset from UTC in seconds. The default is GMT with an offset of 0.
generationtime_msTime taken to generate the response, in milliseconds.

Notes

  • Each variable you list in hourly adds a matching list under hourly and an entry under hourly_units.
  • Use forecast_days (0-7) for the forecast length and past_days (0-92) to include earlier days. Or set start_date and end_date as yyyy-mm-dd.
  • Set timezone to an IANA name or auto to get local times. Without it, times are in GMT.
  • For weather variables at the same coordinates, call Open-Meteo Weather Forecast. To turn a place name into coordinates, use Open-Meteo Geocoding.

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 Air Quality API를 어떻게 사용하나요?

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

Open-Meteo Air Quality API 비용은 얼마인가요?

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

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

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

Open-Meteo Air Quality API는 무엇을 반환하나요?

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

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

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