Skip to main content
POST

Request Parameters

Body

Array<object>
required
The dataset to make predictions on. This is an array of objects with keys date and value. See example below for more information.
The date parameter must be in YYYY-MM-DD format (e.g., “2023-01-01”).
  • Minimum: 5 data points
  • Maximum: 1000 data points
Note: The larger the dataset provided, the more accurate the predictions become. For best results, provide at least 20-30 data points with consistent intervals.
number
default:"5"
The number of predictions to make. - Minimum: 1 - Maximum: 500

Sample Dataset

A dataset must be an array of object containing keys date and value.
string
required
Your JigsawStack API key

Response Structure

boolean
Indicates whether the call was successful.
object
Usage information for the API call.
string
A unique identifier for the request
Array<object>
Array of predicted data points with the same structure as the input dataset.
number
The number of prediction steps.