Weather Now (City-based)

Note: Weather Now (City-based) Web API v7 will be deprecated. Use Current Weather v1 instead.

Get real-time weather data for 500,000+ cities around the world, including temperature, wind, humidity, pressure, precipitation, visibility, etc.

Endpoint#

GET /v7/weather/now

Parameters#

Query parameters

  • location required
    string
    The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example: location=101010100 or location=116.41,39.92
  • 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/v7/weather/now?location=116.41%2C39.92'

Replace your_token and your_api_host with your JWT Authentication and API Host

Try it

Response#

{
  "code": "200",
  "updateTime": "2023-04-12T18:27+08:00",
  "fxLink": "https://www.qweather.com/en/weather/beijing-101010100.html",
  "now": {
    "obsTime": "2023-04-12T18:22+08:00",
    "temp": "26",
    "feelsLike": "28",
    "icon": "501",
    "text": "Fog",
    "wind360": "180",
    "windDir": "S",
    "windScale": "1",
    "windSpeed": "5",
    "humidity": "74",
    "precip": "0.0",
    "pressure": "1004",
    "vis": "4",
    "cloud": "91",
    "dew": "23"
  },
  "refer": {
    "sources": [
      "https://developer.qweather.com/attribution.html"
    ],
    "license": [
      "QWeather Developers License"
    ]
  }
}
  • code
    string
  • updateTime
    date-time
  • fxLink
    uri
    Responsive web page of this data, for embedded in website or APP
  • now
    object
    Current weather data
    • obsTime
      date-time
      Observation time
    • temp
      string
      Temperature, default unit: Celsius
    • icon
      string
      Icon code for weather conditions. See also QWeather Icons
    • text
      string
      Weather condition description
    • wind360
      string
      Wind direction in azimuth degree
    • windDir
      string
    • windScale
      string
    • windSpeed
      string
      Wind speed, km/h
    • humidity
      string
      Relative humidity in percent
    • precip
      string
      Precipitation, default unit: millimeters
    • pressure
      string
      Station pressure, default unit: hPa
    • cloud
      string
      Cloud cover in percent
    • dew
      string
      Dew point temperature
    • feelsLike
      string
      Feels like temperature
    • vis
      string
      Visibility, KM
  • refer
    object
    Data sources and licensing information
    • sources
      array
      Data source and other statements, may be null
    • license
      array
      Data license, may be null