Sample Demand Data

If you don't have your own demand data ready, you can use one of our sample datasets to explore Beam and the Forecasts API. Each dataset contains synthetic daily demand data modelled on realistic industry patterns. Use any dataset with your own location — the industry type matters more than the specific location when getting started.

Available Datasets

PredictHQ supports the following named industries: accommodation, cpg, tourism, marketing, parking, restaurants, retail, and transportation. If your business doesn't fit one of these, use other. See How Industry Affects Results for the full list and guidance on choosing the right industry.

Using the Sample Data

With Beam

Upload the sample data to an existing Beam analysis using the Upload Demand Data endpoint:

import requests

analysis_id = "YOUR_ANALYSIS_ID"
PHQ_API_TOKEN = "YOUR_API_TOKEN"

with open("sample_demand_retail.csv", "rb") as f:
    response = requests.post(
        url=f"https://api.predicthq.com/v1/beam/analyses/{analysis_id}/sink",
        headers={
            "Authorization": f"Bearer {PHQ_API_TOKEN}",
            "Content-Type": "text/csv",
        },
        data=f,
    )

print("Upload successful" if response.status_code == 202 else response.json())

See the Beam Guides for a full walkthrough.

With Forecasts API

Upload the sample data to an existing forecast model using the Upload Demand Data endpoint:

See the Getting Started with Forecasts API guide for a full walkthrough including how to create a model and generate a forecast.

These datasets are provided for testing and exploration purposes only. For production use, replace them with your own demand data.

Last updated

Was this helpful?