Quick Start
Create an API key and download Polymarket, Polymarket US, Predict.fun or Chainlink historical data.
PMData delivers historical Polymarket, Polymarket US, Predict.fun and Chainlink data as Parquet files through a simple download API.
1. Create an API key
Open the PMData dashboard and create an API key.
Send the key in the api_key request header. In pandas, pass it through storage_options as shown below.
2. Choose a dataset
| Dataset | Use it for |
|---|---|
| Polymarket | Any Polymarket market recorded from March 15, 2026 |
| Polymarket US | Polymarket US (polymarket.us) markets recorded from September 10, 2026 |
| Predict.fun | Any Predict.fun market recorded from September 10, 2026 |
| Chainlink | Chainlink Streams and 30s/60s TWAP, included in every Plus plan |
3. Download data
Polymarket Day Bundles: UpDown series
import requests
series = "btc-5m" # btc-15m, btc-1h, eth-5m, ...
data_type = "l2" # trades, onchain_fills
date = "2026/08/08"
url = (
f"https://api.pmdata.dev/v1/polymarket/{data_type}/"
f"{date}/{series}.zip"
)
# no_l2_url = f"{url}?outcome=No"
response = requests.get(url, headers={"api_key": "<YOUR_API_KEY>"})
# response.content contains the ZIP file bytesAny Polymarket market
import pandas as pd
date_path = "2026/08/08"
market_slug = "will-jd-vance-win-the-2028-us-presidential-election"
data_type = "l2" # trades, onchain_fills
file_name = f"{market_slug}.parquet"
url = f"https://api.pmdata.dev/v1/polymarket/{data_type}/{date_path}/{file_name}"
# no_l2_url = f"{url}?outcome=No"
df = pd.read_parquet(
url,
storage_options={
"api_key": "<YOUR_API_KEY>",
},
)
print(df.head())Polymarket US
import pandas as pd
market_slug = "aec-nfl-pit-cle-2026-10-01" # Polymarket US market slug
date = "2026/10/01" # UTC date, YYYY/MM/DD
data_type = "l2" # l2, trades
url = (
f"https://api.pmdata.dev/v1/polymarket_us/{data_type}/"
f"{date}/{market_slug}.parquet"
)
df = pd.read_parquet(
url,
storage_options={
"api_key": "<YOUR_API_KEY>",
},
)
print(df.head())Predict.fun
import pandas as pd
market_id = 2397176 # Predict.fun numeric market id
date = "2026/10/01" # UTC date, YYYY/MM/DD
data_type = "l2" # l2, onchain_fills
url = (
f"https://api.pmdata.dev/v1/predict_fun/{data_type}/"
f"{date}/{market_id}.parquet"
)
df = pd.read_parquet(
url,
storage_options={
"api_key": "<YOUR_API_KEY>",
},
)
print(df.head())Chainlink data is included in every Plus plan: Polymarket, Polymarket US or Predict.fun. See Chainlink historical data details for its URL and supported data types.
Next steps
- Read the API Reference for download endpoints, parameters and responses.
- Read the Overview under Historical Data Details to choose the correct dataset.
- Open the Overview under Data Schemas to inspect fields and data types.
- Check Product Updates for collection and schema changes.
