> For the complete documentation index, see [llms.txt](https://docs.predicthq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.predicthq.com/getting-started/guides/beam-guides/sample-demand-data.md).

# 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

<table><thead><tr><th width="309.421875">Industry</th><th>File</th></tr></thead><tbody><tr><td>Retail</td><td><a href="https://raw.githubusercontent.com/predicthq/gitbook-tech-docs/main/assets/sample-demand-data/sample_demand_retail.csv"><code>sample_demand_retail.csv</code></a></td></tr><tr><td>Restaurants</td><td><a href="https://raw.githubusercontent.com/predicthq/gitbook-tech-docs/main/assets/sample-demand-data/sample_demand_restaurants.csv"><code>sample_demand_restaurants.csv</code></a></td></tr><tr><td>Accommodation</td><td><a href="https://raw.githubusercontent.com/predicthq/gitbook-tech-docs/main/assets/sample-demand-data/sample_demand_accommodation.csv"><code>sample_demand_accommodation.csv</code></a></td></tr><tr><td>Parking</td><td><a href="https://raw.githubusercontent.com/predicthq/gitbook-tech-docs/main/assets/sample-demand-data/sample_demand_parking.csv"><code>sample_demand_parking.csv</code></a></td></tr><tr><td>Other</td><td><a href="https://raw.githubusercontent.com/predicthq/gitbook-tech-docs/main/assets/sample-demand-data/sample_demand_other.csv"><code>sample_demand_other.csv</code></a></td></tr></tbody></table>

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](/getting-started/guides/how-industry-affects-results.md) 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](/api/beam/analyses/upload-demand-data.md) endpoint:

```python
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](/getting-started/guides/beam-guides.md) for a full walkthrough.

### **With Forecasts API**

Upload the sample data to an existing forecast model using the [Upload Demand Data](/api/forecasts/demand-data/upload-demand-data.md) endpoint:

```python
import requests
import pandas as pd
import json

model_id = "YOUR_MODEL_ID"
PHQ_API_TOKEN = "YOUR_API_TOKEN"

df = pd.read_csv("sample_demand_retail.csv")

response = requests.post(
    url=f"https://api.predicthq.com/v1/forecasts/models/{model_id}/demand",
    headers={
        "Authorization": f"Bearer {PHQ_API_TOKEN}",
        "Content-Type": "application/json",
    },
    json={"demand": json.loads(df.to_json(orient="records"))},
)

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

See the [Getting Started with Forecasts API](/getting-started/guides/forecasts-api-guides/getting-started.md) guide for a full walkthrough including how to create a model and generate a forecast.

{% hint style="info" %}
These datasets are provided for testing and exploration purposes only. For production use, replace them with your own demand data.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.predicthq.com/getting-started/guides/beam-guides/sample-demand-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
