Prediction
Forecast a wide range of time series data in seconds with one simple API and no data training.
POST
/
v1
/
ai
/
prediction
Body
dataset
Array<object>
requiredThe dataset to make predictions on. This is an array of object with keys
date
and value
. See example below for more information.
steps
number
default: "5"The number of predictions to make.
Sample Dataset
A dateset must be an array of object containing keys
date
andvalue
.
type Dataset = {
date: string,
value: number | string,
};
const dataset: Array<Dataset> = [
{
date: "2023-10-10",
value: 10,
},
{
date: "2023-09-10",
value: 5,
},
];
Header
x-api-key
string
requiredYour JigsawStack API key
Response
success
boolean
Indicates whether the call was successful.
prediction
array
Result of predictions made
Was this page helpful?