More Settings

      PWS Recent History - 7 Day - Hourly History - v2

      ObservationsHistoricalGlobalAttribution: Not required

      Overview

      Personal Weather Stations (PWS) Hourly Historical Observations returns the hourly records for each day's observations report.

      HTTP Headers and Data Lifetime — Caching and Expiration

      For details on appropriate header values as well as caching and expiration definitions, see the Weather Company Data API Common Usage Guide.

      Unit of Measure

      The unit of measure for the response. The following values are supported:

      Code Description
      e English units
      m Metric units
      h Hybrid units (UK)

      URL Construction

      Request by PWS Station ID

      Required: stationId, format, units, apiKey

      Optional: numericPrecision

      Aggregate Product Name: v2pwsObsHourly7day
      https://api.weather.com/v2/pws/observations/hourly/7day?stationId=KMAHANOV10&format=json&units=e&apiKey=yourApiKey

      Valid Parameter Definitions

      Parameter Value Description
      numericPrecision decimal Optional parameter. Set to 'decimal' to ensure data is returned in decimal format when needed. Will return integers if this value is not used.

      Data Elements & Definitions

      Field names are sorted alphabetically for presentation. This does not represent the sort order of the API response.

      Field Description Type Range Sample Nulls
      dewptAvg Average dew point of the period integer/decimal -80 to 100 (°F) or -62 to 37 (°C) 43.0 Y
      dewptHigh Maximum dew point of the period integer/decimal -80 to 100 (°F) or -62 to 37 (°C) 43.0 Y
      dewptLow Minimum dew point of the period integer/decimal -80 to 100 (°F) or -62 to 37 (°C) 43.0 Y
      epoch Time in UNIX seconds epoch 1369252800 Y
      heatindexAvg Heat index average of the period integer/decimal 68 Y
      heatindexHigh Heat index high temperature of the period integer/decimal 72 Y
      heatindexLow Heat index low temperature of the period integer/decimal 62 Y
      humidityAvg Average Humidity of the period integer/decimal 32 Y
      humidityHigh Highest Humidity of the period integer/decimal 32 Y
      humidityLow Lowest Humidity of the period integer/decimal 32 Y
      imperial | metric | metric_si | uk_hybrid Object containing fields that use a defined unit of measure. The object label is dependent on the units parameter assigned in the request. "imperial", "metric", "metric_si", "uk_hybrid". object imperial: {.....} N
      lat Latitude of PWS decimal Any valid latitude value. -90 to 90 29.8972 Y
      lon Longitude of PWS decimal Any valid longitude value. -180 to 180 -97.9362 Y
      obsTimeLocal Time observation is valid in local apparent time by timezone ISO YYYY-MM-dd HH:mm:ss 2016-09-27 00:59:39 Y
      obsTimeUtc GMT (UTC) time ISO ISO 8601 - yyyy-MM-dd'T'HH:mm:ssZZ 2016-09-27T06:59:39Z Y
      precipRate Rate of precipitation - instantaneous precipitation rate. How much rain would fall if the precipitation intensity did not change for one hour. integer/decimal 0.0 Y
      precipTotal Accumulated Rain for the day from midnight to present in defined unit of measure. integer/decimal 0.0 Y
      pressureMax Highest Barometric pressure in defined unit of measure of the period. integer/decimal 30.12 Y
      pressureMin Lowest Barometric pressure in defined unit of measure of the period. integer/decimal 0.01 Y
      pressureTrend Pressure tendency over the preceding period. integer/decimal 28.09 Y
      qcStatus Quality control indicator: -1: No quality control check performed. 0: This observation was marked as possibly incorrect by our quality control algorithm. 1: This observation passed quality control checks. integer -1 to 1 1 N
      solarRadiationHigh Highest Solar Radiation of the period integer/decimal 947.0 Y
      stationID ID as registered by wunderground.com string KAZTUCSO539 N
      tempAvg Temperature average of the period integer/decimal 73 Y
      tempHigh High Temperature of the period integer/decimal 87 Y
      tempLow Low Temperature of the period integer/decimal 64 Y
      tz Time zone of PWS string America/Chicago Y
      uvHigh Highest UV Index of the period integer/decimal 2.0 Y
      winddirAvg Wind direction average of the period integer/decimal 170 Y
      windchillAvg Windchill average of the period integer/decimal 32 Y
      windchillHigh High Windchill temperature of the period integer/decimal 45 Y
      windchillLow Low Windchill temperature of the period integer/decimal 35 Y
      windgustAvg Wind gust average of the period integer/decimal 54 Y
      windgustHigh Highest Wind gust of the period integer/decimal 56 Y
      windgustLow Lowest Wind gust of the period integer/decimal 43 Y
      windspeedAvg Wind speed average of the period integer/decimal 3 Y
      windspeedHigh Highest Wind speed of the period integer/decimal 5 Y
      windspeedLow Lowest Wind speed of the period integer/decimal 1 Y

      JSON Sample

      {
        "observations": [
          {
            "stationID": "KNCCARY89",
            "tz": "America/New_York",
            "obsTimeUtc": "2019-01-29T05:59:57Z",
            "obsTimeLocal": "2019-01-29 00:59:57",
            "epoch": 1548741597,
            "lat": 35.80221176,
            "lon": -78.8759613,
            "solarRadiationHigh": 0.0,
            "uvHigh": 0.0,
            "winddirAvg": 135,
            "humidityHigh": 76,
            "humidityLow": 75,
            "humidityAvg": 75,
            "qcStatus": 1,
            "imperial": {
              "tempHigh": 39,
              "tempLow": 39,
              "tempAvg": 39,
              "windspeedHigh": 7,
              "windspeedLow": 0,
              "windspeedAvg": 2,
              "windgustHigh": 7,
              "windgustLow": 3,
              "windgustAvg": 5,
              "dewptHigh": 32.0,
              "dewptLow": 31.0,
              "dewptAvg": 32.0,
              "windchillHigh": 39,
              "windchillLow": 34,
              "windchillAvg": 38,
              "heatindexHigh": 39,
              "heatindexLow": 39,
              "heatindexAvg": 39,
              "pressureMax": 30.01,
              "pressureMin": 29.99,
              "pressureTrend": -0.02,
              "precipRate": 0.0,
              "precipTotal": 0.0
            }
          }
        ]
      }
      Level Access
      Glossary