Loading
Loading
Retrieve historical weather data for a date range for any location worldwide. Supports lookup by city name or address, GPS coordinates, or IP address. Returns daily or hourly weather data keyed by date, each with astronomical information.
The Time-Series Weather API requires startDate and endDate (both in YYYY-MM-DD format, past dates only). The range must not exceed 90 days for daily precision or 7 days for hourly. The response historical object is keyed by date, each containing daily or hourly weather and astronomy data.
Pass your API key as the apiKey parameter in every request.
This is version v1.0 of the API.
startDate and endDate are required. Provide a location using location, lat/long, or ip. If no location is provided the API auto-detects the requesting IP.
formatoptionalStringdefault: jsonResponse format: 'json'.
startDaterequiredStringStarting date for the range. Must follow YYYY-MM-DD format. Historical dates only - current or future dates not allowed.
endDaterequiredStringEnd date for the range. Must follow YYYY-MM-DD format. The difference from startDate must not exceed 90 days (daily) or 7 days (hourly).
locationoptionalStringSpecifies the target location. Accepts a city name, place name, or full address.
latoptionalFloatLatitude of the target location. Must be used together with "long".
longoptionalFloatLongitude of the target location. Must be used together with "lat".
ipoptionalStringIPv4 or IPv6 address used to infer location. Defaults to the requester's public IP.
precisionoptionalStringdefault: dailyData granularity. Supported values: "daily" (default) and "hourly".
timezoneoptionalStringSpecifies the timezone for returned results. Defaults to the resolved location's timezone.
A successful request returns a 200 OK with a JSON object containing location and historical. The historical object is keyed by date (YYYY-MM-DD), each value containing daily or hourly weather data and an astronomy object. See the response preview for the full structure.
date (Object)
Address Lookup (Object), Coordinates Lookup (Object), IP Lookup (Object)
Reference for the weather_code field values returned in the daily, hourly, and astronomy objects. Codes follow the WMO standard for weather interpretation.
0Clear sky - completely clear with no cloud coverage.
1, 2, 3Mainly clear, partly cloudy, and overcast - varying cloud coverage levels.
45, 48Fog - standard fog (45) and depositing rime fog (48).
51, 53, 55Drizzle - light (51), moderate (53), and dense intensity (55).
56, 57Freezing drizzle - light (56) and dense/heavy intensity (57).
61, 63, 65Rain - slight (61), moderate (63), and heavy intensity (65).
66, 67Freezing rain - light (66) and heavy intensity (67).
71, 73, 75Snowfall - slight (71), moderate (73), and heavy intensity (75).
77Snow grains - small, white, opaque ice particles.
80, 81, 82Rain showers - slight (80), moderate (81), and violent intensity (82).
85, 86Snow showers - slight (85) and heavy intensity (86).
95Thunderstorm - slight or moderate intensity.
96, 99Thunderstorm with hail - slight hail (96) and heavy hail (99).
See the HTTP Status Codes documentation for a complete reference of common API errors and HTTP status codes.
Invalid latitude or longitude values. Latitude must be between -90 and 90, and longitude must be between -180 and 180
please pass correct parameters
Location not found