Skip to main content
Both endpoints are completely free and require no API key or account registration.
Sky AI Forecast calls two Open-Meteo endpoints. First, the geocoding endpoint resolves a city name to coordinates. Those coordinates are then passed to the forecast endpoint to retrieve weather data.

Geocoding endpoint

Converts a city name into geographic coordinates plus display metadata.

Parameters

string
required
City name to search for (e.g. London, Tokyo, New York).
integer
default:"1"
Maximum number of results to return. Sky AI Forecast always passes count=1 to take the single best match.

Example request

Example response

Response fields used by the app

The app reads results[0] and extracts the following fields:
object[]
Array of matching locations. The app always reads index 0.

Forecast endpoint

Returns current conditions, hourly data, and a 16-day daily outlook for a given location.

Full URL built by the app

Parameters

number
required
Latitude of the location, taken from the geocoding result.
number
required
Longitude of the location, taken from the geocoding result.
string
required
Comma-separated list of current-condition variables to include. The app requests: temperature_2m, relative_humidity_2m, weather_code.
string
required
Comma-separated list of hourly variables to include. The app requests: temperature_2m, weather_code.
string
required
Comma-separated list of daily aggregate variables to include. The app requests: temperature_2m_max, temperature_2m_min, weather_code.
integer
default:"16"
Number of days of forecast data to return. Fixed at 16.
string
default:"auto"
Timezone for time values. Set to auto so Open-Meteo infers the local timezone from the coordinates.

Response fields used by the app

object
Current weather conditions at the time of the request.
object
Hourly data arrays. Each array is ordered chronologically and shares the same index with hourly.time.
object
Daily aggregate arrays. Each array is ordered by date and shares the same index with daily.time.