Products

Time series of catalog products at up to 25 locations.

Changed on

Multi-location form of GET /v1/series: the same grammar as JSON fields, with locations[] of {lat, lon, label?} (at most 25) in place of lat and lon, or an area in place of both: the bbox (min_lon, min_lat, max_lon, max_lat) or area.geometry, an inline GeoJSON MultiPolygon (RFC 7946, WGS84; a Polygon is sent as a one-member MultiPolygon) of at most 10,000 vertices, or a path (SeriesPath: a trajectory sampled at each ETA, one element per (select, departure), each with its path echo). Elements (products x locations, or products x departures) are at most 100. Elements come back location-major in request order, each echoing its location's label. Every rule of GET /v1/series applies; points, top-level lat/lon and at are not words of this route, and an unknown field is a 400. A read that failed upstream, or was cut short before it returned any frame, at any location answers 503 service-unavailable with Retry-After, never unavailable.

Experimental (x-stability: experimental), as GET /v1/series.

Caching

Cache-Control: private, no-store.

Auth and cost

Standard sw-api Bearer auth and rate limits apply. Weight 1 (data) per element, or 2 (compute) per element with an operator word (stats, where, windows, sort, an area or a path), whatever each element's status; variables, hours, step, view and limit never change it. A 503 is not billed.

post/v1/series/batch

Request

  • Base URL
    https://api.smarterweather.com
  • Auth
    HTTP bearer

Request body

SeriesBatchRequest required

The GET /v1/series grammar as JSON, with locations[] in place of lat and lon, an area (the bbox, area.geometry, or an area by reference: area.product with area.feature_id, area.feature_ids or area.filter), or a path, in place of both. A sorted read (sort) takes no locations.

locations, SeriesBatchLocation[]
product, string
var, string[]
select, string[]
units, 'si' | 'metric' | 'imperial' required
hours, integer
start, string date-time

RFC 3339. The server also reads a date (from that local calendar day's midnight at each location), as on the GET route.

end, string date-time

RFC 3339, inclusive. The server also reads a date (through that local calendar day's last second at each location), as on the GET route.

at, string
run, string date-time
step, 'PT15M' | 'PT1H' | 'PT3H' | 'PT6H' | 'P1D'

An ISO 8601 duration equal to one of these reads as it (PT24H as P1D, with a note saying so).

stats, string[]
where, string[]
windows, object
min_lon, number
min_lat, number
max_lon, number
max_lat, number
area, object

An inline geometry, or a reference (product with feature_id, feature_ids or filter), not both.

path, SeriesPath

A trajectory (OGC API EDR): geometry (a GeoJSON LineString) or polyline (an encoded polyline, precision 5), timed by departure (default now) at speed, by up to 3 departures (one element per departure), or by per-vertex times (a departure then shifts the schedule). The path is sampled about every 10 km, endpoints included, at most 100 samples, and each sample is read at its ETA from the frame nearest it within half the product's catalog time.max_step (its step when it declares none; 3 hours for the NBM, whose steps widen to 6-hourly); a tie takes the earlier frame. A sample with no frame that near is unavailable while the run goes on (its catalog horizon), beyond_horizon past the run's end. A read reported incomplete for a departure's samples (frames or values it could not load near their ETAs) adds a notes entry to the element and marks the response truncated; the delivered frames still serve (a frame without any selected variable is unavailable). If it served none of the departure's samples, that element is unavailable; only when nothing at all is served does the request answer 503. Limits, as on POST /v1/weather/route: at most 10,000 vertices and 5,000 km, no step of 180 degrees of longitude or more, departures from 1 hour ago to 168 hours ahead and within 24 hours of each other, travel of at most 72 hours. A path takes no locations, bbox or area, and none of hours, start, end, at, run, step, stats, where, windows, limit or cursor (operator_conflict, with a suggested_call that drops them). Products answer along a path only when their catalog query.shapes lists path (else unsupported_word): a grid or snapshot product reads each sample at its ETA; a feature product (product:*) answers crossings, the stretches of the path inside its features in effect when the departure is there (the feature's own window: an alert's onset to its end; a feature that declares no end is unbounded). A timed feature product reads what a departure could meet: the features in effect at some time from the later of the request and the first departure to the last arrival, as known at the request. An alert whose product expires before a next-day departure while its hazard runs on is read; one that had ended by the request is not, even for a departure already under way, and none issued after the request is (POST /v1/weather/route's rule). A forecast frame product reads the frame in effect at that start and the frames after it within the trip. The request's filter applies to the feature products along the path: each expression goes to the selected feature products that declare its property, and every expression must name a filterable property of one of them. A path that crosses more than 500 of a product's features answers 422 too_many_features, and a feature read over its time budget 422 query_too_slow (send a shorter path); features that change while their pages are read answer 409 cursor_stale (retry).

sort, string

As the sort parameter of GET /v1/series.

filter, string[]

Expressions <property> <op> <value> (op one of ==, !=, >, >=, <, <=, in) over the filterable properties of the selected feature products, applied before their crossings are found. Only with path: elsewhere /v1/series reads no feature product, so a filter is unsupported_word with a suggested_call that drops it (GET /v1/features/{product_id} filters features at a point, a bbox or an area). Example, the land alerts a road trip meets: ["marine == false", "event != High Surf Advisory"].

view, 'concise' | 'detailed'
limit, integer
cursor, string

Example request

{
  "locations": [
    {
      "lat": 41.88,
      "lon": -87.63,
      "label": "chicago"
    }
  ],
  "product": "hrrr_surface",
  "var": [
    "temperature_2m"
  ],
  "select": [
    "hrrr_surface:temperature_2m"
  ],
  "stats": [
    "max",
    "min",
    "degree_days:50,86,modified"
  ],
  "where": [
    "wind_speed_10m <= 15"
  ],
  "area": {
    "product": "us_counties",
    "feature_id": "48453"
  },
  "sort": "-temperature_2m"
}

Response

One series element per (location, product).

SeriesResponse required

The GET /v1/series and POST /v1/series/batch envelope.

unresolved, SeriesUnresolved[]

Present, and first, only when some select tokens resolve and others miss by name (unknown_standard_name, ambiguous_select, unknown_product, unknown_variable): the call answers the tokens that resolve and lists each one it answered without, in request order, with the members the miss would have refused with. The same on a location, locations[], a bbox, an area (inline or by reference) and a path. A bare name that resolves in some locations' (or areas') domains and not another's is listed once per domain it missed in, with the locations (or feature_ids) it missed at; only those lack its element, and an area where no token resolves has none. An unresolved token has no element and is never billed. The call is refused as before, with the first miss's 400 or 404, when no token resolves (in any area), or when where names a token it would drop; so is any other error (a word conflict, a bad word, a place outside the 50 US states and DC).

units, 'si' | 'metric' | 'imperial' required

The requested units system.

truncated, boolean required

True when limit cut the series (next_cursor resumes them), or when an element's notes say a result covers part of the window.

next_cursor, string nullable required

Opaque cursor for the next page, null when not truncated.

meta, object required
series, SeriesElement[] required

Example response

{
  "unresolved": [
    {
      "token": "@observed:relative_humidity_2m",
      "reason": "unknown_standard_name"
    }
  ],
  "meta": {
    "sources": [
      {
        "id": "hrrr",
        "attribution": "Data provided by NOAA/NWS",
        "license": "public_domain"
      }
    ]
  },
  "series": [
    {
      "product": "hrrr_surface",
      "timezone": "America/Chicago",
      "utc_offset_seconds": -18000,
      "related": "hrrr_alaska_surface",
      "area": {
        "product": "us_counties",
        "feature_id": "48453"
      },
      "provenance": {
        "sources": [
          {
            "id": "hrrr",
            "attribution": "Data provided by NOAA/NWS",
            "license": "public_domain"
          }
        ]
      },
      "ranking": {
        "key": "temperature_2m",
        "unit": "F",
        "summary": "About 2 in across Del Norte and Humboldt counties, CA, locally up to 3.4 in 5 mi S of Gasquet, CA, through Thu 4 PM PST.",
        "areas": [
          {
            "product": "nws_zones",
            "feature_id": "forecast/ILZ014",
            "name": "Cook",
            "state": "IL",
            "population": 5087072,
            "value": 91.4,
            "upper": 93.1,
            "area_km2": 2448,
            "call": {
              "method": "GET",
              "url": "/v1/series?area[feature_id]=forecast%2FILZ014&area[product]=nws_zones&at=2026-07-14T23%3A00%3A00Z&select=nbm_conus%3Atemperature_2m&stats=mean&units=imperial",
              "query": {
                "area[feature_id]": "forecast/ILZ014",
                "area[product]": "nws_zones",
                "at": "2026-07-14T23:00:00Z",
                "select": "nbm_conus:temperature_2m",
                "stats": "mean",
                "units": "imperial"
              }
            }
          }
        ],
        "hotspots": [
          {
            "rank": 1,
            "blocks": 3,
            "area_km2": 1720,
            "bbox": [
              -112.6,
              33.1,
              -111.7,
              33.7
            ],
            "p90": 103.8,
            "peak": 1,
            "rows": [
              1
            ],
            "call": {
              "method": "GET",
              "url": "/v1/series?at=2026-07-14T23%3A00%3A00Z&max_lat=33.7&max_lon=-111.7&min_lat=33.1&min_lon=-112.6&select=nbm_conus%3Atemperature_2m&sort=-temperature_2m&units=imperial",
              "query": {
                "at": "2026-07-14T23:00:00Z",
                "max_lat": "33.7",
                "max_lon": "-111.7",
                "min_lat": "33.1",
                "min_lon": "-112.6",
                "select": "nbm_conus:temperature_2m",
                "sort": "-temperature_2m",
                "units": "imperial"
              }
            }
          }
        ],
        "rows": [
          {
            "rank": 1,
            "lat": 33.4,
            "lon": -112.1,
            "value": 104.2,
            "valid_time": "2026-07-14T23:00:00Z",
            "valid_time_local": "2026-07-14T16:00:00-07:00",
            "county": "Maricopa",
            "state": "AZ",
            "call": {
              "method": "GET",
              "url": "/v1/series?at=2026-07-14T23%3A00%3A00Z&lat=33.4&lon=-112.1&select=nbm_conus%3Atemperature_2m&units=imperial",
              "query": {
                "at": "2026-07-14T23:00:00Z",
                "lat": "33.4",
                "lon": "-112.1",
                "select": "nbm_conus:temperature_2m",
                "units": "imperial"
              }
            }
          }
        ]
      },
      "meta": {
        "timezone": "America/Chicago"
      }
    }
  ]
}

Changes

    • warning

      added the new unsupported_word enum value to the series/items/reason response property for the response status

    • info

      added the optional property series/items/ranking/areas/items/call to the response with the status

    • info

      added the optional property series/items/ranking/hotspots/items/call to the response with the status

    1 more change in this revision