API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
Access dataset files directly from scripts, code, or AI agents.
Dataset Files
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
/fivethirtyeight/forecast-methodology/
https://datahub.io/fivethirtyeight/forecast-methodology/_r/-/README.md
https://datahub.io/fivethirtyeight/forecast-methodology/_r/-/data/historical-senate-predictions.csv
https://datahub.io/fivethirtyeight/forecast-methodology/_r/-/datapackage.json
Key Files
Start with these files — they give you everything you need to understand and access the dataset.
datapackage.json— metadata & schema
https://datahub.io/fivethirtyeight/forecast-methodology/_r/-/datapackage.json
README.md— documentation
https://datahub.io/fivethirtyeight/forecast-methodology/_r/-/README.md
Typical Usage
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Previews
historical-senate-predictions
Loading data...
Schema
| name | type | format |
|---|---|---|
| state | string | default |
| year | integer | default |
| candidate | string | default |
| forecast_prob | number | default |
| result | string | default |
| winflag | integer | default |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
historical-senate-predictions | 7.08 kB | about 2 months ago | historical-senate-predictions |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 1 | 7.08 kB | csv | about 2 months ago | FiveThirtyEight - Forecast Methodology |
Historical FiveThirtyEight Senate Forecasts
This folder contains the data behind the story How The FiveThirtyEight Senate Forecast Model Works.
| Header | Definition |
|---|---|
state | Election |
year | Year of election |
candidate | Last name |
forecast_prob | Probability of winning election per FiveThirtyEight Election Day forecast |
result | Win or Loss |
For archived results, see:
- 2008 https://web.archive.org/web/20081106113055/http://www.fivethirtyeight.com/
- 2010 http://elections.nytimes.com/2010/forecasts/senate
- 2012 http://fivethirtyeight.blogs.nytimes.com/fivethirtyeights-2012-forecast/
This dataset was scraped from FiveThirtyEight - forecast-methodology