Weather API
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
واجهة برمجة التطبيقات weather.googleapis.com
الخدمة: weather.googleapis.com
للاتّصال بهذه الخدمة، ننصحك باستخدام مكتبات العملاء التي تقدّمها Google. إذا كان تطبيقك بحاجة إلى استخدام مكتباتك الخاصة للاتصال بهذه الخدمة، استخدِم المعلومات التالية عند إجراء طلبات واجهة برمجة التطبيقات.
المستند المرتبط بميزة "اقتراحات"
مستند الاكتشاف هو مواصفة قابلة للقراءة آليًا لوصف واجهات برمجة التطبيقات REST واستخدامها. ويتم استخدامه لإنشاء مكتبات العملاء ومكونات إضافية لبيئة تطوير البرامج المتكاملة وأدوات أخرى تتفاعل مع واجهات برمجة تطبيقات Google. قد توفّر خدمة واحدة عدّة مستندات اكتشاف. توفّر هذه الخدمة مستند الاكتشاف التالي:
نقطة نهاية الخدمة
نقطة نهاية الخدمة هي عنوان URL أساسي يحدِّد عنوان الشبكة لخدمة واجهة برمجة التطبيقات. قد تتضمّن خدمة واحدة عدة نقاط نهاية للخدمات. تحتوي هذه الخدمة على نقطة نهاية الخدمة التالية، وترتبط كل معرّفات الموارد المنتظمة (URI) أدناه بنقطة نهاية الخدمة هذه:
https://weather.googleapis.com
الطُرق |
lookup |
GET /v1/currentConditions:lookup
لعرض أحوال الطقس الحالية في موقع جغرافي معيّن. |
الطُرق |
lookup |
GET /v1/forecast/days:lookup
تعرِض هذه الدالة توقّعات يومية لمدة تصل إلى 10 أيام في موقع جغرافي معيّن، بدءًا من اليوم الحالي. |
الطُرق |
lookup |
GET /v1/forecast/hours:lookup
تعرِض هذه السمة توقّعات ساعة بدقيقة في موقع جغرافي معيّن لمدة تصل إلى 240 ساعة، بدءًا من الساعة الحالية. |
الطُرق |
lookup |
GET /v1/history/hours:lookup
تعرِض هذه السمة بيانات الطقس السابقة لمدة تصل إلى 24 ساعة على مدار الساعة في موقع جغرافي معيّن، بدءًا من الساعة الأخيرة. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Weather API\n\nweather.googleapis.com API.\n\n- [REST Resource: v1.currentConditions](#v1.currentConditions)\n- [REST Resource: v1.forecast.days](#v1.forecast.days)\n- [REST Resource: v1.forecast.hours](#v1.forecast.hours)\n- [REST Resource: v1.history.hours](#v1.history.hours)\n\nService: weather.googleapis.com\n-------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://weather.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://weather.googleapis.com`\n\nREST Resource: [v1.currentConditions](/maps/documentation/weather/reference/rest/v1/currentConditions)\n------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/weather/reference/rest/v1/currentConditions/lookup) | `GET /v1/currentConditions:lookup` Returns the current weather conditions at a given location. |\n\nREST Resource: [v1.forecast.days](/maps/documentation/weather/reference/rest/v1/forecast.days)\n----------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/weather/reference/rest/v1/forecast.days/lookup) | `GET /v1/forecast/days:lookup` Returns up to 10 days of daily forecasts at a given location, starting from the current day. |\n\nREST Resource: [v1.forecast.hours](/maps/documentation/weather/reference/rest/v1/forecast.hours)\n------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/weather/reference/rest/v1/forecast.hours/lookup) | `GET /v1/forecast/hours:lookup` Returns up to 240 hours of hourly forecasts at a given location, starting from the current hour. |\n\nREST Resource: [v1.history.hours](/maps/documentation/weather/reference/rest/v1/history.hours)\n----------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|\n| [lookup](/maps/documentation/weather/reference/rest/v1/history.hours/lookup) | `GET /v1/history/hours:lookup` Returns up to 24 hours of hourly historical weather data at a given location, starting from the last hour. |"]]