Congressional Stock Trades API
The Politician Trade Tracker™ API gives you access to US congressional stock trade disclosures sourced from official STOCK Act filings. Track what senators and representatives are buying and selling — filter by chamber, party, sector, state, committee, or individual stock ticker.
All data is cached for up to 3 hours for fast response times. Rate limits are enforced at the RapidAPI gateway level.
Congressional Trade API Features
Comprehensive Data
11 endpoints covering profiles, trades, states, committees, and stock issuers.
Exceptionally Fast
3-hour cache TTL ensures fast response times while keeping data fresh.
Secure Access
Authentication handled automatically via RapidAPI credentials.
Developer Friendly
Simple REST API with clear documentation and example responses.
Authentication
No additional authentication is required beyond your RapidAPI credentials, which are passed automatically via RapidAPI headers.
fetch('https://politician-trade-tracker1.p.rapidapi.com/api/trades/latest', {
headers: {
'X-RapidAPI-Key': 'YOUR_API_KEY',
'X-RapidAPI-Host': 'politician-trade-tracker1.p.rapidapi.com'
}
})Your RapidAPI key is sensitive information. Never expose it in client-side code. Always make requests from your server or use environment variables.
Endpoints (11)
Error Responses
All endpoints return a JSON error object when an invalid or unknown parameter is provided:
{ "error": "Politician not found" }Missing required query parameters return HTTP 422 Unprocessable Entity.
Data Source
All trade data is sourced from official US congressional financial disclosures filed under the STOCK Act of 2012, which requires senators and representatives to publicly report their securities transactions.
Responses are cached for 3 hours. After the TTL expires, the next request re-fetches live data.
Code Examples
// Get latest trades
fetch('https://politician-trade-tracker1.p.rapidapi.com/api/trades/latest', {
headers: {
'X-RapidAPI-Key': 'YOUR_API_KEY',
'X-RapidAPI-Host': 'politician-trade-tracker1.p.rapidapi.com'
}
})
.then(response => response.json())
.then(data => console.log(data));
// Get politician profile
fetch('https://politician-trade-tracker1.p.rapidapi.com/api/politicians/profile?name=Nancy%20Pelosi', {
headers: {
'X-RapidAPI-Key': 'YOUR_API_KEY',
'X-RapidAPI-Host': 'politician-trade-tracker1.p.rapidapi.com'
}
})
.then(response => response.json())
.then(data => console.log(data));
// Get trades by state
fetch('https://politician-trade-tracker1.p.rapidapi.com/api/states/trades?state=california', {
headers: {
'X-RapidAPI-Key': 'YOUR_API_KEY',
'X-RapidAPI-Host': 'politician-trade-tracker1.p.rapidapi.com'
}
})
.then(response => response.json())
.then(data => console.log(data));Ready to Get Started?
Sign up for an API key today and start building powerful applications with Politician Trade Tracker™ data.