GET api/weather/{postcode}/{countrycode}

Find the weather based on postcode numbers and country code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
postcode

2313

integer

Required

countrycode

nl

string

Required

Body Parameters

None.

Response Information

Resource Description

Weather
NameDescriptionTypeAdditional information
LastUpdate

date

None.

Temperature

decimal number

None.

Type

WeatherType

None.

Response Formats

application/json, text/json

Sample:
{
  "LastUpdate": "2024-04-26T01:43:46.2057053+02:00",
  "Temperature": 2.1,
  "Type": 0
}

application/xml, text/xml

Sample:
<Weather xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Interpulse.Services.ViewModels.Shared.Models">
  <LastUpdate>2024-04-26T01:43:46.2057053+02:00</LastUpdate>
  <Temperature>2.1</Temperature>
  <Type>Unassigned</Type>
</Weather>