Loading
Loading
https://api.apifreaks.com/v1.0/weather/historical
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/weather/historical"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Reference table for the weather_code field values
| Code | Description |
|---|---|
| 0 | Completely clear sky with no cloud coverage |
| 1, 2, 3 | Varying cloud coverage from mainly clear to partly cloudy and fully overcast conditions |
| 45, 48 | Fog conditions including standard fog and depositing rime fog formation |
| 51, 53, 55 | Drizzle precipitation with varying intensity levels: light, moderate, and dense |
| 56, 57 | Freezing drizzle conditions ranging from light to dense intensity |
| 61, 63, 65 | Rainfall with varying intensity: slight, moderate, and heavy precipitation |
| 66, 67 | Freezing rain events with light and heavy intensity levels |
| 71, 73, 75 | Snowfall precipitation ranging from slight to moderate and heavy intensity |
| 77 | Snow grains (small, white, opaque ice particles) |
| 80, 81, 82 | Rain shower activity with slight, moderate, and violent intensity levels |
| 85, 86 | Snow shower events ranging from slight to heavy intensity |
| 95 | Thunderstorm activity with slight or moderate intensity |
| 96, 99 | Thunderstorm accompanied by hail ranging from slight to heavy |