Weather

The API endpoint provides weather information based on the latitude and longitude passed. The weather information is not stored on our server but is fetched in real time from a third-party provider.

Retrieve weather data

get

Returns current and forecasted weather data for a given location

Query parameters
lonnumberRequired

Longitude

latnumberRequired

Latitude

Responses
200

Successful response

application/json
get
/weather/
GET /v1/weather/?lon=1&lat=1 HTTP/1.1
Host: api.marvelly.com.ng
Accept: */*
{
  "lat": 1,
  "lon": 1,
  "timezone": "text",
  "timezone_offset": 1,
  "current": {
    "dt": 1,
    "sunrise": 1,
    "sunset": 1,
    "temp": 1,
    "feels_like": 1,
    "pressure": 1,
    "humidity": 1,
    "dew_point": 1,
    "uvi": 1,
    "clouds": 1,
    "visibility": 1,
    "wind_speed": 1,
    "wind_deg": 1,
    "wind_gust": 1,
    "weather": [
      {
        "id": 1,
        "main": "text",
        "description": "text",
        "icon": "text"
      }
    ],
    "rain": {
      "1h": 1
    }
  },
  "hourly": [
    {
      "dt": 1,
      "temp": 1,
      "feels_like": 1,
      "pressure": 1,
      "humidity": 1,
      "dew_point": 1,
      "uvi": 1,
      "clouds": 1,
      "visibility": 1,
      "wind_speed": 1,
      "wind_deg": 1,
      "wind_gust": 1,
      "weather": [
        {
          "id": 1,
          "main": "text",
          "description": "text",
          "icon": "text"
        }
      ],
      "pop": 1,
      "rain": {
        "1h": 1
      }
    }
  ],
  "daily": [
    {
      "dt": 1,
      "sunrise": 1,
      "sunset": 1,
      "moonrise": 1,
      "moonset": 1,
      "moon_phase": 1,
      "summary": "text",
      "temp": {
        "day": 1,
        "min": 1,
        "max": 1,
        "night": 1,
        "eve": 1,
        "morn": 1
      },
      "feels_like": {
        "day": 1,
        "night": 1,
        "eve": 1,
        "morn": 1
      },
      "pressure": 1,
      "humidity": 1,
      "dew_point": 1,
      "wind_speed": 1,
      "wind_deg": 1,
      "wind_gust": 1,
      "weather": [
        {
          "id": 1,
          "main": "text",
          "description": "text",
          "icon": "text"
        }
      ],
      "clouds": 1,
      "pop": 1,
      "rain": 1,
      "uvi": 1
    }
  ]
}

Last updated

Was this helpful?