OpenWeatherMap Get Forecast Air Pollution

1积分/次
ae_openweathermap_get_forecast_air_pollution

查询指定地点的空气污染预报。

天气
1积分/次

价格说明

1积分/次
条件费用
每次调用1积分/次

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
latnumber是Latitude of the location.—
lonnumber是Longitude of the location.—

调用示例

复制请求代码,查看对应的返回示例。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_openweathermap_get_forecast_air_pollution' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "lat": 1,
    "lon": 1
  }
}'
返回示例response.json
JSON部分内容
{
  "coord": {
    "lat": 1,
    "lon": 1
  },
  "list": [
    {
      "components": {
        "co": 151.31,
        "nh3": 0,
        "no": 0.01,
        "no2": 0.02,
        "o3": 30.77,
        "pm10": 7.3
      },
      "dt": 1791453600,
      "main": {
        "aqi": 1
      }
    }
  ]
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。