Granularity
Granularity is part of the URL path, not a query parameter:
Read the supported set from the model’s
intervals array in the
timeseries catalog, or from the granularity path parameter’s
enum on the endpoint’s reference page.
1n is a legacy token for a calendar month, carried over from earlier API versions and still used
by a few monthly models (fundraising, for example). Where it appears in a model’s intervals, it
is the correct value to put in the path.Time windows
There are two mutually exclusive ways to select a window:timeframe, or start/end.
If you supply neither, the window is unbounded below and ends at the current time: you get
everything the API retains for that series.
timeframe
A single expressive token. Windows anchored to “now” end at the current time.
Relative windows accept the units
m (minutes), h (hours), d (days), and w (weeks), written
as a count followed by the unit. Tokens are case-insensitive: YTD and 30D work.
In full, timeframe accepts exactly these forms:
A bare number is read as a calendar year when it falls between 1970 and 3000, and as a unix
timestamp otherwise. If you mean a specific instant inside that range, use RFC3339 or
start.start and end
For explicit windows. Each accepts RFC3339, unix seconds, or YYYY-MM-DD. Both are optional: an
omitted start leaves the window unbounded below, and an omitted end defaults to now.
start later than end returns 400.
Windows are half-open:
[start, end). A calendar expansion such as timeframe=2026-07-13 runs
from that midnight up to, but not including, the next, so adjacent windows never double-count a
bucket.bounds
Set bounds=true to return only the first and last point of the resolved window instead of
every point in it. This is the efficient way to compute a change over a period without transferring
the whole series.
Timestamps in the response
Every point begins with a unix timestamp in seconds, in UTC. The values that follow are the metrics inpoint_schema order. See Responses.
Choosing a granularity
Match the window
A year of
5m data is a very large response. Use 1d for long windows and reserve fine
granularities for short ones.Check what exists
Read
intervals from the catalog before hardcoding a granularity, because the supported set
differs per model.acceptFormat=csv or acceptFormat=jsonl to receive
the data as a downloadable file rather than a single JSON document. See
Filtering & pagination.