WeatherKit REST historical weather alerts

Is it possible to retrieve historical weather alerts via the REST API?

For example, the following URLs return the same results despite different values for hourlyStart and currentAsOf:

Results:

{'weatherAlerts': {'name': 'WeatherAlertCollection',
  'metadata': {'attributionURL': 'https://weatherkit.apple.com/legal-attribution.html',
   'expireTime': '2023-01-26T23:54:24Z',
   'language': 'en-US',
   'latitude': 43.587,
   'longitude': 13.525,
   'providerName': 'Italian Air Force National Meteorological Service',
   'readTime': '2023-01-26T23:49:24Z',
   'reportedTime': '2023-01-26T23:49:24Z',
   'version': 1},
  'detailsUrl': 'https://weatherkit.apple.com/alertDetails/index.html?ids=9d853cc3-0db2-5561-99ba-e6fbd2ac4b28&lang=en-US&timezone=UTC',
  'alerts': [{'name': 'WeatherAlertSummary',
    'id': '9d853cc3-0db2-5561-99ba-e6fbd2ac4b28',
    'areaId': 'IT011',
    'areaName': 'Marche',
    'attributionURL': 'https://meteoalarm.org',
    'countryCode': 'IT',
    'description': 'Moderate Snow or Ice Warning',
    'effectiveTime': '2023-01-26T23:00:00Z',
    'expireTime': '2023-01-27T22:59:00Z',
    'issuedTime': '2023-01-25T09:54:34Z',
    'eventOnsetTime': '2023-01-26T23:00:00Z',
    'detailsUrl': 'https://weatherkit.apple.com/alertDetails/index.html?ids=9d853cc3-0db2-5561-99ba-e6fbd2ac4b28&lang=en-US&timezone=UTC',
    'phenomenon': 'Ice',
    'precedence': 0,
    'severity': 'moderate',
    'source': 'Italian Air Force National Meteorological Service',
    'eventSource': 'EUMETNET',
    'urgency': 'future',
    'certainty': 'likely',
    'importance': 'normal',
    'responses': ['monitor']}]}}
Answered by in 743257022

WeatherKit does not provide historical weather alerts after the alerts have expired or been cancelled by the issuer.

The hourlyStart and currentAsOf control the timing of the hourly and current conditions respectively and do not have any effect on the weather alerts returned.

Accepted Answer

WeatherKit does not provide historical weather alerts after the alerts have expired or been cancelled by the issuer.

The hourlyStart and currentAsOf control the timing of the hourly and current conditions respectively and do not have any effect on the weather alerts returned.

WeatherKit REST historical weather alerts
 
 
Q