WeatherKit API: Can't get historical data older than 2021-07-31 10:00:00 +0000

Hi, I switched from the Darksky API to Weatherkit and I'm trying to get historical weatherdata. But when i request data older than 2021-07-31 i always get an response with the date 2021-07-31. While using Darksky this was no problem.

For Example: Request https://weatherkit.apple.com/api/v1/weather/en/50.308/8.690?dataSets=currentWeather&currentAsOf=2020-10-24T14:15:32Z

Response:

{
    "currentWeather": {
        "name": "CurrentWeather",
        "metadata": {
            "attributionURL": "https://weatherkit.apple.com/legal-attribution.html",
            "expireTime": "2023-04-01T08:36:26Z",
            "latitude": 50.308,
            "longitude": 8.690,
            "readTime": "2023-04-01T08:31:26Z",
            "reportedTime": "2023-04-01T08:00:00Z",
            "units": "m",
            "version": 1
        },
        "asOf": "2021-07-31T10:00:00Z",
        "cloudCover": 0.39,
        "cloudCoverLowAltPct": 0.59,
        "cloudCoverMidAltPct": 0.30,
        "cloudCoverHighAltPct": 0.23,
        "conditionCode": "PartlyCloudy",
        "daylight": true,
        "humidity": 0.58,
        "precipitationIntensity": 0.0,
        "pressure": 1010.15,
        "pressureTrend": "steady",
        "temperature": 19.89,
        "temperatureApparent": 19.45,
        "temperatureDewPoint": 11.33,
        "uvIndex": 5,
        "visibility": 24134.00,
        "windDirection": 249,
        "windGust": 30.88,
        "windSpeed": 17.81
    }
} 

Is this a bug? Am I missing something? If this happens on purpose: Why isn't there any hint in the REST API description?

Regards

Josef

Answered by mrshanes in 749380022

I have seen Apple engineers post numerous times on threads about this topic. Each time they state that historical data goes back to Aug 1, 2021 and that's it. It's a joke really. If you truly need historical data (and an actual reliable weather API), you should probably consider something else.

Accepted Answer

I have seen Apple engineers post numerous times on threads about this topic. Each time they state that historical data goes back to Aug 1, 2021 and that's it. It's a joke really. If you truly need historical data (and an actual reliable weather API), you should probably consider something else.

WeatherKit API: Can't get historical data older than 2021-07-31 10:00:00 +0000
 
 
Q