Weather Data API for App & Coders

Easy Global Weather API
Single history & forecast Weather API

Top searches

Build your first Weather API query

What's new in the Visual Crossing Weather API?

The best real-time weather data in one API

Full weather API docs

Single API Call

A single Weather API request can return past, present and future data

Sub-hourly, Hourly and Daily Data

Our data provides full Sub-hourly, Hourly and Daily Data

Current Conditions, Alerts, & Events

Retrieve real time conditions, weather alerts & details about significant events

Kite flying in the weather

50+ Years of Historical Weather Data

Our historical weather database includes over 100,000 weather stations

CSV and JSON Results

Our weather API provides both rich JSON structures and CSV for easy use

Full location address geocoding

Look up by Address, ZIP Code, Lat/lon & more


Sign up for a free Visual Crossing Weather Account

Start today for free

Sign up for a free account now and immediately begin using our weather API to query accurate forecast & historical data for any global location.

Sign up

Sample Weather API Queries

The following are a sample of the possible queries that the Weather API supports. To run the queries, insert your API key and simply copy the query into a browser or your code. To build Weather API queries and view the results directly in the browser, head over to the query builder.

15-day weather forecast (US units, JSON output)

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/London%2CUK?unitGroup=us&key=YOUR_API_KEY

Last seven days hourly historical Data (Metric Units, JSON output)

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/London%2CUK/last7days?unitGroup=metric?&key=YOUR_API_KEY

Historical data between two dates (Metric Units, JSON output)

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/London%2CUK/2022-07-15/2022-07-20?unitGroup=metric&key=YOUR_API_KEY

Daily historical data between two dates (Metric Units, CSV output)

https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/London%2CUK/2022-07-15/2022-07-20?unitGroup=metric&contentType=csv&include=days&key=YOUR_API_KEY

JSON Results

{
    "queryCost": 1,
    "latitude": 51.5064,
    "longitude": -0.12721,
    "resolvedAddress": "London, England, United Kingdom",
    "address": "London,UK",
    "timezone": "Europe/London",
    "tzoffset": 1,
    "description": "Similar temperatures continuing with a chance of rain Friday, Monday & Tuesday.",
    "days": [
    {
    "datetime": "2023-05-02",
    "datetimeEpoch": 1682982000,
    "tempmax": 58.2,
    "tempmin": 47.6,
    "temp": 53,
    "feelslikemax": 58.2,
    "feelslikemin": 43.9,
    "feelslike": 52.3,
    "dew": 44.7,
    "humidity": 74.1,
    "precip": 0,
    "precipprob": 0,
    "precipcover": 0,
    "preciptype": [
    "rain"
    ],
    "snow": 0,
    "snowdepth": 0,
    "windgust": 19.9,
    "windspeed": 15,
    "winddir": 86.4,
    "pressure": 1026.1,
    "cloudcover": 75.2,
    "visibility": 6.6,
    "solarradiation": 108.7,
    "solarenergy": 9.2,
    "uvindex": 6,
    "severerisk": 10,
    "sunrise": "05:31:11",
    "sunriseEpoch": 1683001871,
    "sunset": "20:25:02",
    "sunsetEpoch": 1683055502,
    "moonphase": 0.39,
    "conditions": "Partially cloudy",
    "description": "Partly cloudy throughout the day.",
    "icon": "partly-cloudy-day",
    "stations": [
    "EGWU",
    "EGLL",
    "D5621",
    "F4685",
    "EGLC"
    ],
    "source": "comb",
    "hours": [
              {
              "datetime": "00:00:00",
              "datetimeEpoch": 1682982000,
              "temp": 54.9,
              "feelslike": 54.9,
              "humidity": 70.72,
              "dew": 45.6,
              "precip": 0,
              "precipprob": 0,
              "snow": 0,
              "snowdepth": 0,
              "preciptype": [
              "rain"
              ],
              "windgust": 8.3,
              "windspeed": 5.1,
              "winddir": 320,
              "pressure": 1022,
              "visibility": 6.2,
              "cloudcover": 0,
              "solarradiation": 0,
              "solarenergy": null,
              "uvindex": 0,
              "severerisk": 10,
              "conditions": "Clear",
              "icon": "clear-night",
              "stations": [
              "EGWU",
              "EGLL",
              "EGLC"
              ],
              "source": "obs"
              },...
             ]
            },...
            ],
            "alerts": [],
            "stations": {
            "EGWU": {
            "distance": 20850,
            "latitude": 51.55,
            "longitude": -0.42,
            "useCount": 0,
            "id": "EGWU",
            "name": "EGWU",
            "quality": 50,
            "contribution": 0
            },...
            },
            "currentConditions": {
            "datetime": "22:26:00",
            "datetimeEpoch": 1683062760,
            "temp": 48.5,
            "feelslike": 44.1,
            "humidity": 76.6,
            "dew": 41.5,
            "precip": 0,
            "precipprob": 0,
            "snow": 0,
            "snowdepth": 0,
            "preciptype": null,
            "windgust": null,
            "windspeed": 10.3,
            "winddir": 100,
            "pressure": 1028.7,
            "visibility": 6.2,
            "cloudcover": 36.8,
            "solarradiation": 0,
            "solarenergy": null,
            "uvindex": 0,
            "conditions": "Partially cloudy",
            "icon": "partly-cloudy-night",
            "stations": [
            "EGWU",
            "D5621",
            "EGLC"
            ],
            "source": "obs",
            "sunrise": "05:31:11",
            "sunriseEpoch": 1683001871,
            "sunset": "20:25:02",
            "sunsetEpoch": 1683055502,
            "moonphase": 0.39
            }

          
        

CSV Results

Name,datetime,temp,feelslike,dew,humidity,precip,precipprob,preciptype,snow,snowdepth,windgust,windspeed,winddir,sealevelpressure,cloudcover,visibility,solarradiation,solarenergy,uvindex,severerisk,conditions,icon,stations
"London, England, United Kingdom",2023-05-02T00:00:00,54.9,54.9,45.6,70.72,0,0,rain,0,0,8.3,5.1,320,1022,0,6.2,0,,0,10,Clear,clear-night,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T01:00:00,53.1,53.1,45.9,76.46,0,0,,0,0,5.6,4.9,306,1022,25.8,6.2,0,,0,10,Partially cloudy,partly-cloudy-night,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T02:00:00,51.7,51.7,46.7,82.93,0,0,,0,0,6,4.9,307,1022.8,24.8,6.2,0,,0,10,Partially cloudy,partly-cloudy-night,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T03:00:00,51,51,47.1,86.37,0,0,,0,0,4.7,5.2,10,1023,88,6.2,0,,0,10,Partially cloudy,partly-cloudy-night,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T04:00:00,50.7,50.7,47.4,88.49,0,0,,0,0,5.8,3.5,13,1023.8,97.8,6.2,0,,0,10,Overcast,cloudy,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T05:00:00,51,51,47.4,87.44,0,0,,0,0,9.2,4.1,18,1024,100,6.2,0,,0,10,Overcast,cloudy,"EGWU,EGLL,EGLC"
"London, England, United Kingdom",2023-05-02T06:00:00,51,51,46.3,83.9,0,0,,0,0,11.6,8.6,47,1024.6,100,6.2,9,0,0,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T07:00:00,49.9,46.7,46.3,87.38,0,0,,0,0,13.9,7.9,56,1025.6,97.5,6.2,23,0.1,0,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T08:00:00,51.7,51.7,46.3,81.74,0,0,,0,0,15.2,8.3,66,1025.8,97.5,6.2,60,0.2,1,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T09:00:00,51.7,51.7,46.6,82.75,0,0,,0,0,16.1,8.5,76,1026,97.5,6.2,97,0.3,1,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T10:00:00,52.1,52.1,47,82.78,0,0,,0,0,16.3,9.9,90,1026.6,97.5,6.2,97,0.3,1,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T11:00:00,53.2,53.2,45.2,74.29,0,0,,0,0,17.4,10.9,102,1027.6,97.5,6.2,167,0.6,2,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
"London, England, United Kingdom",2023-05-02T12:00:00,54.6,54.6,45.2,70.53,0,0,,0,0,17.2,10.3,110,1027.6,90.2,6.2,448,1.6,4,10,Overcast,cloudy,"EGWU,EGLL,D5621,EGLC"
... 
        

Weather API built for you

JavaScript, Mobile Apps & Web Development

Visual Crossing Weather API requests are RESTful calls that you can make easily from any client or server. The API allows you to incorporate weather data into your application, website or weather app in a matter of minutes. Simply follow our tutorials and sample code. And you can get started entirely for free. Our weather data API allows 1000 completely free records per day.

Crop Care
  • Easy integration with JavaScript, D3 & jQuery
  • HTTPS encryption for security and compliance
  • Cross-Origin Resource Sharing (CORS ) for secure cross-domain requests
  • Secure API Key for account protection & tracking
  • Designed for both client and server usage
  • Enable weather in your application in minutes

Code in Java, Python, Perl & more

RESTful APIs are ideal for integration in any programming language such as Java, .NET, Python & Perl. Access the entire Visual Crossing Weather database including weather history data, weather forecasts, and real time conditions to make any application more powerful.

Results are available in standard, easy-to-consume data formats including JSON and CSV. Integrating the data into your own app or code project usually takes minutes.

Crop Care
  • Full access to historical weather, forecasts, and climate statistics
  • Data formats include JSON and CSV
  • Access global weather conditions from the past, present & future with a single call
  • Support for multiple locations and dates in a single request
  • Documentation and samples available

Weather Data for Data Science

Use industry standard tools ranging from R and MATLAB to Excel and Power Query. Tutorials and how-to articles are available for these as well as other powerful analytics and business platforms. Whatever tools power your analysis, Visual Crossing’s Weather API integrates easily.

Data Science

Microsoft Power BI

Power BI is an interactive business intelligence tool designed to be simple enough for end users to create their own analyses while being powerful enough for enterprise-wide use. Weather data fits naturally into this analysis framework, and Visual Crossing Weather makes the integration easy. Our query URLs can return CSV results that import directly into any Power BI report or dashboard.

Power BI

Business Intelligence Platforms

High-end BI platforms represent the backbone of data analysis within many large and mid-sized companies. These powerful tools can crunch decades of business and external data to find patterns and make recommendations. Visual Crossing Weather can be easily embedded directly into any BI application.

Business Intelligence

Google Sheets

Google Sheets has become a universally accessible data analysis application due to the global reach of its web-based platform. That web platform powers instant data sharing in schools, companies, and around the world. Visual Crossing Weather data can be integrated easily into any Google Sheet application using a single API call.

Google Sheets
  • Directly load historical and forecast weather data into any Sheet
  • Update live weather results directly in Google Sheets
  • Share weather data analysis instantly around your team or around the world
  • Ideal for academic and education users

Databases

An enterprise data warehouse is the heart of data science and business analytics for nearly every large and mid-sized corporation. The power to store vast amounts of business data enables analysts across an organization to work together to make intelligent business decisions. Visual Crossing Weather allows historical weather data to be matched directly to existing business records illuminating new insights. Weather forecast data can then be loaded and used for planning, scheduling and more.

Many business activities are affected by weather. Adding Visual Crossing Weather Data to an enterprise data warehouse brings new insight and more ROI from your existing investment.

Databases
  • Easily load weather data using ETL and embedded queries
  • Compatible with any database or data lake
  • Dynamic queries load fresh weather data automatically
  • Power analysts and planners across your entire the enterprise
  • Find new insight from your existing investment

Replace any existing Weather API

Full documentation, sample code and demonstrations

Full weather API docs
Top