Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Com a API Weather, é possível solicitar dados meteorológicos hiperlocais em tempo real para locais do mundo todo. As informações incluem temperatura, precipitação, umidade e muito mais.
Para um local em uma determinada latitude e longitude, a API fornece endpoints
que permitem consultar:
Condições atuais:as condições climáticas atuais.
Previsão por hora:até 240 horas de condições previstas para todos os elementos.
Previsão diária:até 10 dias de condições previstas para todos os elementos.
Histórico por hora:até 24 horas de condições anteriores armazenadas em cache para todos os elementos.
Recursos da API Weather
Os dados da API Weather incluem:
Condições climáticas e ícones:uma descrição e um ícone correspondente
indicando as condições climáticas atuais (por exemplo, "Nublado" ou
"Neve esparsa").
Temperatura:mínima, máxima e aparente ("sensação térmica").
Precipitação:precipitação total e tipo de precipitação (neve, chuva, gelo, mistura).
Vento:sensação térmica média, direção do vento, velocidade máxima e rajada.
Espessura do gelo:espessura do gelo.
Umidade:ponto de orvalho, índice de calor, temperatura de bulbo úmido e umidade relativa.
Índice UV:índice ultravioleta (UV).
Probabilidade de tempestade de raios e trovões:a porcentagem de chance de uma tempestade de raios e trovões ocorrer.
Visibilidade:a distância em que um objeto fica claramente visível.
Pressão do ar:a pressão média do ar ao nível do mar.
Eventos do sol e da lua:horários do nascer e do pôr do sol e da lua.
Cobertura de nuvens:a porcentagem do céu coberta por nuvens.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 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)"]]