Point Forecasts

Location info

Location metadata.

get/api/v1/location/{location}

Request

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

Path parameters

locationstring required

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

Query parameters

langstring

Language (ISO 639-1 codes). Options: de, en, es, fr, it, pl, ru, fi, sv, nl, ko, pt, th, tr, zh, zh_TW (Chinese in Taiwan), zh_CN (Chinese in China). (default en)

Response

Success

idnumber

Identifier to be used with weather queries

namestring

Location name e.g. London

countrystring

Location country name e.g. United Kingdom

timezonestring
languagestring

Language of location name result

adminAreastring

Administrative region name (high level, e.g. state)

adminArea2string nullable

Administrative region name (medium level, e.g. county)

adminArea3string nullable

Administrative region name (low level, e.g. municipality)

lonnumber

Location longitude

latnumber

Location latitude

Example response

{
  "id": 100184745,
  "name": "Nairobi",
  "country": "Kenia",
  "timezone": "Africa/Nairobi",
  "language": "fi",
  "adminArea": "Nairobi",
  "lon": 36.8167,
  "lat": -1.2833
}

Changes

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