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`.
1 credits/call
Pricing
1 credits/call
| Condition | Charge |
|---|---|
| Each call | 1 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
tz | string | Yes | Location time zone, e.g., `tz=0800` or `tz=-0530` | — |
alt | number | Yes | Location altitude, in meters, e.g., `alt=43` | — |
date | string | Yes | Set date, format is yyyyMMdd, e.g., `date=20200531` | — |
time | string | Yes | Set time, format is HHmm, 24-hour, e.g., `time=1230` | — |
location | string | Yes | The 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-KeyRequest 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
{
"code": "200",
"hourAngle": "-4.50",
"refer": {
"license": [
"QWeather Developers License"
],
"sources": [
"QWeather"
]
},
"solarAzimuthAngle": "193.32",
"solarElevationAngle": "71.58",
"solarHour": "1217"
}