In this article
Get Observation/Archive
The observations/archive endpoint provides access to a full day of observations from our archive based on your subscription level. A day of archived observation is based on midnight – 11:59:59pm local time of the observations station.
URL
https://{{HOST}}/weather/aerisweather/observations/archive/{id}
Method
GET
Required IMS Scopes
- weatherapi_all
URL Path Parameters
| Name | Description | Example | Type |
|---|---|---|---|
| id required |
The ID can be a zip code, place name, comma-separated pair of coordinates, and so on. | observations/archive/53202 | string |
Request Header Parameters
| Type | Value | Description |
|---|---|---|
| Authorization | Bearer {access_token} required |
IMS access token |
Example
Request
curl -X GET
'https://{{HOST}}/weather/aerisweather/observations/archive/53202'
-H 'Authorization: Bearer {{access_token}}'
Response
{
"success": true,
"error": null,
"response": {
"id": "KMKE",
"loc": {
"long": -87.9,
"lat": 42.95
},
"place": {
"name": "milwaukee",
"state": "wi",
"country": "us"
},
"periods": [
{
"ob": {
"timestamp": 1495691520,
"dateTimeISO": "2017-05-25T00:52:00-05:00",
"tempC": 12.8,
"tempF": 55,
"dewpointC": 10.6,
"dewpointF": 51,
"humidity": 87,
"pressureMB": 1002,
"pressureIN": 29.59,
"spressureMB": 978,
"spressureIN": 28.88,
"altimeterMB": 1002,
"altimeterIN": 29.59,
"windKTS": 11,
"windKPH": 20,
"windMPH": 13,
"windSpeedKTS": 11,
"windSpeedKPH": 20,
"windSpeedMPH": 13,
"windDirDEG": 10,
"windDir": "N",
"windGustKTS": null,
"windGustKPH": null,
"windGustMPH": null,
"flightRule": "LIFR",
"visibilityKM": 16.09344,
"visibilityMI": 10,
"weather": "Cloudy",
"weatherShort": "Cloudy",
"weatherCoded": "::OV",
"weatherPrimary": "Cloudy",
"weatherPrimaryCoded": "::OV",
"cloudsCoded": "OV",
"icon": "cloudyn.png",
"heatindexC": 13,
"heatindexF": 55,
"windchillC": 13,
"windchillF": 55,
"feelslikeC": 13,
"feelslikeF": 55,
"isDay": false,
"sunrise": 1495707519,
"sunriseISO": "2017-05-25T05:18:39-05:00",
"sunset": 1495761520,
"sunsetISO": "2017-05-25T20:18:40-05:00",
"snowDepthCM": null,
"snowDepthIN": null,
"precipMM": 0,
"precipIN": 0,
"solradWM2": 0,
"solradMethod": "estimated",
"ceilingFT": 3700,
"ceilingM": 1127.76,
"light": 0,
"QC": "O",
"QCcode": 10,
"tempMax6hrC": 14.4,
"tempMax6hrF": 58,
"tempMin6hrC": 12.2,
"tempMin6hrF": 54,
"sky": 100
},
"raw": "KMKE 250552Z 01011KT 10SM FEW025 BKN037 OVC047 13/11 A2959 RMK AO2 SLP022 T01280106 10144 20122 401500083 56002"
},
...
{
"ob": {
"timestamp": 1495695120,
"dateTimeISO": "2017-05-25T01:52:00-05:00",
"tempC": 12.8,
"tempF": 55,
"dewpointC": 10.6,
"dewpointF": 51,
"humidity": 87,
"pressureMB": 1002,
"pressureIN": 29.59,
"spressureMB": 978,
"spressureIN": 28.88,
"altimeterMB": 1002,
"altimeterIN": 29.59,
"windKTS": 15,
"windKPH": 28,
"windMPH": 17,
"windSpeedKTS": 15,
"windSpeedKPH": 28,
"windSpeedMPH": 17,
"windDirDEG": 360,
"windDir": "N",
"windGustKTS": 21,
"windGustKPH": 39,
"windGustMPH": 24,
"flightRule": "LIFR",
"visibilityKM": 16.09344,
"visibilityMI": 10,
"weather": "Cloudy",
"weatherShort": "Cloudy",
"weatherCoded": "::OV",
"weatherPrimary": "Cloudy",
"weatherPrimaryCoded": "::OV",
"cloudsCoded": "OV",
"icon": "cloudyn.png",
"heatindexC": 13,
"heatindexF": 55,
"windchillC": 13,
"windchillF": 55,
"feelslikeC": 13,
"feelslikeF": 55,
"isDay": false,
"sunrise": 1495707519,
"sunriseISO": "2017-05-25T05:18:39-05:00",
"sunset": 1495761520,
"sunsetISO": "2017-05-25T20:18:40-05:00",
"snowDepthCM": null,
"snowDepthIN": null,
"precipMM": 0,
"precipIN": 0,
"solradWM2": 0,
"solradMethod": "estimated",
"ceilingFT": 4200,
"ceilingM": 1280.16,
"light": 0,
"QC": "O",
"QCcode": 10,
"windGustSpeedKTS": 21,
"windGustSpeedKPH": 39,
"windGustSpeedMPH": 24,
"sky": 100
},
"raw": "KMKE 250652Z 36015G21KT 10SM FEW015 BKN042 OVC048 13/11 A2959 RMK AO2 SLP020 T01280106"
}
],
"profile": {
"tz": "America/Chicago"
}
}
}