aviowiki
  • Introduction
  • Authentication
    • Users
    • API Tokens
    • Authorisation
  • Conventions
    • Data format
    • aviowiki IDs
    • Pagination
  • Errors
  • Reward Points
  • Open Data
    • Introduction
    • Definition
  • Data Models
    • Airport
    • Authority
    • Availability
    • Aircraft Position
    • Coordinates
    • Region
    • Country
    • Governing District
    • Runway
    • Provider
    • Generic Product
    • Fuel Product
    • Fuel Fee
    • Webhook
    • Error
    • Operational Note
      • Airport Operational Note
      • Country Operational Note
  • Free Endpoints
    • Limitations
    • Free airport endpoints
      • Airport data
      • Searching airports
  • Authenticated Endpoints
    • Airport endpoints
      • Searching airports
      • Airport data
      • Authorities at an airport
      • Availability of an airport
        • Aerodrome Rescue and Fire Fighting availaibility
        • Air Traffic Control availability
        • Customs, Immigration and Quarantine facilities availability
        • Movement availability
      • Runways at an airport
      • Providers at an airport
      • Weather at an airport
      • Sun times at an airport
      • Operational notes at an airport
    • Aircraft endpoints
    • Aircraft position endpoints
    • Flight endpoints
    • Runway endpoints
      • Runway data
    • Provider endpoints
      • Provider data
      • Availability of a provider
      • Country of a provider
      • Pictures of a provider
      • Logo of a provider
      • Products of a provider
      • Fuel products of a provider
    • Operational Note endpoints
      • Operational Note data
    • Retrieve aircraft position
  • Release log
Powered by GitBook
On this page

Was this helpful?

  1. Authenticated Endpoints
  2. Airport endpoints

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

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

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

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.

{
  "sunrise": "2020-03-30T06:38:00",
  "sunset": "2020-03-30T19:31:00",
  "zenith": "2020-03-30T13:01:00",
  "nadir": "2020-03-30T01:01:00",
  "alwaysUp": false,
  "alwaysDown": false
}

PreviousWeather at an airportNextOperational notes at an airport

Last updated 2 years ago

Was this helpful?