Weather API の概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Weather API を使用すると、世界中の場所のリアルタイムのハイパーローカルな天気データをリクエストできます。天気情報には、気温、降水量、湿度などが含まれます。
特定の緯度と経度の位置について、この API は次のクエリを実行できるエンドポイントを提供します。
- 現在の天気: 現在の天気。
- 1 時間ごとの天気予報: すべての要素について、最大 240 時間の予測条件。
- 日次の予測: すべての要素について、最大 10 日間の予測条件。
- 1 時間ごとの履歴: すべての要素について、過去の状況を最大 24 時間キャッシュに保存します。
Weather API の機能
Weather API のデータには次のものが含まれます。
- 天気とアイコン: 現在の天気を示す説明と対応するアイコン(「曇り」、「雪がちらつく」など)。
- 気温: 最低気温、最高気温、体感気温。
- 降水量: 降水量の合計と降水の種類(雪、雨、氷、みぞれ)。
- 風: 平均体感温度、風向、最大風速、突風。
- 氷の厚さ: 氷の厚さ。
- 湿度: 露点、暑さ指数、湿球温度、相対湿度。
- UV 指数: 紫外線(UV)指数。
- 雷雨の可能性: 雷雨が発生する可能性(パーセント)。
- 視程: 物体がはっきりと見える距離。
- 気圧: 海面気圧の平均値。
- 太陽と月のイベント: 日の出、日の入り、月の出、月の入りの時刻。
- 雲量: 空が雲で覆われている割合。
天気予報 API の使用方法
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[null,null,["最終更新日 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)"]]