Weather
Sunset Times
Provides sunset and sunrise times for a given latitude and longitude.
4
Endpoints
—
Status
—
Latency
CODE EXAMPLES
JavaScript (Fetch)
fetch('https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400', {
method: 'GET',
headers: {},
})
.then(response => response.json())
.then(data => console.log(data));cURL
curl -X GET 'https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400'Sunset Times
0.0%
WEATHER
Provides sunset and sunrise times for a given latitude and longitude.
PERFORMANCE TELEMETRY
RATE LIMITSCHECK DOCS
API TESTING INTERFACE
READY
SIGN IN TO EXECUTE TEST
Please sign in to test API endpoints
RESPONSE TELEMETRY
Execute API test to view telemetry data