Request a Forecast
Get a time series forecast from the API using the /forecast endpoint.
POST /forecast
This endpoint allows you to get a time series forecast from the API.
Base URL
Authentication
An API key must be provided in the request headers using the Authorization
header.
Headers
The ID of the model you want to use for the forecast. If not provided, the default model will be used.
Available Models
The API provides four different forecasting models, each optimized for different use cases:
Request Body
The request must be a JSON object with the following structure.
An array containing one or more time series objects. For now, only one is supported.
The number of future periods you want to predict.
The frequency of your input timestamps. Must be one of: “Seconds”, “Minutes”, “Hours”, “Daily”, “Weekly”, “Monthly”, “Quarterly”, “Yearly”.
The desired frequency of the forecast output. Currently, this must match data_frequency.
The desired confidence level for the upper and lower forecast bounds. Must be between 0 and 1 (e.g., 0.95 for 95%).
Example Request
Response
On a successful request, the API will return a 200 OK
status with a JSON object containing the forecast.
The timestamps for the forecasted values.
The lower bound of the forecast confidence interval.
The median forecasted values.
The upper bound of the forecast confidence interval.