Sun times at an airport
Last updated
Last updated
GET
https://api.aviowiki.com/airports/{aid}/sun
This endpoint returns information about the sunrise and sunset times at an airport.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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
.
aid*
String
The AID of the airport being queried.
local
Boolean
true
to request that the times in the response refer to the local time of the requested airport, false
for UTC.
Default value: false
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.
Authorization
String
An API Token using Bearer authentication.
Property
Type
Description
sunrise
String
The date and time of the civil sunrise, in ISO 8601 format.
sunset
String
The date and time of the civil sunset, in ISO 8601 format.
zenith
String
The date and time when the sun will be at the highest point in the sky.
nadir
String
The date and time when the sun will be at the lowest point in the sky, hidden by Earth.
alwaysUp
Boolean
true
if the sun never sets on the date
specified in the request.
alwaysDown
Boolean
true
if the sun never rises on the date
specified in the request.