Solar Elevation Angle
Endpoint#
GET /v7/astronomy/solar-elevation-angleParameters#
Query parameters
-
location requiredstringThe comma-separated longitude and latitude (decimal, up to 2 decimal places) of the location to be queried. For example
location=116.41,39.92 -
date requireddateSet date, format is yyyyMMdd, e.g.,
date=20200531 -
time requiredstringSet time, format is HHmm, 24-hour, e.g.,
time=1230 -
tz requiredstringLocation time zone, e.g.,
tz=0800ortz=-0530 -
alt requirednumberLocation altitude, in meters, e.g.,
alt=43
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/v7/astronomy/solar-elevation-angle?location=116.41%2C39.92&date=20180531&time=1230&tz=0800&alt=43'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"code": "200",
"solarElevationAngle": "42.88",
"solarAzimuthAngle": "185.92",
"solarHour": "1217",
"hourAngle": "-4.41",
"refer": {
"sources": [
"https://developer.qweather.com/attribution.html"
],
"license": [
"QWeather Developers License"
]
}
}
-
codestring
-
solarElevationAnglestringSolar Elevation Angle in degree
-
solarAzimuthAnglestringSolar azimuth angle
-
solarHourstringSolar time, HHmm format
-
hourAnglestringHour Angle
-
referobjectData sources and licensing information
-
sourcesarrayData source and other statements, may be null
-
licensearrayData license, may be null
-