Weather

Weather Endpoint

This endpoint gets the weather data of a specific location that is provided. Useful for fetching advanced pieces of data information.

Endpoint

  • URL: https://api.erensko.xyz/v1/weather

  • Method: GET

  • Description: Gets a location's current weather information.

URL Parameters

Key
Value

location

The location to get the current weather of.

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example

GET https://api.erensko.xyz/v1/weather?location=ljubljana

Response Example

{
  "locationData": {
    "name": "Ljubljana",
    "region": "Bohinj",
    "country": "Slovenia",
    "lat": 46.0553,
    "lon": 14.5144,
    "localTimeUnix": 1729417228,
    "localTime": "2024-10-20 11:40"
  },
  "weatherData": {
    "lastUpdatedUnix": 1729416600,
    "lastUpdatedLocal": "2024-10-20 11:30",
    "tempC": 13,
    "tempF": 55.4,
    "windMph": 2.2,
    "windKph": 3.6,
    "windDegree": 92,
    "pressureMb": 1028,
    "pressureIn": 30.36,
    "precipMm": 0,
    "precipIn": 0,
    "humidity": 77,
    "feelslikeC": 13.6,
    "feelslikeF": 56.4,
    "visKm": 10,
    "visMiles": 6,
    "uv": 1.7,
    "gustMph": 2.3,
    "gustKph": 3.7
  }
}

Last updated