Sunrise-Sunset
Geoapi.sunrise-sunset.org
Sunrise, sunset, solar noon and twilight times for any coordinate and date.
Capabilities (3)
GET /v1/data/sunrisesunset/almanac1 creditFull day of sun and moon data for one coordinate: sunrise, sunset, solar noon, day length in seconds, the three twilight pairs, dawn/dusk, first and last light, golden hour and blue hour as morning/evening begin-end pairs, sunrise/sunset/noon azimuth and noon altitude in degrees, plus moonrise, moonset, moon phase and illumination percentage, all in ISO 8601 with the local UTC offset.
GET /v1/data/sunrisesunset/almanac-range1 creditThe same per-day sun and moon record as the single-day call, but as a days array covering every date from date_start to date_end inclusive, with tzid, lat and lng hoisted to the top level once.
GET /v1/data/sunrisesunset/times1 creditThe original endpoint: sunrise, sunset, solar noon, day length and the civil, nautical and astronomical twilight boundaries for one coordinate on one date, defaulting to 12-hour AM/PM strings in UTC.
Response example
The shape of data from sunrisesunset/almanac (Solar and lunar almanac for a day). A sample, not live data.
{
"date": "2026-10-22",
"tzid": "Europe/London",
"utc_offset": "+01:00",
"lat": 51.5074,
"lng": -0.1278,
"sunrise": "2026-10-22T07:36:22+01:00",
"sunset": "2026-10-22T17:52:43+01:00",
"solar_noon": "2026-10-22T12:45:06+01:00",
"day_length": 36981,
"sun_status": "normal",
"civil_twilight_begin": "2026-10-22T07:02:09+01:00",
"civil_twilight_end": "2026-10-22T18:26:53+01:00",
"nautical_twilight_begin": "2026-10-22T06:23:16+01:00",
"nautical_twilight_end": "2026-10-22T19:05:42+01:00",
"astronomical_twilight_begin": "2026-10-22T05:44:38+01:00",
"astronomical_twilight_end": "2026-10-22T19:44:14+01:00",
"dawn": "2026-10-22T07:02:09+01:00",
"dusk": "2026-10-22T18:26:53+01:00",
"first_light": "2026-10-22T05:44:38+01:00",
"last_light": "2026-10-22T19:44:14+01:00",
"golden_hour": {
"morning": {
"begin": "2026-10-22T07:15:17+01:00",
"end": "2026-10-22T08:23:41+01:00"
},
"evening": {
"begin": "2026-10-22T17:05:27+01:00",
"end": "2026-10-22T18:13:46+01:00"
}
},
"blue_hour": {
"morning": {
"begin": "2026-10-22T07:02:09+01:00",
"end": "2026-10-22T07:15:17+01:00"
},
"evening": {
"begin": "2026-10-22T18:13:46+01:00",
"end": "2026-10-22T18:26:53+01:00"
}
},
"solar_position": {
"sunrise_azimuth": 106.88,
"sunset_azimuth": 252.87,
"solar_noon_azimuth": 180.04,
"solar_noon_altitude": 27.34
},
"moonrise": "2026-10-22T16:21:27+01:00",
"moonset": "2026-10-22T02:49:29+01:00",
"moon_phase": "Waxing Gibbous",
"moon_illumination": 83.98
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Solar and lunar almanac for a day
Use Sunrise-Sunset (sunrisesunset) from fastCRW Pergamon, capability "Solar and lunar almanac for a day" (almanac). You have a coordinate and want everything the sun and moon do there on one day, already in local time. Example options: lat=51.5074, lng=-0.1278, date=2026-06-21. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "sunrisesunset" and capability "almanac". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Solar and lunar almanac over a date range
Use Sunrise-Sunset (sunrisesunset) from fastCRW Pergamon, capability "Solar and lunar almanac over a date range" (almanac-range). You need a season or a whole year of sun times for one place and want it in a single call instead of one request per day. Example options: lat=51.5074, lng=-0.1278, date_start=2026-06-01. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "sunrisesunset" and capability "almanac-range". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Sunrise and sunset times (v1)
Use Sunrise-Sunset (sunrisesunset) from fastCRW Pergamon, capability "Sunrise and sunset times (v1)" (times). You are maintaining something already written against the legacy /json shape, or you want the bare sun times in UTC with no moon or golden-hour fields. Example options: lat=51.5074, lng=-0.1278, date=2026-06-21. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "sunrisesunset" and capability "times". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Free to use with no key, for reasonable request volumes. Attribution is required: display a visible link to sunrise-sunset.org wherever the data is shown. No commercial restriction is stated.
https://sunrise-sunset.org/apiAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Sunrise-Sunset.org (https://sunrise-sunset.org)
Cache: up to 86400s
