Skip to content

Sunrise and sunset times

Sunrise, sunset, solar noon, day length, and civil, nautical and astronomical twilight for any coordinates, in the place's local time zone (ISO 8601), for one. Needs lat and lng. Served by Sunrise-Sunset.org.

Inputs

2 required
Lat
Latitude, e.g. 48.8566Required · lat
Lng
Longitude, e.g. 2.3522Required · lng
Date
Date YYYY-MM-DD, 'today' or 'tomorrow', e.g. '2026-12-21'Optional · date
Date start
Range start (with date_end), e.g. '2026-12-01'Optional · date_start
Date end
Range end, inclusive, e.g. '2026-12-31'Optional · date_end
Tz
IANA time zone for the times instead of the local one, e.g. 'UTC'Optional · tz

Pricing

Price
Free, no charge per call
Billing
No charge per call. A workspace is still needed so your agent can call it.
License
Sunrise-Sunset.org free API (attribution required)
Attribution
Sun data by Sunrise-Sunset.org (https://sunrise-sunset.org)

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

Weather forecast & history

Connect your agent to 3,250+ tools for free

Sign in with Google or GitHub. No card required.