KeyVex Congressional Trades API

The Congressional Trades API from KeyVex — 1 operation(s) for congressional trades.

GitHub OpenAPI

Operations 1

GET /v1/congressional-trades Returns trades disclosed by U.S. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/keyvex-com:keyvex-com-congressional-trades-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

keyvex-com-congressional-trades-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KeyVex Congressional Trades API
  version: 0.102.0
  termsOfService: https://keyvex.com/terms
  description: 'US public financial-disclosure data — congressional trades, insider filings (Form 4), lobbying, Treasury auctions, member profiles. Requires an API key — create a free one at https://keyvex.com and send it as the header `x-api-key: `. A free key returns most public-record datasets (one year of history; no market-price data and a few heavy datasets are on paid plans only), capped at 60 requests/day; paid plans raise the caps. The daily allowance resets at midnight Eastern.'
servers:
- url: https://api.keyvex.com
security:
- ApiKeyAuth: []
tags:
- name: Congressional Trades
paths:
  /v1/congressional-trades:
    get:
      operationId: get_congressional_trades
      summary: Returns trades disclosed by U.S.
      description: 'Returns trade records disclosed by U.S. members of Congress under the STOCK Act — Senate eFD and House Clerk Periodic Transaction Reports (PTRs). Each record is one disclosed transaction by a member or their immediate family. The same filings are published free as news at https://keyvex.com/disclosures under 5 U.S.C. § 13107(c). Use this when the user asks about: who in Congress traded a specific stock, what trades a specific member made, recent congressional trading activity, or filings within a date range. Important: This data is *disclosed* trades, with reporting lag up to 45 days. The disclosure_date is when the public could first see the trade; the transaction_date is when the trade actually happened. For ''what did Congress just disclose buying'' questions, sort by disclosure_date. For ''what did Congress hold around a specific market event'', filter by transaction_date. Each amount is a range like ''$1,001 - $15,000'' (Senate filers report ranges, not exact amounts). The amount_min and amount_max fields parse those bounds for filtering. STOCK Act allows reporting in 11 standard ranges from $1,001 up to over $50,000,000. Each record''s party is the party the member held on the date of the record (a trade''s transaction date, a disclosure''s filing date); for a date outside the member''s terms in office, the party of their nearest term (the last one before that date, or the first one after it).'
      parameters:
      - name: ticker
        in: query
        required: false
        description: Stock symbol filter, e.g. 'AAPL'. Case-insensitive. Leave empty to query across all tickers.
        schema:
          type: string
      - name: member_name
        in: query
        required: false
        description: 'Full or partial member name; case-insensitive substring match. Examples: ''Collins'', ''Pelosi''.'
        schema:
          type: string
      - name: bioguide_id
        in: query
        required: false
        description: Member's permanent congressional ID, e.g. 'C001035' for Susan Collins. Preferred over member_name when known. Pair with get_member_profile to enrich a trade with the member's party/state/committee assignments.
        schema:
          type: string
      - name: chamber
        in: query
        required: false
        description: Filter to one chamber. Senate PTRs are HTML-parsed from efdsearch.senate.gov. House PTRs are PDF-parsed from disclosures-clerk.house.gov.
        schema:
          type: string
          enum:
          - senate
          - house
      - name: transaction_type
        in: query
        required: false
        description: Filter by disclosed transaction type. 'buy' = Purchase (P); 'sell' = Sale, full or partial (S); 'exchange' = Exchange (E) — bond maturities, corporate spin-offs, and share-class exchanges, which are disclosed trades too. Leave empty to include all three.
        schema:
          type: string
          enum:
          - buy
          - sell
          - exchange
      - name: owner
        in: query
        required: false
        description: Who owns the asset. STOCK Act covers spouse and dependent children's trades too — this filter narrows to one ownership category.
        schema:
          type: string
          enum:
          - Self
          - Spouse
          - Joint
          - Dependent
      - name: since
        in: query
        required: false
        description: ISO date (YYYY-MM-DD). Only records on or after this date, using sort_by as the date field.
        schema:
          type: string
      - name: until
        in: query
        required: false
        description: ISO date (YYYY-MM-DD). Only records on or before this date.
        schema:
          type: string
      - name: min_amount
        in: query
        required: false
        description: 'Filter to trades with amount_min >= this value (USD). Use to focus on larger disclosed trades. Note: amount ranges are minimums, so ''$1,001 - $15,000'' has amount_min=1001.'
        schema:
          type: number
      - name: sort_by
        in: query
        required: false
        description: 'Field used by since/until and ordering. Default: disclosure_date (when the public first saw the trade).'
        schema:
          type: string
          enum:
          - disclosure_date
          - transaction_date
      - name: sort_order
        in: query
        required: false
        description: 'Default: desc (most recent first).'
        schema:
          type: string
          enum:
          - desc
          - asc
      - name: limit
        in: query
        required: false
        description: Maximum records to return. Default 50, max 500.
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        description: Pass the `next_cursor` from the previous response VERBATIM to fetch the next page. Keep every other filter and the sort identical while paging. Omit to start from the top.
        schema:
          type: string
      - name: amendment_status
        in: query
        required: false
        description: 'Filter by whether the row came from an original filing or an AMENDMENT. Default: all three, deliberately — most amendment rows are NOT duplicates, they are disclosures the amendment added (181 of 198 recent Senate amendment rows have no original). Use ''original'' to exclude restatements, accepting that you will also drop genuinely new disclosures. ''unknown'' is every House row: the Clerk index carries no amendment indicator, so it cannot be determined from the source.'
        schema:
          type: string
          enum:
          - original
          - amendment
          - unknown
      - name: exclude_superseded
        in: query
        required: false
        description: 'Drop ORIGINAL disclosures that a later amendment restates. Default FALSE — they are returned, marked `superseded_by_amendment: true`, and the envelope carries `superseded_rows_included` plus a coverage_warning naming the count. ⚠ SET THIS WHENEVER YOU ARE SUMMING AMOUNTS. A member who amends a report has BOTH versions in the data — Boozman''s Chevron trade appears as an amendment and an original, identical in every visible field under two report ids — so any total over the default response DOUBLE-COUNTS them. 2,360 of 13,642 original Senate rows are in that state (measured 2026-08-27). It is not the default because Senate amendments do not declare WHICH report they replace, so the match is made on member + transaction date + ticker + owner + asset name; dropping on that identity alone is a judgement the caller should make knowingly. House rows are never affected — the Clerk index carries no amendment indicator, so their status is ''unknown'' and they are never marked.'
        schema:
          type: boolean
      - name: include_non_open_market
        in: query
        required: false
        description: 'Phase A v0.52.0 (2026-05-24): controls whether NON-MARKET events appear in the result. When false (honest default for direction queries), keeps ONLY OPEN_MARKET rows plus INSUFFICIENT_DATA rows (passthrough — unclassified is not the same as confirmed non-market, never silently dropped). Excludes both NON_OPEN_MARKET_TRANSFER (charitable contributions, gifts, donations detected in `comment`) AND EQUITY_COMP (rare for congressional but handled identically for parity). Honest-by-default: with transaction_type=''buy''|''sell'' → defaults to FALSE so a charitable contribution can''t pollute a sell-total query. Without transaction_type → defaults to TRUE (everything tagged honestly). The transaction_type field on each row is NEVER mutated. Example: `member_name:''Pelosi'', transaction_type:''sell''` by default EXCLUDES Pelosi''s Trinity University contribution; `include_non_open_market:true` re-includes it. Envelope carries `unclassifiable_records_retained: N` when any INSUFFICIENT_DATA rows passed through.'
        schema:
          type: boolean
      responses:
        '200':
          description: 'JSON envelope: { results: [...], count, has_more }.'
        '400':
          description: Invalid parameter.
        '401':
          description: Missing or invalid API key.
        '402':
          description: This tool requires a higher plan (upgrade_required). Retrying will not help.
        '429':
          description: Tier rate/quota limit reached (rate_limited). Retry-After points at the reset.
      tags:
      - Congressional Trades
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key