Get Forecast

Get forecast values for an existing model.

circle-info

Please note that phq_features can only be retrieved if you have also purchased the Features product.

Get Forecast

get
Authorizations
AuthorizationstringRequired

Enter your PredictHQ API key. The Bearer prefix is added automatically.

When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating

Path parameters
model_idstringRequired
Query parameters
date.gtstring · dateOptional

Filters forecast results after the specified date (exclusive).

Expected format: YYYY-MM-DD

date.gtestring · dateOptional

Filters forecast results on or after the specified date.

Expected format: YYYY-MM-DD.

Example: 2025-01-01

date.ltstring · dateOptional

Filters forecast results before the specified date (exclusive).

Expected format: YYYY-MM-DD.

date.ltestring · dateOptional

Filters forecast results on or before the specified date.

Expected format: YYYY-MM-DD.

Example: 2025-01-07

limitintegerOptional

Limit the number of results.

Default: 10
offsetintegerOptional

Offset the results.

Default: 0
Responses
chevron-right
200

Successful Response

application/json
errorsstring[]OptionalDefault: []
warningsstring[]OptionalDefault: []
countintegerRequired
nextany ofOptional
stringOptional
or
nullOptional
previousany ofOptional
stringOptional
or
nullOptional
get
/v1/forecasts/models/{model_id}/forecast

OpenAPI Spec

The OpenAPI spec for Forecasts API can be found herearrow-up-right.

Guides

Last updated

Was this helpful?