Get Demand Data
Get previously uploaded demand data.
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/authentication
Filters demand after the specified date (exclusive).
Expected format: YYYY-MM-DD
Filters demand on or after the specified date.
Expected format: YYYY-MM-DD.
Example: 2025-01-01
Filters demand before the specified date (exclusive).
Expected format: YYYY-MM-DD.
Filters demand on or before the specified date.
Expected format: YYYY-MM-DD.
Example: 2025-01-07
Limit the number of results.
10Offset the results.
0Successful Response
Validation Error
GET /v1/forecasts/models/{model_id}/demand HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"errors": [
"text"
],
"warnings": [
"text"
],
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"date": "2025-11-29",
"demand": 1
}
]
}OpenAPI Spec
The OpenAPI spec for Forecasts API can be found here.
Guides
Last updated
Was this helpful?