Solar Elevation Angle

Get global solar elevation angle and azimuth, for autopilot and house construction.

Request URL

  • Prohttps://api.qweather.com/v7/astronomy/solar-elevation-angle?[params]

Request Parameters

All parameters are separated by &. If no optional parameters are set, the default value will be used.

key

API authentication key, please refer to How To Get Your Key. Support Signature Authentication.

For example: key=12334567890ABC

location

The comma-separated longitude and latitude of the location to be queried.

For example: location=116.41,39.92

date

Set date, format is yyyyMMdd, e.g., date=20200531

time

Set time, format is HHmm, 24-hour, e.g., time=1230

tz

Location time zone, e.g., tz=0800 or tz=-0530

alt

Location altitude, in meters, e.g., alt=43

Response

// Pro API https://api.qweather.com/v7/astronomy/solar-elevation-angle?location=120.343,36.088&alt=43&date=20210220&time=1230&tz=0800&key=YOUR_KEY

{
  "code": "200",
  "solarElevationAngle": "42.88",
  "solarAzimuthAngle": "185.92",
  "solarHour": "1217",
  "hourAngle": "-4.41",
  "refer": {
    "sources": [
      "qweather.com"
    ],
    "license": [
      "commercial license"
    ]
  }
}
Parameters Description
code

API status code, please refer to Status Code

solarElevationAngle

Solar Elevation Angle in degree

solarAzimuthAngle

Solar azimuth angle

solarHour

Solar time, HHmm format

hourAngle

Hour Angle

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null