> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# VoteHub Polling API

> US political polling data aggregated from many pollsters: approval, favorability, generic-ballot and race polls with their source links.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/votehub.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=d0f43eea3957b2f349e6d08064842128)

[Web Catalog · Government](https://docs.webrouter.net/data-apis.md?category=government)

No key needed

Endpoints

5

Auth

None

[Vendor docs](https://votehub.com/polls/api/)

## Notes

* Keyless and free; a beta API whose endpoints and coverage are still growing.
* Data is licensed CC BY 4.0: credit VoteHub when you use it, and each poll carries the URL of its original source.
* In the docs sample\_size appears as a string in some responses; parse it before comparing.

## Endpoints

GET

List polls

US political polls (approval, favorability, generic ballot, races) with pollster, dates, sample size, population, source URL and answers.

[Open](#votehub-polls-list)

GET

Get a poll

One poll by id.

[Open](#votehub-polls-get)

GET

List pollsters

Every distinct pollster name in the database.

[Open](#votehub-pollsters-list)

GET

List poll subjects

Subjects with the poll types available for each, i.e. which subject and poll\_type filters combine.

[Open](#votehub-subjects-list)

GET

List poll types

Every distinct poll type, such as approval, favorability and generic-ballot.

[Open](#votehub-poll-types-list)

### List polls

GET

`/polls`

`votehub.polls.list`

US political polls (approval, favorability, generic ballot, races) with pollster, dates, sample size, population, source URL and answers.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`poll_type`</td><td>string</td><td>query</td><td>Exact poll type, e.g. approval, generic-ballot, favorability (see poll\_types.list). Example `approval`</td></tr>

    <tr>
      <td>
        `pollster`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Pollster name, partial match.
      </td>
    </tr>

    <tr><td>`subject`</td><td>string</td><td>query</td><td>Poll subject, e.g. a politician's name; dashes and spaces are interchangeable (see subjects.list). Example `donald-trump`</td></tr>

    <tr>
      <td>
        `from_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Polls ending on or after this date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `to_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Polls ending on or before this date, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `min_sample_size`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum sample size.
      </td>
    </tr>

    <tr><td>`population`</td><td>string</td><td>query</td><td>rv registered voters, lv likely voters, a all adults/voters. Example `rv`</td></tr>
  </tbody>
</table>

[Vendor docs](https://votehub.com/polls/api/)

```python Python theme={null}
router.call_data_api("votehub.polls.list", {'poll_type': 'approval', 'subject': 'donald-trump', 'population': 'rv'})
```

```text MCP theme={null}
call_data_api(endpoint="votehub.polls.list", params={"poll_type": "approval", "subject": "donald-trump", "population": "rv"})
```

> [!NOTE]
>
> * With no filters it returns every poll in the database; filter by poll\_type and subject or dates.

### Get a poll

GET

`/polls/{poll_id}`

`votehub.polls.get`

One poll by id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`poll_id` required</td><td>string</td><td>path</td><td>Poll id from polls.list. Example `appdonips4x59vt9j`</td></tr>
  </tbody>
</table>

[Vendor docs](https://votehub.com/polls/api/)

```python Python theme={null}
router.call_data_api("votehub.polls.get", {'poll_id': 'appdonips4x59vt9j'})
```

```text MCP theme={null}
call_data_api(endpoint="votehub.polls.get", params={"poll_id": "appdonips4x59vt9j"})
```

### List pollsters

GET

`/pollsters`

`votehub.pollsters.list`

Every distinct pollster name in the database.

Input

No inputs.

[Vendor docs](https://votehub.com/polls/api/)

```python Python theme={null}
router.call_data_api("votehub.pollsters.list")
```

```text MCP theme={null}
call_data_api(endpoint="votehub.pollsters.list")
```

### List poll subjects

GET

`/subjects`

`votehub.subjects.list`

Subjects with the poll types available for each, i.e. which subject and poll\_type filters combine.

Input

No inputs.

[Vendor docs](https://votehub.com/polls/api/)

```python Python theme={null}
router.call_data_api("votehub.subjects.list")
```

```text MCP theme={null}
call_data_api(endpoint="votehub.subjects.list")
```

### List poll types

GET

`/poll-types`

`votehub.poll_types.list`

Every distinct poll type, such as approval, favorability and generic-ballot.

Input

No inputs.

[Vendor docs](https://votehub.com/polls/api/)

```python Python theme={null}
router.call_data_api("votehub.poll_types.list")
```

```text MCP theme={null}
call_data_api(endpoint="votehub.poll_types.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.