API Access
Access dataset files directly from scripts, code, or AI agents.
Browse dataset files
API Access
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/congress-generic-ballot/
https://datahub.io/fivethirtyeight/congress-generic-ballot/_r/-/README.md
https://datahub.io/fivethirtyeight/congress-generic-ballot/_r/-/data/generic_polllist.csv
https://datahub.io/fivethirtyeight/congress-generic-ballot/_r/-/data/generic_topline.csv
https://datahub.io/fivethirtyeight/congress-generic-ballot/_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/congress-generic-ballot/_r/-/datapackage.json
README.md— documentation
https://datahub.io/fivethirtyeight/congress-generic-ballot/_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 Files
Explore with AIgeneric_polllist
| Field | Type | Format |
|---|---|---|
| subgroup | string | default |
| modeldate | string | default |
| startdate | string | default |
| enddate | string | default |
| pollster | string | default |
| grade | string | default |
| samplesize | integer | default |
| population | string | default |
| weight | number | default |
| influence | integer | default |
| dem | integer | default |
| rep | integer | default |
| adjusted_dem | number | default |
| adjusted_rep | number | default |
| multiversions | string | default |
| tracking | string | default |
| url | string | default |
| poll_id | integer | default |
| question_id | integer | default |
| createddate | string | default |
| timestamp | string | default |
Download
Download CSVAbout
- Last updated
- 12 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 334 kB
generic_topline
| Field | Type | Format |
|---|---|---|
| subgroup | string | default |
| modeldate | string | default |
| dem_estimate | number | default |
| dem_hi | number | default |
| dem_lo | number | default |
| rep_estimate | number | default |
| rep_hi | number | default |
| rep_lo | number | default |
| timestamp | string | default |
Download
Download CSVAbout
- Last updated
- 12 March 2026
- Total rows
- ...
- Format
- CSV
- File size
- 111 kB
About this dataset
Congress Generic Ballot Polls
This file contains links to the data behind Are Democrats Winning The Race For Congress?
This dataset was scraped from FiveThirtyEight - congress-generic-ballot