Overview
Sunrise, sunset and twilight times for Shanghai, China: returns the sunrise, sunset, solar noon, day length and civil, nautical and astronomical dawn and dusk for Shanghai (31.22°N, 121.46°E) on a requested date (default: today in Shanghai). Use it to answer 'when does the sun set in Shanghai', 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:26
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Output Schema
{
"example": {
"city": {
"country": "China",
"countryCode": "CN",
"dataSource": {
"license": "CC BY 4.0",
"name": "GeoNames geographical database (cities15000)",
"url": "https://www.geonames.org",
"via": "GeoNames"
},
"name": "Shanghai",
"population": 24874500,
"slug": "shanghai",
"timezone": "Asia/Shanghai"
},
"date": "2026-11-10",
"dawn": "2026-11-09T21:52:33.829Z",
"dayLengthSeconds": 38571,
"disclaimer": "Computed times are astronomical predictions for the given coordinates; local horizon and weather can shift what is actually visible.",
"dusk": "2026-11-10T09:26:11.826Z",
"latitude": 31.22222,
"longitude": 121.45806,
"nauticalDawn": "2026-11-09T21:23:34.294Z",
"nauticalDusk": "2026-11-10T09:55:11.361Z",
"night": "2026-11-10T10:23:47.295Z",
"nightEnd": "2026-11-09T20:54:58.360Z",
"solarNoon": "2026-11-10T03:39:22.827Z",
"source": {
"name": "Computed locally from astronomical algorithms (SunCalc method)",
"url": null,
"via": "No external data source"
},
"sunrise": "2026-11-09T22:17:57.459Z",
"sunset": "2026-11-10T09:00:48.196Z"
},
"type": "json"
}