סקירה כללית על Weather API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ה-API של מזג האוויר מאפשר לכם לבקש נתוני מזג אוויר בזמן אמת ברמת מיקום ספציפית, עבור מיקומים ברחבי העולם. המידע על מזג האוויר כולל טמפרטורה,
משקעים, לחות ועוד.
למיקום בקו רוחב ובקו אורך נתונים, ה-API מספק נקודות קצה שאפשר לשלוח אליהן שאילתות כדי לקבל:
- התנאים הנוכחיים: תנאי מזג האוויר הנוכחיים.
- תחזית לפי שעה: עד 240 שעות של תנאים חזויים לכל הרכיבים.
- תחזית יומית: עד 10 ימים של תחזית תנאים לכל הרכיבים.
- היסטוריה לפי שעה: עד 24 שעות של תנאים קודמים במטמון לכל הרכיבים.
תכונות של Weather API
הנתונים ב-Weather API כוללים את הפרטים הבאים:
- תנאי מזג האוויר וסמלים: תיאור וסמל תואם שמציינים את תנאי מזג האוויר הנוכחיים (לדוגמה, 'מעונן' או 'ממטרים קלים של שלג').
- טמפרטורה: טמפרטורות מינימליות, מקסימליות וטמפרטורות מורגשות.
- משקעים: סך המשקעים וסוג המשקעים (שלג, גשם, קרח, תערובת).
- רוח: טמפרטורת צינון ממוצעת, כיוון הרוח, מהירות מקסימלית ומשבי רוח.
- Ice thickness (עובי הקרח): עובי הקרח.
- לחות: נקודת הטל, מדד החום, טמפרטורת התרמומטר הרטוב והלחות היחסית.
- מדד קרינת UV: מדד של קרינת אולטרה סגול (UV).
- הסיכוי לסופת רעמים: הסיכוי באחוזים לסופת רעמים.
- ראות: המרחק שבו אובייקט נראה בבירור.
- לחץ אוויר: לחץ האוויר הממוצע בגובה פני הים.
- אירועים שקשורים לשמש ולירח: זמני הזריחה, השקיעה, עליית הירח ושקיעת הירח.
- כיסוי עננים: אחוז השמיים שמכוסה בעננים.
איך משתמשים ב-Weather API
המאמרים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-27 (שעון 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)"]]