GET api/Weather/current?locationKey={locationKey}&appKey={appKey}&language={language}&deviceId={deviceId}&includeLocInfo={includeLocInfo}
Get weather details by location key. locationKey, appKey and language are mandatory. includeLocInfo and deviceId are optional. ex 1: /api/Weather/current?locationKey,appkey,language,deviceId,includeLocInfo
Request Information
Parameters
Type | Name | Description | Additional information |
---|---|---|---|
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
Detailed documentation of response type CurrentWeatherWithLocationResult
Status Code | Description |
---|---|
200 - OK | Successful. |
500 - InternalServerError |
When Unexpected Error Occurs:
|
400 - BadRequest | When input parameters are invalid |