Rise, set and twilight times for a place
rise_set_timesSunrise, sunset, moonrise, moonset and twilight times for a place and date: rise, transit and set of the Sun, Moon and planets, civil/nautical/astronomical dawn and dusk, day length, golden hour and blue hour, in UTC and local time. E.g. {date: '2026-06-21', latitude: 48.8566, longitude: 2.3522}. 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. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.01 per call via REST POST https://astro-agent.dev/v1/astronomy/rise-set (x402 or MPP); each client gets 1 free call on the $0.01-0.02 tools, this one included.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "rise_set_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The local calendar day at the place, YYYY-MM-DD (1800-01-02..2199-12-30), midnight to midnight in its time zone. | |
| bodies | No | Bodies to time. Default: all ten (Sun, Moon, Mercury..Pluto). The Sun's twilight block is always returned. | |
| latitude | Yes | Decimal degrees, north positive. | |
| timezone | No | IANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules). | |
| longitude | Yes | Decimal degrees, east positive. | |
| elevation_m | No | Height above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Provenance of the result. | |
| error | No | x402 offer only: why payment is required. | |
| result | No | The calculation result. | |
| accepts | No | x402 offer only: the payment options (scheme, network, amount, asset, payTo, ...). | |
| endpoint | No | The REST route that computed it, e.g. 'astronomy/rise-set'. | |
| resource | No | x402 offer only: the resource being paid for. | |
| extensions | No | x402 offer only: protocol extensions (bazaar). | |
| x402Version | No | x402 offer only: protocol version (2). |