About this query
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- This query returns times for all sunrise and sunsets for a specified location that day.
- API endpoint slug
- sunrise_sunset_org.sunrise_and_sunset
- Runtime method
- performQuery("sunrise_sunset_org.sunrise_and_sunset")
Query fields
Latitude Text input > Other
- Label
- What latitude?
- Helper text
- e.g. 37.78
- Slug
- latitude
- Required
- true
- Can have default value
- true
Longitude Text input > Other
- Label
- What longitude?
- Helper text
- e.g. -122.40
- Slug
- longitude
- Required
- true
- Can have default value
- true
Data date Text input > Other
- Label
- What day do you want data for?
- Helper text
- If left blank data will be for current date. Format YYYY-MM-DD
- Slug
- data_date
- Required
- false
- Can have default value
- true
Ingredients
SunriseSunrise time
- Slug
- sunrise
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.Sunrise
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
SunsetSunset time
- Slug
- sunset
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.Sunset
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Solar noonTime of solar noon.
- Slug
- solar_noon
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.SolarNoon
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Day lengthLength of day
- Slug
- day_length
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.DayLength
- Type
- String
- Example
- https://sunrise-sunset.org/api
First lightTime of civil sunrise
- Slug
- civil_sunrise
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.FirstLight
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Last lightTime of last light (civil sunset)
- Slug
- civil_sunset
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.LastLight
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Nautical sunriseTime of nautical sunrise
- Slug
- nautical_sunrise
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.NauticalSunrise
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Nautical sunsetTime of nautical sunset
- Slug
- nautical_sunset
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.NauticalSunset
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Astronomical sunriseTime of astronomical sunrise
- Slug
- astronomical_sunrise
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.AstronomicalSunrise
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
Astronomical sunsetTime of astronomical sunset
- Slug
- astronomical_sunset
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.AstronomicalSunset
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06.000+05:00
DateThe date of the data
- Slug
- date
- Filter code
- SunriseSunsetOrg.sunriseAndSunset.Date
- Type
- Date (ISO8601)
- Example
- 2020-07-07