跳转到主要内容
GET
Reference example

请求规范

  • 方法与路径: GET /apis/v1/openmeteo/air-quality
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/openmeteo/air-quality
  • cell_selection: query; 可选
  • current: query; 可选
  • domains: query; 可选
  • end_date: query; 可选
  • forecast_days: query; 可选
  • forecast_hours: query; 可选
  • hourly: query; 可选
  • latitude: query; 必填
  • longitude: query; 必填
  • past_days: query; 可选
  • past_hours: query; 可选
  • start_date: query; 可选
  • timeformat: query; 可选
  • timezone: query; 可选
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.0001 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

cell_selection
enum<string>
默认值:nearest

Grid-cell preference for the coordinate. Default nearest.

可用选项:
land,
sea,
nearest
current
string

Comma-separated list of current-condition variables to return. Same variable set as hourly.

示例:

"european_aqi,pm2_5"

domains
enum<string>
默认值:auto

Model domain. Default auto.

可用选项:
auto,
cams_europe,
cams_global
end_date
string<date>

End of the interval, yyyy-mm-dd (ISO 8601).

示例:

"2024-01-07"

forecast_days
integer
默认值:5

Number of forecast days to return (0-7). Default 5.

示例:

7

forecast_hours
integer

Limit forecast to a given number of hours.

hourly
string

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, mugwort_pollen, olive_pollen, ragweed_pollen).

示例:

"pm10,pm2_5,european_aqi"

latitude
string
必填

WGS84 latitude of the location. Multiple coordinates can be comma-separated.

示例:

"52.52"

longitude
string
必填

WGS84 longitude of the location (negative for the Americas). Multiple coordinates can be comma-separated.

示例:

"13.41"

past_days
integer
默认值:0

Number of past days to include (0-92). Default 0.

past_hours
integer

Include a given number of past hours.

start_date
string<date>

Start of the interval, yyyy-mm-dd (ISO 8601).

示例:

"2024-01-01"

timeformat
enum<string>
默认值:iso8601

Time output format. Default iso8601.

可用选项:
iso8601,
unixtime
timezone
string

IANA time zone name (e.g. Europe/Berlin) or auto to resolve from coordinates. Defaults to GMT.

示例:

"Europe/Berlin"

响应

Air-quality forecast for the coordinate.

The response is of type object.