Amap Maps Get V3 Weather Weatherinfo

From 0.35 credits/call
ae_amap_maps_get_v3_weather_weatherinfo

Check current weather conditions or future forecasts for a specific city.

Weather
From 0.35 credits/call

Pricing

From 0.35 credits/call
Weather informationCharge
Current weather / Not specified0.35 credits/call
Weather forecast0.7 credits/call

Starting price applies to Weather information: Current weather.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
citystringYes城市编码,输入城市的adcode,adcode信息可参考[城市编码表](https://lbs.amap.com/api/webservice/download) 注意:该参数在 schema 中定义为 string;如果传 POI 分类代码、城市编码或行政区划编码,请按字符串传入并保留前导 0,例如 "050301",不要传数字 50301。—
outputenum (JSON | XML)No返回格式 可选值:JSON,XMLJSON
extensionsenum (base | all)No气象类型 可选值:base/all base:返回实况天气 all:返回预报天气—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_amap_maps_get_v3_weather_weatherinfo' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "city": "430100",
    "extensions": "all",
    "output": "JSON"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "count": "1",
  "forecasts": [
    {
      "adcode": "430100",
      "casts": [
        {
          "date": "2026-11-10",
          "daypower": "1-3",
          "daytemp": "17",
          "daytemp_float": "17.0",
          "dayweather": "多云",
          "daywind": "北"
        }
      ],
      "city": "长沙市",
      "province": "湖南",
      "reporttime": "2026-11-10 16:04:19"
    }
  ],
  "info": "OK",
  "infocode": "10000",
  "status": "1"
}

This example shows part of the response. Copied content is valid JSON.

Guides using this tool

See how this tool fits into real workflows