Weather API
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
API weather.googleapis.com.
خدمات: weather.googleapis.com
برای تماس با این سرویس، توصیه می کنیم از کتابخانه های سرویس گیرنده ارائه شده توسط Google استفاده کنید. اگر برنامه شما نیاز به استفاده از کتابخانه های خود برای فراخوانی این سرویس دارد، هنگام درخواست API از اطلاعات زیر استفاده کنید.
سند کشف
Discovery Document یک ویژگی قابل خواندن توسط ماشین برای توصیف و مصرف API های REST است. از آن برای ساخت کتابخانه های سرویس گیرنده، پلاگین های IDE و سایر ابزارهایی که با Google API در تعامل هستند استفاده می شود. یک سرویس ممکن است چندین سند کشف را ارائه دهد. این سرویس سند کشف زیر را ارائه می دهد:
نقطه پایان خدمات
نقطه پایانی سرویس یک URL پایه است که آدرس شبکه یک سرویس API را مشخص می کند. یک سرویس ممکن است چندین نقطه پایانی سرویس داشته باشد. این سرویس دارای نقطه پایانی سرویس زیر است و همه 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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],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. |"]]