limitinteger
Maximum number of results to return (1-25, default 25). You are billed per result returned, so a lower limit costs less.
https://api.sandbase.ai/v1/api/congress/tradesGet US Congress members' financial disclosures and stock trades (member, ticker, transaction type, amount range, and dates), filterable by member, ticker, or date range. Results come newest filing first (by reportedUtc, not tradedUtc), so a recent filing can list trades made years earlier.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Get US Congress members' financial disclosures and stock trades (member, ticker, transaction type, amount range, and dates), filterable by member, ticker, or date range. Results come newest filing first (by reportedUtc, not tradedUtc), so a recent filing can list trades made years earlier.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "congress/trades", "limit": 5}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
endDate | string | No | Latest transaction date to include, inclusive, in YYYY-MM-DD format (e.g. 2026-06-01). |
firstName | string | No | Filter by the congressional member's first name, case-insensitive partial match (e.g. Nancy). |
lastName | string | No | Filter by the congressional member's last name, case-insensitive partial match (e.g. Pelosi). |
limit | integer | No | Maximum number of results to return (1-25, default 25). You are billed per result returned, so a lower limit costs less. |
startDate | string | No | Earliest transaction date to include, inclusive, in YYYY-MM-DD format (e.g. 2026-01-01). |
ticker | string | No | Filter to transactions involving this stock ticker symbol (e.g. NVDA). |
Billed at the actual cost of each call: about $0.00181 per result returned, up to $0.0462 per request (about $0.00905 for the request above). A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/congress/trades" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
limitintegerMaximum number of results to return (1-25, default 25). You are billed per result returned, so a lower limit costs less.
tickerstringFilter to transactions involving this stock ticker symbol (e.g. NVDA).
endDatestringLatest transaction date to include, inclusive, in YYYY-MM-DD format (e.g. 2026-06-01).
lastNamestringFilter by the congressional member's last name, case-insensitive partial match (e.g. Pelosi).
firstNamestringFilter by the congressional member's first name, case-insensitive partial match (e.g. Nancy).
startDatestringEarliest transaction date to include, inclusive, in YYYY-MM-DD format (e.g. 2026-01-01).
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
US Congress Stock TradesTo API US Congress | Od $0.00905 za wywołanie | JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/congress/trades z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.00905 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: limit (integer), ticker (string), endDate (string), lastName (string), firstName (string) i startDate (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).
Nie. US Congress Stock Trades działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API US Congress.