QWeather Astronomy Solar Elevation Angle

1 credits/call
ae_qweather_astronomy_solar_elevation_angle

Get solar elevation, azimuth, and hour angle for exact coordinates. Use `tz` like `0800` or `-0530`.

Weather
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
tzstringYesLocation time zone, e.g., `tz=0800` or `tz=-0530`—
altnumberYesLocation altitude, in meters, e.g., `alt=43`—
datestringYesSet date, format is yyyyMMdd, e.g., `date=20200531`—
timestringYesSet time, format is HHmm, 24-hour, e.g., `time=1230`—
locationstringYesThe comma-separated [longitude and latitude](https://dev.qweather.com/en/docs/resource/glossary/#coordinate) (decimal, up to 2 decimal places) of the location to be queried. For example `location=116.41,39.92`—

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_qweather_astronomy_solar_elevation_angle' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "alt": 43,
    "date": "20180531",
    "location": "116.41,39.92",
    "time": "1230",
    "tz": "0800"
  }
}'
Response exampleresponse.json
JSON
{
  "code": "200",
  "hourAngle": "-4.50",
  "refer": {
    "license": [
      "QWeather Developers License"
    ],
    "sources": [
      "QWeather"
    ]
  },
  "solarAzimuthAngle": "193.32",
  "solarElevationAngle": "71.58",
  "solarHour": "1217"
}