Ringkasan Weather API
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Weather API memungkinkan Anda meminta data cuaca hiperlokal secara real-time untuk lokasi di seluruh dunia. Informasi cuaca mencakup suhu, presipitasi, kelembapan, dan lainnya.
Untuk lokasi pada lintang dan bujur tertentu, API menyediakan endpoint
yang memungkinkan Anda mengkueri:
- Kondisi saat ini: Kondisi cuaca saat ini.
- Prakiraan cuaca per jam: Kondisi cuaca yang diperkirakan hingga 240 jam untuk semua elemen.
- Prakiraan harian: Kondisi yang diperkirakan hingga 10 hari untuk semua elemen.
- Histori per jam: Hingga 24 jam kondisi sebelumnya yang di-cache untuk semua elemen.
Fitur Weather API
Data Weather API mencakup hal berikut:
- Kondisi dan ikon cuaca: Deskripsi dan ikon yang sesuai
yang menunjukkan kondisi cuaca saat ini (misalnya, "Berawan" atau
"Hujan salju ringan").
- Suhu: Suhu minimum, maksimum, dan nyata ("terasa seperti").
- Curah Hujan: Total curah hujan dan jenis curah hujan (salju, hujan,
es, campuran).
- Angin: Angin dingin rata-rata, arah angin, kecepatan maksimum, dan hembusan angin.
- Ketebalan es: Ketebalan es.
- Kelembapan: Titik embun, indeks panas, suhu bohlam basah, dan kelembapan relatif.
- Indeks UV: Indeks ultraviolet (UV).
- Probabilitas badai petir: Peluang terjadinya badai petir dalam persen.
- Visibilitas: Jarak di mana suatu objek terlihat jelas.
- Tekanan udara: Tekanan udara permukaan laut rata-rata.
- Peristiwa matahari dan bulan: Waktu matahari terbit, matahari terbenam, bulan terbit, dan bulan terbenam.
- Tutupan awan: Persentase langit yang tertutup awan.
Cara menggunakan Weather API
Langkah berikutnya
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-29 UTC.
[null,null,["Terakhir diperbarui pada 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)"]]