GET api/weather/forecasts/{intervelspec}/{units}?locationKey={locationKey}&appKey={appKey}&language={language}&deviceId={deviceId}&includeLocInfo={includeLocInfo}
Get weather details by location key. locationKey,intervelspec,units,appKey and language are mandatory. includeLocInfo and deviceId are optional. ex 1: /api/weather/forecasts/intervelspec/units?locationKey,appkey,language,deviceId,includeLocInfo ex 2: /api/weather/forecasts/hourly/2?locationKey,appkey,language,deviceId,includeLocInfo ex 3: /api/weather/forecasts/daily/2?locationKey,appkey,language,deviceId,includeLocInfo
Request Information
Parameters
| Type | Name | Description | Additional information |
|---|---|---|---|
| string | intervelspec | intervelspec is mandatory, it's value can be either hourly or daily |
Define this parameter in the request URI. |
| string | units | No of hours or days(mandatory) |
Define this parameter in the request URI. |
| string | locationKey | The locationKey is mandatory |
Define this parameter in the request URI. |
| string | appKey | The appKey is mandatory |
Define this parameter in the request URI. |
| string | language | The response language (mandatory). |
Define this parameter in the request URI. |
| string | deviceId | The deviceId is an optional parameter |
Define this parameter in the request URI. |
| boolean | includeLocInfo | The response should include Location Info.Optional parameter |
Define this parameter in the request URI. |
Response Information
| Status Code | Description |
|---|---|
| 200 - OK | Successful. |
| 500 - InternalServerError |
When Unexpected Error Occurs:
|
| 400 - BadRequest | When input parameters are invalid |