Auth
headers: { 'Authorization': 'Replace with your API token' }
Examples
fetch('https://api.gurufocus.com/data/politicians', { method: 'GET', headers: { 'Authorization': 'Replace with your API token' }})
Responses
Successful response. The exact payload fields depend on this endpoint.
Example Body (Field Reference)
No response body is documented for this status.
Introduction
Returns the complete list of politicians available in the GuruFocus politician trading dataset.
Use this endpoint to discover politician IDs before calling /politicians/transactions with an id filter.
Response Notes
Each item in the response represents one politician covered by the dataset.
Typical fields include:
- A stable politician identifier
- Full display name
- Office or position
- District when available
- State
- Party affiliation
Response Reference
| Display Name | Field Name | Type |
|---|---|---|
| ID | id | number |
| Full Name | full_name | string |
| Position | position | string |
| District | district | string |
| State | state | string |
| Party | party | string |
Common Workflow
- Call
/politiciansto browse supported politicians. - Copy the
idfor a specific politician. - Call
/politicians/transactions?id={id}to retrieve that politician's trades.