Skip to content

About

Sample code and tutorials for the Visual Crossing Weather API. Retrieve historical weather and weather forecast data.

Topics

Resources

Stars

55 stars

Watchers

3 watching

Forks

Repository files navigation

Weather API and Weather Data

The Visual Crossing Weather API provides developers with weather data for any programming language, application, or script. The Weather API provides fast, scalable access to historical weather, current conditions, and weather forecasts in easy-to-use JSON, CSV, and Excel formats.

See the Visual Crossing Weather API for more information, documentation, sample code, and use cases.

To view weather data, download weather data, and build Weather API queries, visit the Visual Crossing Weather Query Builder.

To sign up for a free Visual Crossing account, visit Visual Crossing sign up.

Weather API

The Timeline Weather API is the primary REST API for retrieving historical weather, current conditions, and forecast data using a single consistent API.

Timeline Weather API documentation

Weather data element documentation

Weather MCP Server

The Visual Crossing Weather MCP Server provides MCP-compatible AI assistants, agents, and development tools with direct access to Visual Crossing weather data through the Model Context Protocol (MCP).

The MCP server provides structured access to current conditions, weather forecasts, recent historical weather, and supported specialized weather elements. It can be used with MCP-compatible clients and agent frameworks without requiring a custom REST API integration.

Visual Crossing MCP documentation

MCP server endpoint:

https://mcp.visualcrossing.com/VisualCrossingWebServices/rest/api/v1/mcp

Weather Maps API

The Visual Crossing Weather Maps API provides ready-to-use weather map tiles, static map images, and map legends for use in interactive maps, dashboards, reports, and other applications.

The API supports standard XYZ map tiles for libraries such as Leaflet, MapLibre, OpenLayers, Google Maps, and ESRI, along with stitched static weather map images and matching legends.

Weather Maps API documentation

Weather Maps API integration samples

Weather data is sourced from Visual Crossing Weather Data.

Sample Contents

d3_samples: D3 (https://d3js.org/) visualization framework samples within an HTML/JavaScript environment.

html_samples: HTML and JavaScript examples using the Weather APIs.

python_samples: Examples of using the Weather API within Python scripts.

Excel_Workbooks: Examples of using Weather Data within Microsoft Excel workbooks.

PHP: Examples of using the Weather API within PHP scripts.

NodeJs: Examples of using the Weather API within Node.js applications.

Java: Examples of using the Weather API within Java applications.

JavaScript: Examples of using the Weather API within JavaScript applications. Also see the Node.js and D3 examples.

PowerQuery: Examples of using the Weather API in Microsoft Power Query scripts, including Excel and Power BI.

RaspberryPi: Examples of using the Weather API with Raspberry Pi.

MCP: Examples and information for connecting MCP-compatible AI assistants and agents to Visual Crossing weather data.

WeatherMaps: Examples of integrating Weather Maps API tiles and imagery into web mapping libraries and applications.

About

Sample code and tutorials for the Visual Crossing Weather API. Retrieve historical weather and weather forecast data.

Topics

Resources

Stars

55 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages