Current Weather

Returns current weather data for the specified latitude and longitude, with 1-kilometer resolution, global coverage, and minute-level updates.

The response includes weather condition, temperature, feels-like temperature, relative humidity, wind direction and speed, wind gust, precipitation amount, mean sea-level pressure, visibility, dew point, cloud cover, UV index, and more.

Endpoint#

GET /weather/v1/current/{latitude}/{longitude}

Parameters#

Path parameters

  • latitude required
    number
    Latitude of the requested location in decimal degrees
  • longitude required
    number
    Longitude of the requested location in decimal degrees

Query parameters

  • localTime
    boolean

    Whether to return local time for the requested location

    Possible values: false UTC time (default), true location's local time

  • lang
    string
    Language setting. See Language for behavior, configuration, and data availability

Request example#

curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/weather/v1/current/39.92/116.41'

Replace your_token and your_api_host with your JWT Authentication and API Host

Try it

Response#

{
  "metadata": {
    "tag": "03ec2ded05fa80a43df2664dd9e4a8f48f7cc4f97c6a81dfd736ae17098aba14",
    "attributions": [
      "https://developer.qweather.com/attribution.html"
    ]
  },
  "condition": {
    "text": "Few Clouds",
    "code": "102"
  },
  "temperature": {
    "value": 31.71,
    "unit": "°C"
  },
  "feelsLike": {
    "value": 33.64,
    "unit": "°C"
  },
  "humidity": 0.69,
  "wind": {
    "direction": {
      "degree": 226,
      "compass": "sw"
    },
    "speed": {
      "value": 4.74,
      "unit": "m/s"
    },
    "scale": 3
  },
  "windGust": {
    "value": 7.07,
    "unit": "m/s"
  },
  "precipitation": {
    "amount": {
      "value": 0,
      "unit": "mm"
    },
    "intensity": {
      "value": 0,
      "unit": "mm/h"
    },
    "type": "none"
  },
  "pressure": {
    "value": 1001.5,
    "unit": "hPa"
  },
  "visibility": {
    "value": 29020,
    "unit": "m"
  },
  "dewPoint": {
    "value": 25.36,
    "unit": "°C"
  },
  "cloudCover": 0.05,
  "uvIndex": 0
}
  • metadata
    object
    Metadata for this response
    • tag
      string
      Unique data identifier
    • attributions
      array
      Data attribution or statements that must be displayed with the response data
  • condition
    object
    • text
      string
      Localized weather-condition description
    • code
      string
      Weather condition code
  • temperature
    object
    Temperature data
    • value
      number
      Value
    • unit
      string
  • feelsLike
    object
    Feels like temperature
    • value
      number
      Value
    • unit
      string
  • humidity
    number
    Relative humidity. Value range: [0, 1]
  • wind
    object
    Wind object
    • direction
      object
      • degree
        number
        Wind direction in degrees, value range: [0, 365]
      • compass
        string

        Wind direction compass code

        Possibe values: n, nne, ne, ene, e, ese, se, sse, s, ssw, sw, wsw, w, wnw, nw, nnw, none, vrb

    • speed
      object
      Wind speed
      • value
        number
        Value
      • unit
        string
    • scale
      number
  • windGust
    object
    Wind gust speed
    • value
      number
      Value
    • unit
      string
  • precipitation
    object
    Precipitation data
    • amount
      object
      Accumulated precipitation over one hour
      • value
        number
        Value
      • unit
        string
    • intensity
      object
      Precipitation intensity
      • value
        number
        Value
      • unit
        string
    • type
      string

      Precipitation type

      Possible Values: rain, snow, ice, mixed, none, unknown

  • pressure
    object
    Sea-level pressure
    • value
      number
      Value
    • unit
      string
  • visibility
    object
    Visibility
    • value
      number
      Value
    • unit
      string
  • dewPoint
    object
    Dew point temperature
    • value
      number
      Value
    • unit
      string
  • cloudCover
    number
    Cloud cover. Value range: [0, 1]
  • uvIndex
    number
    UV index. Value range: [0, 15]