Use to get a daily detailed weather forecast for the next 1, 5, 10, 15, 25, or 45 days.

The Get Daily Forecast API is an HTTP GET request that returns detailed weather forecast such as temperature and wind by day for the next 1, 5, 10, 15, 25, or 45 days for a given coordinate location. The response includes details such as temperature, wind, precipitation, air quality, and UV index. For more information, see Request daily weather forecast data.

If you are using the Gen1 S0 pricing tier, you can request daily forecast for the next 1, 5, 10, and 15 days. If you are using Gen1 S1 or Gen2 pricing tier, you can also request daily forecast for the next 25 days, and 45 days.

get/weather/forecast/daily/{format}

Path parameters

format'json' required

Desired format of the response. Only json format is supported.

Query parameters

api-versionstring required

The API version to use for this operation.

querynumber[] required

The applicable query specified as a comma separated string composed by latitude followed by longitude e.g. "47.641268,-122.125679".

Weather information is generally available for locations on land, bodies of water surrounded by land, and areas of the ocean that are within approximately 50 nautical miles of a coastline.

unit'imperial' | 'metric'

Specifies to return the data in either metric units or imperial units. Default value is metric.

durationinteger

Specifies for how many days the daily forecast responses are returned. Available values are

  • 1 - Return forecast data for the next day. Returned by default.
  • 5 - Return forecast data for the next 5 days.
  • 10 - Return forecast data for the next 10 days.
  • 25 - Return forecast data for the next 25 days. Only available in S1 SKU.
  • 45 - Return forecast data for the next 45 days. Only available in S1 SKU.
languagestring

Language in which search results should be returned. Should be one of supported IETF language tags, case insensitive. When data in specified language is not available for a specific field, default language is used.

Please refer to Supported Languages for details.

Headers

x-ms-client-idstring

Indicates the account intended for use with the Microsoft Entra ID security model. This unique ID for the Azure Maps account can be obtained from the Azure Maps management plane Account API. For more information on using Microsoft Entra ID security in Azure Maps, see Manage authentication in Azure Maps.

Response

The request has succeeded.

Changes

Changed in 5 of the 10 revisions of this API.134

  • 1.03c076fdd291812See the full diff
    • added the new path request parameter format

      new-request-path-parameter

    • added the new optional header request parameter x-ms-client-id

      new-optional-request-parameter

    • added the new optional query request parameter language

      new-optional-request-parameter

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api operation id GetDailyForecast removed and replaced with Weather_GetDailyForecast

      api-operation-id-removed

    • deleted the query request parameter language

      request-parameter-removed

    • api operation id Weather_GetDailyForecast removed and replaced with GetDailyForecast

      api-operation-id-removed

    • deleted the header request parameter x-ms-client-id

      request-parameter-removed

    • deleted the path request parameter format

      request-parameter-removed

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog