Normals Stations

Normals Stations

URL Path
https://data.api.xweather.com/normals/stations/
Data Coverage
Continental US, Alaska, Hawaii
Update Interval
N/A
Time Range
N/A

Requests

Every request to the endpoint must include one of the supported actions in the url.

https://data.api.xweather.com/normals/stations/{action}?client_id={client_id}&client_secret={client_secret}&{params}

Supported Actions

The following actions are supported with the /normals/stations endpoint:

ActionDescription
:idType: stringTypically used for passing a geographical location name or identifier such as city name, lat/long, or even US and Canadian postal codes. Learn more.
closestType: stringBased on a location search, the results will be returned in order from closest to farthest. Learn more.
withinType: stringUses a circle or polygon, define an area to search for results. Learn more.
searchType: stringA generalized action that is determined with the endpoints query parameters. Learn more.
routeType: stringAllows you to pass several coordinates along a custom route to return data points at each location. Learn more.

Response

The following is an example of what each object in the response will consist of. Depending on your requested action, the response may contain multiple instances of this object within an array.

Properties

id (string)

The co-op/station ID.

dataSource (string)

The data source of the record.

loc (object)

The location of the record.

loc.long (number)

The place or nearest place to the record.

loc.lat (number)

The latitude coordinate of the record.

place (object)

Object containing information about the place or nearest place to the record.

place.name (string)

The place or nearest place to the record.

place.state (string)

The state abbreviation in which the response is located. This may be null or an empty string depending on the country.

place.country (string)

The 2 letter ISO-3166 country abbreviation in which the response is located.

profile (object)

Object containing information about the location or event.

profile.tz (string)

Timezone name of the location, such as America/New_York.

profile.elevM (number)

The elevation of the location in meters.

profile.elevFT (number)

The elevation of the location in feet.

profile.wmoid (string)

The WMO ID of the location. NULL if not available.

profile.flags (object)

Object containing flags related to the stations data.

profile.flags.temp (boolean)

Flag indicating if the station has temperature normals.

profile.flags.prcp (boolean)

Flag indicating if the station has precipitation normals.

profile.flags.snow (boolean)

Flag indicating if the station has snowfall normals.

relativeTo (object)

Object containing information about the location used for the request compared to the record"s actual location.

relativeTo.lat (number)

Latitude coordinate of the location used for the request. This may be different than the record"s loc.lat value if there was no record exactly at the request location.

relativeTo.long (number)

Longitude coordinate of the location used for the request. This may be different than the record"s loc.long value if there was no record exactly at the request location.

relativeTo.bearing (number)

Bearing in degrees of the record"s location relative to the location used for the request.

relativeTo.bearingENG (string)

Cardinal direction of the record relative to the location used for the request.

relativeTo.distanceKM (number)

Distance, in kilometers, from the requested location to the record"s actual location.

relativeTo.distanceMI (number)

Distance, in miles, from the requested location to the record"s actual location.

[
  {
    "id": "usc00214884",
    "dataSource": "NOAA",
    "loc": {
      "long": -93.2469,
      "lat": 44.9783
    },
    "place": {
      "name": "lower st anthony falls",
      "state": "mn",
      "country": "us"
    },
    "profile": {
      "tz": "America/Chicago",
      "elevM": 70.04,
      "elevFT": 229.8,
      "wmoid": null,
      "flags": {
        "temp": true,
        "prcp": true,
        "snow": false
      }
    },
    "relativeTo": {
      "lat": 44.97997,
      "long": -93.26384,
      "bearing": 98,
      "bearingENG": "E",
      "distanceKM": 1.345,
      "distanceMI": 0.836
    }
  }
]