Get a Maps Demo Key: Try out the Weather API at no cost with a Maps Demo Key—no billing information required.

Weather API overview

The Weather API lets you request real-time, hyperlocal weather data for locations around the world. Weather information includes temperature, precipitation, humidity, and more.

For a location at a given latitude and longitude, the API provides endpoints that let you query:

  • Current conditions: The current weather conditions.
  • Hourly forecast: Up to 240 hours of forecasted conditions for all elements.
  • Daily forecast: Up to 10 days of forecasted conditions for all elements.
  • Hourly history: Up to 24 hours of cached past conditions for all elements.

Features of the Weather API

Weather API data includes the following:

  • Weather conditions and icons: A description and corresponding icon indicating the current weather conditions (for example, "Cloudy" or "Scattered snow showers").
  • Temperature: Minimum, maximum, and apparent ("feels like") temperatures.
  • Precipitation: Total precipitation and precipitation type (snow, rain, ice, mix).
  • Wind: Average windchill, wind direction, maximum speed, and gust.
  • Ice thickness: Thickness of ice.
  • Humidity: Dew point, heat index, wet-bulb temperature, and relative humidity.
  • UV index: Ultraviolet (UV) index.
  • Thunderstorm probability: The percent chance of a thunderstorm occurring.
  • Visibility: The distance at which an object is clearly visible.
  • Air pressure: The average sea level air pressure.
  • Sun and moon events: Sunrise, sunset, moonrise, and moonset times.
  • Cloud cover: The percentage of the sky covered by clouds.

How to use the Weather API

1 Get set up Start with Set up your Google Cloud project and complete the instructions that follow.
2 Get current conditions See Get current conditions.
3 Get hourly forecast See Get hourly forecast.
4 Get daily forecast See Get daily forecast.
5 Get hourly history See Get hourly history.

What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年09月01日 UTC.