Solar API
GlobalSunrise, sunset, twilight, solar noon and day length for any coordinate and date.
Overview
The Solar API returns sunrise, sunset, civil dawn and dusk, solar noon, golden hour and total day length for any coordinate and date. Pure astronomy — no map data — so it works everywhere. Ideal for solar planning, photography, agriculture and smart-home automation.
API reference
GET
/api/1/solar| Parameter | Type | Status |
|---|---|---|
| point | string | Required |
| date | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/solar?point=40.4093,49.8671&date=2026-07-07&key=YOUR_KEY"
Other services
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringDirections APIAlternative Routes APISnap to Road APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APIGeometry Utilities APICoordinate Conversion APICountry Info API