Back to explore

climate

Weather

Credits: 0.000001

Forecast

POST /v1/weather/Forecast

Get the weather forecast for the next 1-10 days

Request

daysnumber

number of days. default 1, max 10

locationstring

location of the forecase

Response

countrystring

country of the request

forecastarray

forecast for the next number of days

latitudenumber

e.g 37.55

local_timestring

the local time

locationstring

location of the request

longitudenumber

e.g -77.46

regionstring

region related to the location

timezonestring

timezone of the location

Request

Response

{
    "location": "London",
    "region": "City of London, Greater London",
    "country": "City of London, Greater London",
    "latitude": 51.52,
    "longitude": -0.11,
    "timezone": "Europe/London",
    "local_time": "2022-03-01 20:13",
    "forecast": [
        {
            "date": "2021-09-21",
            "max_temp_c": 21.8,
            "max_temp_f": 71.2,
            "min_temp_c": 13,
            "min_temp_f": 55.4,
            "avg_temp_c": 17.3,
            "avg_temp_f": 63.1,
            "will_it_rain": true,
            "chance_of_rain": 70,
            "condition": "Partly cloudy",
            "icon_url": "//cdn.weatherapi.com/weather/64x64/day/116.png",
            "sunrise": "06:45 AM",
            "sunset": "07:01 PM",
            "max_wind_mph": 4.3,
            "max_wind_kph": 6.8
        },
        {
            "date": "2021-09-22",
            "max_temp_c": 24.1,
            "max_temp_f": 75.4,
            "min_temp_c": 13.4,
            "min_temp_f": 56.1,
            "avg_temp_c": 18.1,
            "avg_temp_f": 64.6,
            "will_it_rain": false,
            "chance_of_rain": 0,
            "condition": "Partly cloudy",
            "icon_url": "//cdn.weatherapi.com/weather/64x64/day/116.png",
            "sunrise": "06:47 AM",
            "sunset": "06:58 PM",
            "max_wind_mph": 4.3,
            "max_wind_kph": 6.8
        }
    ]
}

Credits: 0.000001

Now

POST /v1/weather/Now

Get the current weather report for a location by postcode, city, zip code, ip address

Request

locationstring

location to get weather e.g postcode, city

Response

cloudnumber

cloud cover percentage

conditionstring

the weather condition

countrystring

country of the request

daytimeboolean

whether its daytime

feels_like_cnumber

feels like in celsius

feels_like_fnumber

feels like in fahrenheit

humiditynumber

the humidity percentage

icon_urlstring

the URL of the related icon. Simply prefix with either http or https to use it

latitudenumber

e.g 37.55

local_timestring

the local time

locationstring

location of the request

longitudenumber

e.g -77.46

regionstring

region related to the location

temp_cnumber

temperature in celsius

temp_fnumber

temperature in fahrenheit

timezonestring

timezone of the location

wind_degreenumber

wind degree

wind_directionstring

wind direction

wind_kphnumber

wind in kph

wind_mphnumber

wind in mph

Request

Response

{
    "location": "London",
    "region": "City of London, Greater London",
    "country": "City of London, Greater London",
    "latitude": 51.52,
    "longitude": -0.11,
    "timezone": "Europe/London",
    "local_time": "2021-06-23 11:18",
    "temp_c": 16,
    "temp_f": 60.8,
    "feels_like_c": 16,
    "feels_like_f": 60.8,
    "humidity": 48,
    "cloud": 75,
    "daytime": true,
    "condition": "Partly cloudy",
    "icon_url": "//cdn.weatherapi.com/weather/64x64/day/116.png",
    "wind_mph": 4.3,
    "wind_kph": 6.8,
    "wind_direction": "NE",
    "wind_degree": 40
}