Data & API
Everything The Margin shows is available as open JSON and CSV — free to use with attribution. No key required.
| Endpoint | What it returns |
|---|---|
| /world | All countries, current poll averages + leaders (JSON) |
| /forecast | United States — full projection payload (JSON) |
| /data/US.csv | United States — recent polls (CSV) |
| /uk | United Kingdom — full projection payload (JSON) |
| /data/GB.csv | United Kingdom — recent polls (CSV) |
| /de | Germany — full projection payload (JSON) |
| /data/DE.csv | Germany — recent polls (CSV) |
| /fr | France — full projection payload (JSON) |
| /data/FR.csv | France — recent polls (CSV) |
| /it | Italy — full projection payload (JSON) |
| /data/IT.csv | Italy — recent polls (CSV) |
| /ca | Canada — full projection payload (JSON) |
| /data/CA.csv | Canada — recent polls (CSV) |
| /au | Australia — full projection payload (JSON) |
| /data/AU.csv | Australia — recent polls (CSV) |
Please cite “The Margin” and link back. Data is refreshed daily.