Descripción general de la API de Weather
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
La API de Weather te permite solicitar datos meteorológicos hiperlocales en tiempo real para ubicaciones de todo el mundo. La información del clima incluye la temperatura, la precipitación, la humedad y mucho más.
Para una ubicación en una latitud y longitud determinadas, la API proporciona extremos que te permiten consultar lo siguiente:
- Condiciones actuales: Las condiciones climáticas actuales.
- Previsión por hora: Hasta 240 horas de condiciones previstas para todos los elementos.
- Pronóstico diario: Hasta 10 días de condiciones pronosticadas para todos los elementos.
- Historial por hora: Hasta 24 horas de condiciones pasadas almacenadas en caché para todos los elementos.
Funciones de la API de Weather
Los datos de la API de Weather incluyen lo siguiente:
- Condiciones climáticas y sus íconos: Una descripción y el ícono correspondiente que indican las condiciones climáticas actuales (por ejemplo, "Nublado" o "Lluvias de nieve dispersas").
- Temperatura: Temperaturas mínima, máxima y aparente ("sensación térmica").
- Precipitación: Precipitación total y tipo de precipitación (nieve, lluvia, hielo, mezcla)
- Viento: Sensación térmica promedio, dirección del viento, velocidad máxima y ráfagas
- Ice thickness: Grosor del hielo.
- Humedad: Punto de rocío, sensación térmica, temperatura de la bombilla húmeda y humedad relativa.
- Índice UV: Índice de radiación ultravioleta (UV).
- Probabilidad de tormenta eléctrica: Es el porcentaje de probabilidad de que ocurra una tormenta eléctrica.
- Visibilidad: Es la distancia a la que un objeto es claramente visible.
- Presión atmosférica: Es la presión atmosférica promedio a nivel del mar.
- Eventos del Sol y la Luna: Horas del amanecer, la puesta de sol, el amanecer lunar y la puesta de sol lunar
- Cobertura de nubes: Es el porcentaje del cielo cubierto por nubes.
Cómo usar la API de Weather
¿Qué sigue?
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-08-29 (UTC)
[null,null,["Última actualización: 2025-08-29 (UTC)"],[],[],null,["# Weather API overview\n\nThe Weather API lets you request real-time, hyperlocal weather data for\nlocations around the world. Weather information includes temperature,\nprecipitation, humidity, and more.\n\nFor a location at a given latitude and longitude, the API provides endpoints\nthat let you query:\n\n- **Current conditions:** The current weather conditions.\n- **Hourly forecast:** Up to 240 hours of forecasted conditions for all elements.\n- **Daily forecast:** Up to 10 days of forecasted conditions for all elements.\n- **Hourly history:** Up to 24 hours of cached past conditions for all elements.\n\nFeatures of the Weather API\n---------------------------\n\nWeather API data includes the following:\n\n- **Weather conditions and icons:** A description and corresponding icon indicating the current weather conditions (for example, \"Cloudy\" or \"Scattered snow showers\").\n- **Temperature:** Minimum, maximum, and apparent (\"feels like\") temperatures.\n- **Precipitation:** Total precipitation and precipitation type (snow, rain, ice, mix).\n- **Wind:** Average windchill, wind direction, maximum speed, and gust.\n- **Ice thickness:** Thickness of ice.\n- **Humidity:** Dew point, heat index, wet-bulb temperature, and relative humidity.\n- **UV index:** Ultraviolet (UV) index.\n- **Thunderstorm probability:** The percent chance of a thunderstorm occurring.\n- **Visibility:** The distance at which an object is clearly visible.\n- **Air pressure:** The average sea level air pressure.\n- **Sun and moon events:** Sunrise, sunset, moonrise, and moonset times.\n- **Cloud cover:** The percentage of the sky covered by clouds.\n\nHow to use the Weather API\n--------------------------\n\n|---|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Get set up** | Start with [Set up your Google Cloud project](/maps/documentation/weather/cloud-setup) and complete the instructions that follow. |\n| 2 | **Get current conditions** | See [Get current conditions](/maps/documentation/weather/current-conditions). |\n| 3 | **Get hourly forecast** | See [Get hourly forecast](/maps/documentation/weather/hourly-forecast). |\n| 4 | **Get daily forecast** | See [Get daily forecast](/maps/documentation/weather/daily-forecast). |\n| 5 | **Get hourly history** | See [Get hourly history](/maps/documentation/weather/hourly-history). |\n\nWhat's next\n-----------\n\n- [Set up your Google Cloud project](/maps/documentation/weather/cloud-setup)\n- [Get current conditions](/maps/documentation/weather/current-conditions)\n- [Get hourly forecast](/maps/documentation/weather/hourly-forecast)\n- [Get daily forecast](/maps/documentation/weather/daily-forecast)\n- [Get hourly history](/maps/documentation/weather/hourly-history)"]]