---
title: "GET /api/v1/weather/{language}/{latitude}/{longitude}"
framework: WeatherKit REST API
role: symbol
role_heading: Web Service Endpoint
platforms: [weather api 1.0.0+]
path: weatherkitrestapi/get-api-v1-weather-_language_-_latitude_-_longitude_
---

# GET /api/v1/weather/{language}/{latitude}/{longitude}

Obtain weather data for the specified location.

## URL

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

## Path Parameters

language: The language tag to use for localizing responses. latitude: The latitude of the desired location. longitude: The longitude of the desired location.

## Query Parameters

countryCode: The ISO Alpha-2 country code for the requested location. This parameter is necessary for weather alerts. currentAsOf: The time to obtain current conditions. Defaults to now. dailyEnd: The time to end the daily forecast. If this parameter is absent, daily forecasts run for 10 days. dailyStart: The time to start the daily forecast. If this parameter is absent, daily forecasts start on the current day. dataSets: A comma-delimited list of data sets to include in the response. hourlyEnd: The time to end the hourly forecast. If this parameter is absent, hourly forecasts run 24 hours or the length of the daily forecast, whichever is longer. hourlyStart: The time to start the hourly forecast. If this parameter is absent, hourly forecasts start on the current hour. timezone: The name of the timezone to use for rolling up weather forecasts into daily forecasts.

## Response Codes

200 OK: The request is successful. The weather alert is 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.

## See Also

### Obtaining weather information for a location

- [GET /api/v1/availability/{latitude}/{longitude}](weatherkitrestapi/get-api-v1-availability-_latitude_-_longitude_.md)
- [Weather](weatherkitrestapi/weather.md)
- [Latitude](weatherkitrestapi/latitude.md)
- [Longitude](weatherkitrestapi/longitude.md)
- [DataSet](weatherkitrestapi/dataset.md)
