{"api":{"id":"api_1bb5a2d3008680d58b9b9d95","slug":"usno-sun-moon","name":"Sunrise, Sunset & Moon Phase API","description":"Sunrise, sunset, solar noon, civil twilight, moonrise, moonset, Moon phase and illumination for any place and day, computed by the U.S. Naval Observatory. Date ranges and many places in one run: one record per place and day.","kind":"ready_made","visibility":"public","domain":"aa.usno.navy.mil","source_url":"https://aa.usno.navy.mil/data/api","category":"science","record_type":"generic","active_version":"1.0","units_per_1k":2000,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":23,"created_at":"2026-12-06T03:57:27.727Z","updated_at":"2026-12-06T03:57:27.727Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"place","type":"string","description":"The place's name as you gave it, or its latitude and longitude.","required":true,"coverage":1,"example":"Toronto"},{"name":"latitude","type":"number","description":"Latitude of the place in decimal degrees (north positive).","required":true,"coverage":1,"example":43.65},{"name":"longitude","type":"number","description":"Longitude of the place in decimal degrees (east positive).","required":true,"coverage":1,"example":-79.38},{"name":"date","type":"date","description":"The local day these times are for.","required":true,"coverage":1,"example":"2026-12-05"},{"name":"day_of_week","type":"string","description":"Day of the week, such as Saturday.","required":false,"coverage":1,"example":"Saturday"},{"name":"tz_offset","type":"number","description":"Hours from UTC of the times in this record, before any daylight saving hour.","required":false,"coverage":1,"example":-5},{"name":"is_dst","type":"boolean","description":"True when U.S. daylight saving time was added to the times of this day.","required":false,"coverage":1,"example":false},{"name":"sunrise","type":"string","description":"Local time the Sun rises, as HH:MM.","required":false,"coverage":0.6,"example":"07:35"},{"name":"sunset","type":"string","description":"Local time the Sun sets, as HH:MM.","required":false,"coverage":0.6,"example":"16:41"},{"name":"solar_noon","type":"string","description":"Local time the Sun is highest in the sky (upper transit), as HH:MM.","required":false,"coverage":0.6,"example":"12:08"},{"name":"civil_twilight_begin","type":"string","description":"Local time morning civil twilight begins (first light, Sun 6 degrees below the horizon), as HH:MM.","required":false,"coverage":1,"example":"07:03"},{"name":"civil_twilight_end","type":"string","description":"Local time evening civil twilight ends (last light), as HH:MM.","required":false,"coverage":1,"example":"17:13"},{"name":"day_length_minutes","type":"integer","description":"Minutes from sunrise to sunset; 1440 in polar day and 0 in polar night.","required":false,"coverage":1,"example":546},{"name":"sun_note","type":"string","description":"Set when the Sun stays above or below the horizon or the twilight limit all day.","required":false,"coverage":0.4,"example":"The Sun stays below the horizon all day."},{"name":"moonrise","type":"string","description":"Local time the Moon rises, as HH:MM; empty on a day it does not rise.","required":false,"coverage":0.8,"example":"04:23"},{"name":"moonset","type":"string","description":"Local time the Moon sets, as HH:MM; empty on a day it does not set.","required":false,"coverage":0.8,"example":"14:18"},{"name":"moon_transit","type":"string","description":"Local time the Moon is highest in the sky, as HH:MM.","required":false,"coverage":0.8,"example":"09:24"},{"name":"moon_note","type":"string","description":"Set when the Moon stays above or below the horizon all day.","required":false,"coverage":0.2,"example":"The Moon stays below the horizon all day."},{"name":"moon_phase","type":"string","description":"Phase of the Moon on that day, such as Waning Crescent or Full Moon.","required":false,"coverage":1,"example":"Waning Crescent"},{"name":"moon_illumination","type":"number","description":"Share of the Moon's disc that is lit at local noon, in percent (0 to 100).","required":false,"coverage":1,"example":10},{"name":"closest_phase","type":"string","description":"The nearest primary phase: New Moon, First Quarter, Full Moon or Last Quarter.","required":false,"coverage":1,"example":"New Moon"},{"name":"closest_phase_date","type":"date","description":"The local day of that nearest primary phase.","required":false,"coverage":1,"example":"2026-12-08"},{"name":"closest_phase_time","type":"string","description":"Local time of that nearest primary phase, as HH:MM.","required":false,"coverage":1,"example":"19:52"}],"inputs":[{"name":"date","type":"string","description":"The day, as YYYY-MM-DD. Leave it empty for today at the place.","example":"2026-12-05"},{"name":"end_date","type":"string","description":"Last day of a range, as YYYY-MM-DD: every day from date to end_date is one record (at most 400 days).","example":"2026-12-11"},{"name":"latitude","type":"number","description":"Latitude in decimal degrees, north positive, such as 43.65 for Toronto.","example":43.65},{"name":"longitude","type":"number","description":"Longitude in decimal degrees, east positive and west negative, such as -79.38 for Toronto.","example":-79.38},{"name":"tz_offset","type":"number","description":"Hours from UTC for the times, such as -5 for Toronto in winter or 5.5 for India. Empty means 0 (UTC).","example":-5},{"name":"dst","type":"boolean","description":"Add an hour during U.S. daylight saving time (the dates the U.S. and most of Canada use). Elsewhere leave it off and give the offset in force.","default":false},{"name":"places","type":"array","description":"Several places in one run instead of latitude and longitude, each as \"latitude,longitude\" or \"name: latitude,longitude,hours from UTC\", such as \"London: 51.51,-0.13,0\".","example":["Toronto: 43.65,-79.38,-5","London: 51.51,-0.13,0"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"civil_twilight_begin":{"description":"Local time morning civil twilight begins (first light, Sun 6 degrees below the horizon), as HH:MM.","type":"string"},"civil_twilight_end":{"description":"Local time evening civil twilight ends (last light), as HH:MM.","type":"string"},"closest_phase":{"description":"The nearest primary phase: New Moon, First Quarter, Full Moon or Last Quarter.","type":"string"},"closest_phase_date":{"description":"The local day of that nearest primary phase.","format":"date","type":"string"},"closest_phase_time":{"description":"Local time of that nearest primary phase, as HH:MM.","type":"string"},"date":{"description":"The local day these times are for.","format":"date","type":"string"},"day_length_minutes":{"description":"Minutes from sunrise to sunset; 1440 in polar day and 0 in polar night.","type":"integer"},"day_of_week":{"description":"Day of the week, such as Saturday.","type":"string"},"is_dst":{"description":"True when U.S. daylight saving time was added to the times of this day.","type":"boolean"},"latitude":{"description":"Latitude of the place in decimal degrees (north positive).","type":"number"},"longitude":{"description":"Longitude of the place in decimal degrees (east positive).","type":"number"},"moon_illumination":{"description":"Share of the Moon's disc that is lit at local noon, in percent (0 to 100).","type":"number"},"moon_note":{"description":"Set when the Moon stays above or below the horizon all day.","type":"string"},"moon_phase":{"description":"Phase of the Moon on that day, such as Waning Crescent or Full Moon.","type":"string"},"moon_transit":{"description":"Local time the Moon is highest in the sky, as HH:MM.","type":"string"},"moonrise":{"description":"Local time the Moon rises, as HH:MM; empty on a day it does not rise.","type":"string"},"moonset":{"description":"Local time the Moon sets, as HH:MM; empty on a day it does not set.","type":"string"},"place":{"description":"The place's name as you gave it, or its latitude and longitude.","type":"string"},"solar_noon":{"description":"Local time the Sun is highest in the sky (upper transit), as HH:MM.","type":"string"},"sun_note":{"description":"Set when the Sun stays above or below the horizon or the twilight limit all day.","type":"string"},"sunrise":{"description":"Local time the Sun rises, as HH:MM.","type":"string"},"sunset":{"description":"Local time the Sun sets, as HH:MM.","type":"string"},"tz_offset":{"description":"Hours from UTC of the times in this record, before any daylight saving hour.","type":"number"}},"required":["place","latitude","longitude","date"],"title":"Sunrise, Sunset & Moon Phase API","type":"object"},"samples":[{"place":"Toronto","latitude":43.65,"longitude":-79.38,"date":"2026-12-05","day_of_week":"Saturday","tz_offset":-5,"is_dst":false,"sunrise":"07:35","sunset":"16:41","solar_noon":"12:08","civil_twilight_begin":"07:03","civil_twilight_end":"17:13","day_length_minutes":546,"sun_note":null,"moonrise":"04:23","moonset":"14:18","moon_transit":"09:24","moon_note":null,"moon_phase":"Waning Crescent","moon_illumination":10,"closest_phase":"New Moon","closest_phase_date":"2026-12-08","closest_phase_time":"19:52"},{"place":"Toronto","latitude":43.65,"longitude":-79.38,"date":"2026-12-06","day_of_week":"Sunday","tz_offset":-5,"is_dst":false,"sunrise":"07:36","sunset":"16:41","solar_noon":"12:09","civil_twilight_begin":"07:04","civil_twilight_end":"17:13","day_length_minutes":545,"sun_note":null,"moonrise":"05:30","moonset":"14:46","moon_transit":"10:11","moon_note":null,"moon_phase":"Waning Crescent","moon_illumination":5,"closest_phase":"New Moon","closest_phase_date":"2026-12-08","closest_phase_time":"19:52"},{"place":"Toronto","latitude":43.65,"longitude":-79.38,"date":"2026-12-07","day_of_week":"Monday","tz_offset":-5,"is_dst":false,"sunrise":"07:37","sunset":"16:41","solar_noon":"12:09","civil_twilight_begin":"07:05","civil_twilight_end":"17:13","day_length_minutes":544,"sun_note":null,"moonrise":"06:36","moonset":"15:20","moon_transit":"11:00","moon_note":null,"moon_phase":"Waning Crescent","moon_illumination":2,"closest_phase":"New Moon","closest_phase_date":"2026-12-08","closest_phase_time":"19:52"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"civil_twilight_begin":1,"civil_twilight_end":1,"closest_phase":1,"closest_phase_date":1,"closest_phase_time":1,"date":1,"day_length_minutes":1,"day_of_week":1,"is_dst":1,"latitude":1,"longitude":1,"moon_illumination":1,"moon_note":0,"moon_phase":1,"moon_transit":1,"moonrise":1,"moonset":1,"place":1,"solar_noon":1,"sun_note":0,"sunrise":1,"sunset":1,"tz_offset":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_1bb5a2d3008680d58b9b9d95/run","openapi":"https://pullrow.dev/v1/apis/api_1bb5a2d3008680d58b9b9d95/openapi.json","contract":"https://pullrow.dev/v1/apis/api_1bb5a2d3008680d58b9b9d95/contract.json","page":"https://pullrow.dev/catalog/usno-sun-moon"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":2,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Times come from the U.S. Naval Observatory, public data of the U.S. Navy. They use the offset you give, not a time-zone database: give the offset in force on those days (-4 for Toronto in summer) or set dst for U.S. daylight saving time.","The source answers one place and one day per request, about two requests a second: a full year for one place takes about three minutes. At most 400 records (places times days) per run.","Days from 1700 to 2100 only. Times are to the minute for a level horizon at sea level; hills, buildings and weather can shift what you see by a few minutes.","On about one day a month the Moon does not rise, or does not set, within the local day: that time is then empty. In polar day or night the Sun's times are empty and sun_note says why.","moon_illumination is the share of the Moon's disc that is lit at local noon, in whole percent; moon_phase names the phase on that day.","The Naval Observatory's server sometimes does not answer at once. Each request is tried three times; a run that still gets no answer stops early with the records read so far, and can simply be run again."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"place","label":"Place","description":"The place's name as you gave it, or its latitude and longitude.","group":"Basics","shown":true,"written":false},{"name":"latitude","label":"Latitude","description":"Latitude of the place in decimal degrees (north positive).","group":"Location","shown":true,"written":false},{"name":"longitude","label":"Longitude","description":"Longitude of the place in decimal degrees (east positive).","group":"Location","shown":true,"written":false},{"name":"date","label":"Date","description":"The local day these times are for.","group":"Dates","shown":true,"written":false},{"name":"day_of_week","label":"Day of week","description":"Day of the week, such as Saturday.","group":"Basics","shown":true,"written":false},{"name":"tz_offset","label":"Tz offset","description":"Hours from UTC of the times in this record, before any daylight saving hour.","group":"Basics","shown":true,"written":false},{"name":"is_dst","label":"Dst","description":"Yes when U.S. daylight saving time was added to the times of this day.","group":"Basics","shown":true,"written":false},{"name":"sunrise","label":"Sunrise","description":"Local time the Sun rises, as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"sunset","label":"Sunset","description":"Local time the Sun sets, as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"solar_noon","label":"Solar noon","description":"Local time the Sun is highest in the sky (upper transit), as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"civil_twilight_begin","label":"Civil twilight begin","description":"Local time morning civil twilight begins (first light, Sun 6 degrees below the horizon), as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"civil_twilight_end","label":"Civil twilight end","description":"Local time evening civil twilight ends (last light), as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"day_length_minutes","label":"Day length (minutes)","description":"Minutes from sunrise to sunset; 1440 in polar day and 0 in polar night.","group":"Basics","shown":true,"written":false},{"name":"sun_note","label":"Sun note","description":"Set when the Sun stays above or below the horizon or the twilight limit all day.","group":"Basics","shown":true,"written":false},{"name":"moonrise","label":"Moonrise","description":"Local time the Moon rises, as HH:MM; empty on a day it does not rise.","group":"Basics","shown":true,"written":false},{"name":"moonset","label":"Moonset","description":"Local time the Moon sets, as HH:MM; empty on a day it does not set.","group":"Basics","shown":true,"written":false},{"name":"moon_transit","label":"Moon transit","description":"Local time the Moon is highest in the sky, as HH:MM.","group":"Basics","shown":true,"written":false},{"name":"moon_note","label":"Moon note","description":"Set when the Moon stays above or below the horizon all day.","group":"Basics","shown":true,"written":false},{"name":"moon_phase","label":"Moon phase","description":"Phase of the Moon on that day, such as Waning Crescent or Full Moon.","group":"Basics","shown":true,"written":false},{"name":"moon_illumination","label":"Moon illumination","description":"Share of the Moon's disc that is lit at local noon, in percent (0 to 100).","group":"Basics","shown":true,"written":false},{"name":"closest_phase","label":"Closest phase","description":"The nearest primary phase: New Moon, First Quarter, Full Moon or Last Quarter.","group":"Basics","shown":true,"written":false},{"name":"closest_phase_date","label":"Closest phase date","description":"The local day of that nearest primary phase.","group":"Dates","shown":true,"written":false},{"name":"closest_phase_time","label":"Closest phase time","description":"Local time of that nearest primary phase, as HH:MM.","group":"Dates","shown":true,"written":false}],"inputs":[{"name":"date","label":"Date","help":"The day, as YYYY-MM-DD. Leave it empty for today at the place.","example":"2026-12-05","written":false},{"name":"end_date","label":"End date","help":"Last day of a range, as YYYY-MM-DD: every day from date to end_date is one record (at most 400 days).","example":"2026-12-11","written":false},{"name":"latitude","label":"Latitude","help":"Latitude in decimal degrees, north positive, such as 43.65 for Toronto.","example":"43.65","written":false},{"name":"longitude","label":"Longitude","help":"Longitude in decimal degrees, east positive and west negative, such as -79.38 for Toronto.","example":"-79.38","written":false},{"name":"tz_offset","label":"Tz offset","help":"Hours from UTC for the times, such as -5 for Toronto in winter or 5.5 for India. Empty means 0 (UTC).","example":"-5","written":false},{"name":"dst","label":"Dst","help":"Add an hour during U.S. daylight saving time (the dates the U.S. and most of Canada use). Elsewhere leave it off and give the offset in force.","example":"","written":false},{"name":"places","label":"Places","help":"Several places in one run instead of latitude and longitude, each as \"latitude,longitude\" or \"name: latitude,longitude,hours from UTC\", such as \"London: 51.51,-0.13,0\".","example":"Toronto: 43.65,-79.38,-5, London: 51.51,-0.13,0","written":false}]}},"incidents":[]}