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

TypeNameDescriptionAdditional 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 CodeDescription
200 - OKSuccessful.
500 - InternalServerError When Unexpected Error Occurs:
  • UnknownError
400 - BadRequestWhen input parameters are invalid