Contents

GET /api/v1/availability/{latitude}/{longitude}

Determine the data sets available for the specified location.

URL

GET https://weatherkit.apple.com/api/v1/availability/{latitude}/{longitude}

Path Parameters

NameTypeDescription
latitude RequiredLatitude

The latitude of the desired location.

longitude RequiredLongitude

The longitude of the desired location.

Query Parameters

NameTypeDescription
country Requiredstring

The ISO Alpha-2 country code for the requested location. This parameter is necessary for air quality and weather alerts.

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
[DataSet]

The request is successful. The data sets are in the response.

400Bad Request

The server is unable to process the request due to an invalid parameter value.

401Unauthorized

The request isn’t authorized or doesn’t include the correct authentication information.

See Also

Obtaining weather information for a location