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

NameTypeDescription

aid*

String

The AID of the airport being queried.

Query Parameters

NameTypeDescription

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.

Headers

NameTypeDescription

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

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.

Last updated