Point Forecasts

Observations

Observations from nearby representative weather stations.

get/api/v1/observation/latest/{location}

Request

  • Base URL: https://weatherapi.foreca.net
  • URL: https://weatherapi.foreca.net/api/v1/observation/latest/{location}
  • Auth: HTTP bearer

Path parameters

locationstring required

"Longitude,latitude" or location identifier (id) from the location endpoint

Query parameters

tzstring

Time zone in response (an IANA time zone database name, default is the time zone of the location)

stationsstring

Amount of stations (default 3, maximum 6)

precstring

Precipitation accumulation to include (default 0 for none):

  • 1: the latest available precipitation accumulation values (precipitation)
  • 2: the most recent series of one-hour accumulations, with precipitation type (precip1h array)
tempunitstring

Temperature unit: "C", "F" (default "C")

windunitstring

Wind unit: "MS" (m/s), "KTS" (knots), "KMH" (km/h), or "MPH" (mph) (default m/s)

roundingstring

Rounding of some variables to nearest integer: 0 or 1 (default 1 for no decimals)

Response

Success

Example response

{
  "observations": [
    {
      "distance": "8 km E",
      "elevation": 121,
      "feelsLikeTemp": 3,
      "latitude": 50.09,
      "longitude": 8.79,
      "precipitation": [
        {
          "endtime": "2026-02-20T13:00:00+01:00",
          "period": "3h"
        }
      ],
      "precip1h": [
        {
          "endtime": "2026-02-19T12:00:00+01:00",
          "prectype": "rain"
        }
      ],
      "pressure": 1023.4,
      "relHumidity": 65,
      "snowDepth": 2,
      "station": "OFFENBACH-WETTERPARK",
      "symbol": "d400",
      "temperature": 5,
      "time": "2026-02-20T14:00:00+01:00",
      "visibility": 19720,
      "windDir": 230,
      "windDirString": "SW",
      "windGust": 6,
      "windSpeed": 3
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.