Skip to main content
POST
Forecast one or many series

Authorizations

Authorization
string
header
required

Your API key, sent as 'Authorization: Bearer '.

Body

application/json
rows
Rows · object[]
required

The history: one row per series and step, with the target and any other inputs.

time_column
string
required

The date or time of each step.

Example:

"date"

target
string
required

The column to forecast.

Example:

"units"

horizon
integer
required

The number of steps to forecast.

Required range: x >= 1
Example:

28

series_column

The column, or the columns, that identify a series (store and item). Leave out for one series.

Example:
frequency
string | null

The step: H, D, W, M, Q, Y, or a multiple such as 15min. Default: inferred from the history.

column_types
Column Types · object

Override the inferred type of a column: number, category, date, text, image, audio or document (a link to a file), embedding (a list of numbers), id (never read) or ignore.

Example:
future_rows
Future Rows · object[]

Inputs known in advance (price, promotion, holiday): one row per series and future step, without the target. A column here is read as known in advance.

target_range
Target Range · object | null

Regression: outputs are clipped to [low, high] (a share between 0 and 1, a price that cannot be negative: [0, null]). null = no bound on that side.

as_of
string | null

Forecast from this date: the history after it is not read. Default: the last step of each series.

outputs
string[] | null

classification: label, probabilities. regression: mean, median, quantiles, interval. Default: all of them.

quantiles
number[]

Regression: the levels (between 0 and 1) of the quantiles returned.

coverage
number
default:0.8

Regression: the share of the predicted distribution the interval holds.

explain
boolean
default:false

Add to each prediction the contribution of each input to it. See Explanations.

explain_top
integer
default:10

The number of largest contributions returned per prediction.

Required range: 1 <= x <= 100
explain_class
string | null

Classification: the class whose probability is explained. Default: the predicted label.

Response

Successful Response

predictions
Predictions · object[]
required

One object per series and future step: series, time, step, and the outputs asked for.

report
Report · object
required