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
| Name | Type | Description |
|---|---|---|
latitude Required | Latitude | The latitude of the desired location. |
longitude Required | Longitude | The longitude of the desired location. |
Query Parameters
| Name | Type | Description |
|---|---|---|
country Required | string | The ISO Alpha-2 country code for the requested location. This parameter is necessary for air quality and weather alerts. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | [DataSet] | The request is successful. The data sets are in the response. |
| 400 | Bad Request | The server is unable to process the request due to an invalid parameter value. | |
| 401 | Unauthorized | The request isn’t authorized or doesn’t include the correct authentication information. |