Loading
Loading
https://api.apifreaks.com/v2.0/geolocation/astronomy
{
"location": {
"location_string": "New York, US",
"country_name": "United States",
"state_prov": "New York",
"city": "New York",
"locality": "Clinton",
"latitude": "40.76473",
"longitude": "-74.00084",
"elevation": "9"
},
"astronomy": {
"date": "2026-07-08",
"current_time": "08:08:18.082",
"mid_night": "01:01",
"night_end": "03:29",
"morning": {
"astronomical_twilight_begin": "03:29",
"astronomical_twilight_end": "04:18",
"nautical_twilight_begin": "04:18",
"nautical_twilight_end": "04:59",
"civil_twilight_begin": "04:59",
"civil_twilight_end": "05:32",
"blue_hour_begin": "04:46",
"blue_hour_end": "05:12",
"golden_hour_begin": "05:12",
"golden_hour_end": "06:13"
},
"sunrise": "05:32",
"sunset": "20:30",
"evening": {
"golden_hour_begin": "19:48",
"golden_hour_end": "20:49",
"blue_hour_begin": "20:49",
"blue_hour_end": "21:15",
"civil_twilight_begin": "20:30",
"civil_twilight_end": "21:02",
"nautical_twilight_begin": "21:02",
"nautical_twilight_end": "21:44",
"astronomical_twilight_begin": "21:44",
"astronomical_twilight_end": "22:32"
},
"night_begin": "22:32",
"sun_status": "-",
"solar_noon": "13:01",
"day_length": "14:58",
"sun_altitude": 26.829501780670096,
"sun_distance": 152098283.03028187,
"sun_azimuth": 82.61268450407698,
"moon_phase": "LAST_QUARTER",
"moonrise": "00:20",
"moonset": "14:23",
"moon_status": "-",
"moon_altitude": 60.66467085334474,
"moon_distance": 374925.11428302806,
"moon_azimuth": 206.0655558233637,
"moon_parallactic_angle": 20.026339165773148,
"moon_illumination_percentage": "-42.36",
"moon_angle": 278.78724636692596
}
}Playground to test live weather - real-time temperature, air quality, and astronomical data for any location or IP.
Playground to test weather forecast - hourly, daily, and minutely predictions up to 16 days for any location.
Playground to test historical weather - query daily or hourly records for any location dating back to 1940.
Playground to test weather time series - comprehensive historical data over a custom date range, daily or hourly from 1940.
Playground to test air quality - real-time and hourly AQI forecasts with key pollutants for any location worldwide.
Playground to test marine weather - daily, hourly, or minutely ocean conditions forecast up to 16 days.
Playground to test flood forecast - query river discharge, flood risk levels, and percentile data up to 16 days ahead.
Playground to test bulk live weather - fetch real-time weather for multiple locations in one request.