# Visual Crossing API

> Global historical and weather forecast data.

Visual Crossing is a weather API from visualcrossing.com. Requests are authenticated with an API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 5 endpoints.

## At a glance

- Category: [Weather](https://www.openparable.com/apis/category/weather)
- Provider: visualcrossing.com
- Authentication: API key
- HTTPS: Yes
- CORS: Yes
- Base URL: https://weather.visualcrossing.com
- Documentation: https://www.visualcrossing.com/weather-api
- OpenAPI description: https://api.apis.guru/v2/specs/visualcrossing.com/weather/4.6/openapi.json
- Version: 4.6
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/weatherdata/forecast" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /VisualCrossingWebServices/rest/services/timeline/{location}` — Historical and Forecast Weather API
- `GET /VisualCrossingWebServices/rest/services/timeline/{location}/{startdate}` — Historical and Forecast Weather API
- `GET /VisualCrossingWebServices/rest/services/timeline/{location}/{startdate}/{enddate}` — Historical and Forecast Weather API
- `GET /VisualCrossingWebServices/rest/services/weatherdata/forecast` — Weather Forecast API
- `GET /VisualCrossingWebServices/rest/services/weatherdata/history` — Retrieves hourly or daily historical weather records.

## Questions

### Does the Visual Crossing API need an API key?

Yes. The Visual Crossing API uses API key authentication; the documentation explains how to get credentials.

### Can I call the Visual Crossing API from the browser?

Yes. The Visual Crossing API sends CORS headers, so a web page can call it directly with fetch().

### Does the Visual Crossing API support HTTPS?

Yes, the Visual Crossing API is served over HTTPS.

### How many endpoints does the Visual Crossing API have?

Its OpenAPI description lists 5 endpoints in version 4.6. All of them are shown on this page.

### What are alternatives to the Visual Crossing API?

Other Weather APIs include NOAA CO-OPS, NASA POWER, US Weather, AccuWeather, Aemet.

## Similar weather APIs

- [NOAA CO-OPS](https://www.openparable.com/apis/noaa-co-ops): US coastal tides, water levels, currents and meteorological observations
- [NASA POWER](https://www.openparable.com/apis/nasa-power): Global solar and weather data for energy and agriculture
- [US Weather](https://www.openparable.com/apis/us-weather): US National Weather Service
- [AccuWeather](https://www.openparable.com/apis/accuweather): Weather and forecast data
- [Aemet](https://www.openparable.com/apis/aemet): Weather and forecast data from Spain
- [OpenWeatherMap](https://www.openparable.com/apis/openweathermap): Explore OpenWeather's vast range of weather APIs including the versatile One Call API 4.0. Ideal for both beginners and professionals, our APIs offer current weather, minute-by-minute forecasts, historical data archives, and future predictions. Access weather data starting from 01-01-1979, global weather maps, solar irradiance predictions, air pollution data, and more. Our APIs support various for
- [Meteorologisk Institutt](https://www.openparable.com/apis/meteorologisk-institutt): Weather and climate data
- [AviationWeather](https://www.openparable.com/apis/aviationweather): NOAA aviation weather forecasts and observations
- [IPMA](https://www.openparable.com/apis/ipma): Portuguese weather and climate data
- [NOAA NGDC](https://www.openparable.com/apis/noaa-ngdc): Natural hazards data including earthquakes, tsunamis, and volcanic eruptions
- [AQICN](https://www.openparable.com/apis/aqicn): Air Quality Index Data for over 1000 cities
- [RainViewer](https://www.openparable.com/apis/rainviewer): Radar data collected from different websites across the Internet

Listed from: public-apis (MIT), public-apis database (MIT), APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/visual-crossing (OpenParable). Cite the canonical URL above.
