{"id":"astronomy/rise-set","method":"POST","url":"https://astro-agent.dev/v1/astronomy/rise-set","price_usd":"0.01","tier":"call","title":"Rise, set and twilight times for a place","summary":"Rise, transit and set of the Sun, Moon and planets for a place and local day, with civil, nautical and astronomical twilight, day length, golden hour and blue hour.","description":"For sky, weather, photography and outdoor apps: for one local calendar day at a place (time zone and DST resolved from the coordinates), each body's rise and set (with azimuth) and upper transit (with altitude), or 'always_up' / 'always_down' when it neither rises nor sets (polar day and night); for the Sun, dawn and dusk at -6, -12 and -18 degrees, solar noon, day length, and the golden hour (Sun between -4 and +6 degrees) and blue hour (-6 to -4) intervals. Times in UTC to the second, local time with its offset, and unix timestamps; every convention (refraction, limb, horizon) is in result.settings.","input_schema":{"type":"object","required":["date","latitude","longitude"],"properties":{"date":{"type":"string","description":"The local calendar day at the place, YYYY-MM-DD (1800-01-02..2199-12-30), midnight to midnight in its time zone."},"latitude":{"type":"number","minimum":-90,"maximum":90,"description":"Decimal degrees, north positive."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"Decimal degrees, east positive."},"elevation_m":{"type":"number","minimum":-500,"maximum":9000,"default":0,"description":"Height above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled)."},"timezone":{"type":"string","description":"IANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules)."},"bodies":{"type":"array","items":{"type":"string","enum":["sun","moon","mercury","venus","mars","jupiter","saturn","uranus","neptune","pluto"]},"description":"Bodies to time. Default: all ten (Sun, Moon, Mercury..Pluto). The Sun's twilight block is always returned."}}},"example_request":{"date":"2026-06-21","latitude":48.8566,"longitude":2.3522},"example_response":{"endpoint":"astronomy/rise-set","result":{"subject":{"location":{"latitude":48.8566,"longitude":2.3522,"elevation_m":0.0},"timezone":"Europe/Paris","timezone_source":"resolved_from_coordinates","date":"2026-06-21","window_utc":{"start":"2026-06-20T22:00:00Z","end":"2026-06-21T22:00:00Z"}},"settings":{"bodies":["sun","moon","mercury"],"conventions":{"observer":"WGS84 ellipsoid; elevation above it optional (no terrain, no horizon dip)","rise_set":"upper limb of the Sun and the Moon on the horizon with 34' of standard refraction (Sun: -0.8333 deg; Moon: its apparent radius and parallax); planets: centre at -0.5667 deg","transit":"upper meridian transit (culmination), with the altitude reached","twilight":"Sun's centre at -6 (civil), -12 (nautical), -18 (astronomical) degrees","golden_hour":"Sun's centre between -4 and +6 degrees","blue_hour":"Sun's centre between -6 and -4 degrees","day":"the local calendar day at the place, midnight to midnight in its time zone","times":"UTC to the second, with the local time (ISO 8601 with offset) and a unix timestamp"}},"bodies":[{"body":"sun","rise":{"utc":"2026-06-21T03:46:57Z","local":"2026-06-21T05:46:57+02:00","timestamp":1782013617,"azimuth":51.6},"transit":{"utc":"2026-06-21T11:52:24Z","local":"2026-06-21T13:52:24+02:00","timestamp":1782042744,"altitude":64.58},"set":{"utc":"2026-06-21T19:57:52Z","local":"2026-06-21T21:57:52+02:00","timestamp":1782071872,"azimuth":308.4},"state":"rises_and_sets"},{"body":"moon","rise":{"utc":"2026-06-21T11:30:05Z","local":"2026-06-21T13:30:05+02:00","timestamp":1782041405,"azimuth":89.87},"transit":{"utc":"2026-06-21T17:40:54Z","local":"2026-06-21T19:40:54+02:00","timestamp":1782063654,"altitude":39.03},"set":{"utc":"2026-06-20T23:23:02Z","local":"2026-06-21T01:23:02+02:00","timestamp":1781997782,"azimuth":274.84},"state":"rises_and_sets"},{"body":"mercury","rise":{"utc":"2026-06-21T05:44:00Z","local":"2026-06-21T07:44:00+02:00","timestamp":1782020640,"azimuth":55.64},"transit":{"utc":"2026-06-21T13:33:53Z","local":"2026-06-21T15:33:53+02:00","timestamp":1782048833,"altitude":62.38},"set":{"utc":"2026-06-21T21:22:29Z","local":"2026-06-21T23:22:29+02:00","timestamp":1782076949,"azimuth":304.0},"state":"rises_and_sets"}],"sun":{"sunrise":{"utc":"2026-06-21T03:46:57Z","local":"2026-06-21T05:46:57+02:00","timestamp":1782013617,"azimuth":51.6},"solar_noon":{"utc":"2026-06-21T11:52:24Z","local":"2026-06-21T13:52:24+02:00","timestamp":1782042744,"altitude":64.58},"sunset":{"utc":"2026-06-21T19:57:52Z","local":"2026-06-21T21:57:52+02:00","timestamp":1782071872,"azimuth":308.4},"civil_dawn":{"utc":"2026-06-21T03:04:17Z","local":"2026-06-21T05:04:17+02:00","timestamp":1782011057},"civil_dusk":{"utc":"2026-06-21T20:40:32Z","local":"2026-06-21T22:40:32+02:00","timestamp":1782074432},"nautical_dawn":{"utc":"2026-06-21T02:03:32Z","local":"2026-06-21T04:03:32+02:00","timestamp":1782007412},"nautical_dusk":{"utc":"2026-06-21T21:41:17Z","local":"2026-06-21T23:41:17+02:00","timestamp":1782078077},"astronomical_dawn":null,"astronomical_dusk":null,"day_length_minutes":970.9,"golden_hour":[{"period":"morning","start":{"utc":"2026-06-21T03:21:29Z","local":"2026-06-21T05:21:29+02:00","timestamp":1782012089},"end":{"utc":"2026-06-21T04:36:58Z","local":"2026-06-21T06:36:58+02:00","timestamp":1782016618}},{"period":"evening","start":{"utc":"2026-06-21T19:07:50Z","local":"2026-06-21T21:07:50+02:00","timestamp":1782068870},"end":{"utc":"2026-06-21T20:23:19Z","local":"2026-06-21T22:23:19+02:00","timestamp":1782073399}}],"blue_hour":[{"period":"morning","start":{"utc":"2026-06-21T03:04:17Z","local":"2026-06-21T05:04:17+02:00","timestamp":1782011057},"end":{"utc":"2026-06-21T03:21:29Z","local":"2026-06-21T05:21:29+02:00","timestamp":1782012089}},{"period":"evening","start":{"utc":"2026-06-21T20:23:19Z","local":"2026-06-21T22:23:19+02:00","timestamp":1782073399},"end":{"utc":"2026-06-21T20:40:32Z","local":"2026-06-21T22:40:32+02:00","timestamp":1782074432}}]}},"meta":{"engine":"astro-agents/1.10.0","ephemeris":"NASA/JPL DE440 (1800-01-01..2200-01-01)","astronomy_library":"skyfield/1.55","frame":"geocentric apparent positions, true ecliptic and equinox of date (IAU 2006/2000A)","deterministic":true,"llm_used":false,"input_sha256":"e7ebc05d5ce6203c372c141abf8602f4ce843a0c230c2f6b0f563433b51d552e","result_sha256":"e1dfbd240995cda65870a47389ad3d5c571fbfc5480b770a6ba88d5bce7f3896","reproducibility":"result_sha256 = SHA-256 of the result serialized as JSON with sorted keys, no whitespace, UTF-8, floats rounded to 6 decimals. Same input + same engine version => same hash."},"example_note":"real output of engine 1.10.0; lists shortened to 3 items"},"payment":"x402 or MPP; 1 free call per client on the $0.01-0.02 routes, this one included. POST without payment to receive the 402 challenge.","catalog":"https://astro-agent.dev/v1/catalog"}