GET api/v1/getWeather?pid={pid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pid

integer

Required

Body Parameters

None.

Response Information

Resource Description

WeatherData
NameDescriptionTypeAdditional information
PropertyName

string

None.

CurrentTempCelsius

integer

None.

CurrentTempFahrenheit

integer

None.

MaxTempFahrenheit

integer

None.

MinTempFahrenheit

integer

None.

MaxTempCelsius

integer

None.

MinTempCelsius

integer

None.

WindSpeed

integer

None.

Humidity

integer

None.

Sunrise

string

None.

Sunset

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PropertyName": "sample string 1",
  "CurrentTempCelsius": 2,
  "CurrentTempFahrenheit": 3,
  "MaxTempFahrenheit": 4,
  "MinTempFahrenheit": 5,
  "MaxTempCelsius": 6,
  "MinTempCelsius": 7,
  "WindSpeed": 8,
  "Humidity": 9,
  "Sunrise": "sample string 10",
  "Sunset": "sample string 11"
}

application/xml, text/xml

Sample:
<WeatherData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/thePavak">
  <CurrentTempCelsius>2</CurrentTempCelsius>
  <CurrentTempFahrenheit>3</CurrentTempFahrenheit>
  <Humidity>9</Humidity>
  <MaxTempCelsius>6</MaxTempCelsius>
  <MaxTempFahrenheit>4</MaxTempFahrenheit>
  <MinTempCelsius>7</MinTempCelsius>
  <MinTempFahrenheit>5</MinTempFahrenheit>
  <PropertyName>sample string 1</PropertyName>
  <Sunrise>sample string 10</Sunrise>
  <Sunset>sample string 11</Sunset>
  <Timestamp>2026-02-19T22:42:43.8414393+05:30</Timestamp>
  <WindSpeed>8</WindSpeed>
</WeatherData>