WeatherAPI · Example Payload

Weatherapi Marine Weather Response Example

WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIs

Weatherapi Marine Weather Response Example is an example object payload from WeatherAPI, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

locationforecast

Example Payload

Raw ↑
{
  "location": {
    "name": "London",
    "region": "City of London, Greater London",
    "country": "United Kingdom",
    "lat": 51.5074,
    "lon": -0.1278,
    "tz_id": "Europe/London",
    "localtime_epoch": 1748441400,
    "localtime": "2026-05-28 15:30"
  },
  "forecast": {
    "forecastday": [
      {
        "date": "2026-05-28",
        "date_epoch": 1748441400,
        "day": {
          "maxtemp_c": 18.5,
          "maxtemp_f": 65.3,
          "mintemp_c": 18.5,
          "mintemp_f": 65.3,
          "avgtemp_c": 18.5,
          "avgtemp_f": 65.3,
          "maxwind_mph": 12.4,
          "maxwind_kph": 12.4,
          "totalprecip_mm": 0.5,
          "totalprecip_in": 0.5,
          "totalsnow_cm": 1.0,
          "avgvis_km": 10.0,
          "avgvis_miles": 10.0,
          "avghumidity": 65,
          "daily_will_it_rain": 1,
          "daily_chance_of_rain": 1,
          "daily_will_it_snow": 1,
          "daily_chance_of_snow": 1,
          "condition": {},
          "uv": 4.0,
          "air_quality": {}
        },
        "astro": {
          "sunrise": "05:30 AM",
          "sunset": "08:45 PM",
          "moonrise": "10:15 PM",
          "moonset": "06:42 AM",
          "moon_phase": "Waxing Crescent",
          "moon_illumination": 35.0,
          "is_moon_up": 1,
          "is_sun_up": 1
        },
        "tides": [
          {
            "tide": []
          }
        ],
        "hour": [
          {}
        ]
      }
    ]
  }
}