Sun times at an airport
Get sun times at an airport
GET
https://api.aviowiki.com/airports/{aid}/sun
This endpoint returns information about the sunrise and sunset times at an airport.
Path Parameters
Name | Type | Description |
---|---|---|
aid* | String | The AID of the airport being queried. |
Query Parameters
Name | Type | Description |
---|---|---|
local | Boolean |
|
date | String | A date string in format YYYY-MM-DD to indicate for which local day the data should be returned. If not set, the current local day will be returned. |
Headers
Name | Type | Description |
---|---|---|
Authorization | String | An API Token using Bearer authentication. |
All times returned are either with reference to the local time of the airport requested or to UTC, depending on the value of the request parameter local
.
Property | Type | Description |
| String | The date and time of the civil sunrise, in ISO 8601 format. |
| String | The date and time of the civil sunset, in ISO 8601 format. |
| String | The date and time when the sun will be at the highest point in the sky. |
| String | The date and time when the sun will be at the lowest point in the sky, hidden by Earth. |
| Boolean |
|
| Boolean |
|
Last updated