v2

latestOpenAPI 3.1.02026-08-0176498.0 KB
Point weather

Returns weather data for a single point (geographic name or GPS)

Current weather and forecast for single location

Location specification

The location of the weather data is the only parameter that is required and must be specified. There are two ways to do this:

  1. Specify the GPS coordinates of the location using the parameters lat and lon.
  2. OR specify the name of the place using the parameter place_id. To obtain the place_id for the location you want, please use endpoints /find_places_prefix (search by prefix) or /find_places (search by full name).

Note: For mountains, it is usually better to specify the place_id rather than the lat and lon. When you use place_id, you are guaranteed to receive forecasts for the precise elevation of the peak. When you specify the coordinates, the elevation can be less precise.

Sections

The endpoint can return multiple sections of data. To obtain the best performance, we advise only requesting the sections you actually need. The available sections are as follows:

  • Current weather situation
  • Hourly forecast (for 24/48/96/168 hours, depending on the tier)
  • Daily forecast (for 7/10/30 days, depending on the tier)
  • Minutely precipitation forecast (for 60 minutes in the following hour, only for higher tiers)
  • Weather alerts (only for higher tiers)

By default, only the current and hourly sections are returned. The division into daily parts (morning, afternoon and evening) is only available for the first 7 days of the forecast. For details regarding available parameters, see the parameter description below.

Notes

  • For a detailed description of variables (e.g. icons), please consult ⚠️ <a href="https://www.meteosource.com/documentation#description" target="_blank">description of variables</a> ⚠️ in Documentation or Schema of the response (link next to Example value in the Responses section below).
  • Variables can be instantaneous, averaged, or accumulated over certain time. For example, precipitation forecast provides the precipitation accumulated until the next hour (data with timestamp as 12:00:00 is rain accumulated from 12:00:00 to 13:00:00).
  • Do not make any assumptions about the number and ordering of the variables. New variables and sections may be introduced in the future. Always check the data are present before you try to use them.
  • The response contains an Expires header, which defines the point at which the API response will not change for the same request. We highly recommend using this to avoid unnecessary requests and increase the performance of your app.
  • Meteosource API supports HTTP compression. To enable it, simply add an Accept-Encoding: gzip header to your request.
  • When daylight saving time starts, one hourly record will be missing (typically 2:00:00 AM). When daylight saving time ends, the hourly forecast will contain two records with duplicate times (typically 2:00:00 AM).
  • The detailed description of weather alerts is only available in English. The alert category is translated into selected language.
get/point

Query parameters

place_idstring

Identifier of a place. To obtain the place_id for the location you want, please use endpoints /find_places_prefix (search by prefix) or /find_places (search by full name).

Identifier of a place. To obtain the place_id for the location you want, please use endpoints /find_places_prefix (search by prefix) or /find_places (search by full name).

latstring

Latitude in format 12N, 12.3N, 12.3, or 13S, 13.2S, -13.4

Latitude in format 12N, 12.3N, 12.3, or 13S, 13.2S, -13.4

lonstring

Longitude in format 12E, 12.3E, 12.3, or 13W, 13.2W, -13.4

Longitude in format 12E, 12.3E, 12.3, or 13W, 13.2W, -13.4

sectionsstring

Sections to be included in the response. You can specify more section by separating the values with a comma. The available values are:

  • current: Current weather situation
  • daily: Forecasts for each whole day, without the daily parts
  • daily-parts: Forecasts for each whole day, morning, afternoon and evening
    • Important: forecast for the morning, afternoon and evening is available only for the first 7 days in the forecast
  • hourly: Forecasts with hourly resolution
  • minutely: Precipitation forecast with 1 minute resolution
  • alerts: The weather alerts
  • all: All sections

Sections to be included in the response. You can specify more section by separating the values with a comma. The available values are:

  • current: Current weather situation
  • daily: Forecasts for each whole day, without the daily parts
  • daily-parts: Forecasts for each whole day, morning, afternoon and evening
    • Important: forecast for the morning, afternoon and evening is available only for the first 7 days in the forecast
  • hourly: Forecasts with hourly resolution
  • minutely: Precipitation forecast with 1 minute resolution
  • alerts: The weather alerts
  • all: All sections
timezonestring

Timezone to be used for the date fields. If not specified, local timezone of the forecast location will be used. The format is according to the tzinfo database, so values like Europe/Prague or UTC can be used. Alternatively you may use the value auto in which case the local timezone of the location is used. The full list of valid timezone strings can be found here.

Timezone to be used for the date fields. If not specified, local timezone of the forecast location will be used. The format is according to the tzinfo database, so values like Europe/Prague or UTC can be used. Alternatively you may use the value auto in which case the local timezone of the location is used. The full list of valid timezone strings can be found here.

language'cs' | 'en' | 'de' | 'es' | 'fr' | 'pl' | 'pt'

The language of text summaries and place names (variable names are never translated). Available languages are:

  • en: English
  • es: Spanish
  • fr: French
  • de: German
  • pl: Polish
  • pt: Portuguese
  • cs: Czech
units'auto' | 'metric' | 'us' | 'uk' | 'ca'

Unit system to be used. The available values are:

  • auto: Select the system automatically, based on the forecast location.
  • metric: Metric (SI) units (°C, mm/h, m/s, cm, km, hPa).
  • us: Imperial units (°F, in/h, mph, in, mi, Hg).
  • uk: Same as metric, except that visibility is in miles and wind speeds are in mph.
  • ca: Same as metric, except that wind speeds are in km/h and pressure is in kPa.
keystring

Your unique API key. You can either specify it in this parameter, or set it in X-API-Key header.

Your unique API key. You can either specify it in this parameter, or set it in X-API-Key header.

Response

Successful Response

latstring required

Latitude of the point, always in the format <float><N/S>, for example 23.5S

lonstring required

Longitude of the point, always in the format <float><E/W>, for example 23.5W

elevationinteger required

Elevation above sea level in metres (for units 'metric', 'uk', 'ca') or feet (for units 'us')

timezonestring

Name of the timezone in format like 'Europe/London'. Available only when the place is specified through place ID.

unitsstring required

Unit system (metric, uk, ca or us)

Example response

{
  "minutely": {
    "data": [
      {
        "date": "2022-03-30T18:00:00"
      }
    ]
  },
  "hourly": {
    "data": [
      {
        "date": "2022-03-30T18:00:00"
      }
    ]
  },
  "daily": {
    "data": [
      {
        "astro": {
          "sun": {
            "rise": "2022-03-30T18:00:00",
            "set": "2022-03-30T18:00:00"
          },
          "moon": {
            "rise": "2022-03-30T18:00:00",
            "set": "2022-03-30T18:00:00"
          }
        }
      }
    ]
  }
}
All 7 operations