Math/Calculations

Daylight Duration Calculator

Calculate sunrise, sunset, and daylight hours for a location

get/v1/daylightduration

Request

  • Base URL: https://api.apiverve.com
  • URL: https://api.apiverve.com/v1/daylightduration
  • Auth: API key in header x-api-key

Query parameters

latitudenumber required

Latitude of the location

longitudenumber required

Longitude of the location

datestring

Date in YYYY-MM-DD format (defaults to today)

Response

Successful Response

statusstring

status

errorstring

error

dataobject

data

Changes

No recorded changes to this operation across all 1 revision of this API.