Overview
Sunrise, sunset and twilight times for Madrid, Spain: returns the sunrise, sunset, solar noon, day length and civil, nautical and astronomical dawn and dusk for Madrid (40.42°N, 3.70°W) on a requested date (default: today in Madrid). Use it to answer 'when does the sun set in Madrid', or to plan shoots, outdoor work and travel days. Computed locally from astronomical algorithms; no external data.
Protocol
x402
Price
$0.0050
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
cities-factory-live
Indexed
2026-11-13 12:08:19
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Output Schema
{
"example": {
"city": {
"country": "Spain",
"countryCode": "ES",
"dataSource": {
"license": "CC BY 4.0",
"name": "GeoNames geographical database (cities15000)",
"url": "https://www.geonames.org",
"via": "GeoNames"
},
"name": "Madrid",
"population": 3255944,
"slug": "madrid",
"timezone": "Europe/Madrid"
},
"date": "2026-11-10",
"dawn": "2026-11-10T06:27:14.033Z",
"dayLengthSeconds": 36479,
"disclaimer": "Computed times are astronomical predictions for the given coordinates; local horizon and weather can shift what is actually visible.",
"dusk": "2026-11-10T17:32:53.203Z",
"latitude": 40.4165,
"longitude": -3.70256,
"nauticalDawn": "2026-11-10T05:54:36.617Z",
"nauticalDusk": "2026-11-10T18:05:30.619Z",
"night": "2026-11-10T18:37:31.105Z",
"nightEnd": "2026-11-10T05:22:36.132Z",
"solarNoon": "2026-11-10T12:00:03.618Z",
"source": {
"name": "Computed locally from astronomical algorithms (SunCalc method)",
"url": null,
"via": "No external data source"
},
"sunrise": "2026-11-10T06:56:04.056Z",
"sunset": "2026-11-10T17:04:03.181Z"
},
"type": "json"
}