OpenAny
Get API keyAPI Key
APIFinanceMarket Data

capitol-trades logo
Capitol Trades Trades API

Browse Capitol Trades disclosures by politician, issuer and transaction filters via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, party, tx_date, and retrieve structured data including disclosure identifier, reported transaction date, source publication timestamp, disclosed owner category, and issuer identifier for disclosure feed, and date filters.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Capitol Trades Trades API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Capitol Trades Trades API

Capitol Trades Trades API

Combine documented identity, asset and date filters. Retain each transaction owner as source context. tx_date and pub_date select different windows, while sort defaults to newest publication rather than newest transaction.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Choose the lookup or search inputs described below. Optional: politician, issuer, party, chamber, state, committee, asset_type, tx_type, trade_size, mcap, issuer_state, country, label, gender, sector, tx_date, pub_date, sort, page, page_size. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Capitol Trades trades API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Disclosure feed: Keep reporting gap and owner context with each transaction.
  • Date filters: Use separate controls for transaction and publication windows.

Returned Data

Field Meaning
trades[].id Disclosure identifier
trades[].tx_date Reported transaction date
trades[].pub_date Source publication timestamp
trades[].owner Disclosed owner category
trades[].issuer.id Issuer identifier
next_page Next page number or null

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/capitoltrades/v1/trades \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode output=json \
  --data-urlencode party=democrat \
  --data-urlencode tx_date=90d

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published Capitol Trades Trades API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (25)
Politician id(s), comma separated, e.g. `P000197` (ids come from /capitoltrades/v1/politicians).
Issuer id(s), comma separated, e.g. `433770` (ids come from /capitoltrades/v1/issuer-search).
Party, comma separated: democrat, republican, other.
Chamber: house or senate.
Politician's state, two-letter code(s), e.g. `ca,ny`.
Committee code(s), e.g. `hsag` (House Agriculture), `ssfi` (Senate Finance), `hsba` (House Financial Services).
Asset type(s): stock, etf, crypto, mutual-fund, corporate-bond, municipal-security, stock-options, reit, abs, etn, futures, indices, preferred-shares, private-equity-fund, venture-capital, hedge-pvt-eq-funds-non-eif, non-public-stock, other-investment-fund, other-securities, ownership-interest, stock-appreciation-right, variable-annuity.
Transaction type(s): buy, sell, exchange, receive.
Trade size band(s), 1-10: 1 under $1K, 2 $1K-15K, 3 $15K-50K, 4 $50K-100K, 5 $100K-250K, 6 $250K-500K, 7 $500K-1M, 8 $1M-5M, 9 $5M-25M, 10 $25M-50M.
Issuer market cap band(s), 1-6: 1 mega (over $200B), 2 large, 3 mid, 4 small, 5 micro, 6 nano (under $50M).
Issuer's US state, two-letter code(s).
Issuer's country, two-letter code(s), e.g. `gb`.
Label(s): faang, crypto, memestock, spac.
Politician gender: male or female.
Issuer sector(s): communication-services, consumer-discretionary, consumer-staples, energy, financials, health-care, industrials, information-technology, materials, real-estate, utilities, other.
Trade date window: 30d, 90d, 180d, 365d, all (the site keeps about three years), or a range `2026-01-01,2026-03-31`.
Publication date window, same values as tx_date.
Sort: -pubDate (default, newest published first), pubDate, -txDate, txDate, reportingGap, -reportingGap.
Page number (default 1). Pass `next_page` back here; null on the last page.
Results per page, 1-100 (default 12).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
Capitol Trades trades API · GET · View API reference
$0.002 / billing credit0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/capitoltrades/v1/trades
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
politicianURL query parametersquerystringNo

Politician id(s), comma separated, e.g. `P000197` (ids come from /capitoltrades/v1/politicians).

issuerURL query parametersquerystringNo

Issuer id(s), comma separated, e.g. `433770` (ids come from /capitoltrades/v1/issuer-search).

partyURL query parametersquerystringNo

Party, comma separated: democrat, republican, other.

chamberURL query parametersquerystringNo

Chamber: house or senate.

stateURL query parametersquerystringNo

Politician's state, two-letter code(s), e.g. `ca,ny`.

committeeURL query parametersquerystringNo

Committee code(s), e.g. `hsag` (House Agriculture), `ssfi` (Senate Finance), `hsba` (House Financial Services).

asset_typeURL query parametersquerystringNo

Asset type(s): stock, etf, crypto, mutual-fund, corporate-bond, municipal-security, stock-options, reit, abs, etn, futures, indices, preferred-shares, private-equity-fund, venture-capital, hedge-pvt-eq-funds-non-eif, non-public-stock, other-investment-fund, other-securities, ownership-interest, stock-appreciation-right, variable-annuity.

tx_typeURL query parametersquerystringNo

Transaction type(s): buy, sell, exchange, receive.

trade_sizeURL query parametersquerystringNo

Trade size band(s), 1-10: 1 under $1K, 2 $1K-15K, 3 $15K-50K, 4 $50K-100K, 5 $100K-250K, 6 $250K-500K, 7 $500K-1M, 8 $1M-5M, 9 $5M-25M, 10 $25M-50M.

mcapURL query parametersquerystringNo

Issuer market cap band(s), 1-6: 1 mega (over $200B), 2 large, 3 mid, 4 small, 5 micro, 6 nano (under $50M).

issuer_stateURL query parametersquerystringNo

Issuer's US state, two-letter code(s).

countryURL query parametersquerystringNo

Issuer's country, two-letter code(s), e.g. `gb`.

labelURL query parametersquerystringNo

Label(s): faang, crypto, memestock, spac.

genderURL query parametersquerystringNo

Politician gender: male or female.

sectorURL query parametersquerystringNo

Issuer sector(s): communication-services, consumer-discretionary, consumer-staples, energy, financials, health-care, industrials, information-technology, materials, real-estate, utilities, other.

tx_dateURL query parametersquerystringNo

Trade date window: 30d, 90d, 180d, 365d, all (the site keeps about three years), or a range `2026-01-01,2026-03-31`.

pub_dateURL query parametersquerystringNo

Publication date window, same values as tx_date.

sortURL query parametersquerystringNo

Sort: -pubDate (default, newest published first), pubDate, -txDate, txDate, reportingGap, -reportingGap.

enum: "-pubDate", "pubDate", "-txDate", "txDate", "reportingGap", "-reportingGap"

pageURL query parametersqueryintegerNo

Page number (default 1). Pass `next_page` back here; null on the last page.

page_sizeURL query parametersqueryintegerNo

Results per page, 1-100 (default 12).

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.

enum: "json"

recordsURL query parametersquerystringNo

Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • applied_filtersobject
    • partystring[]
    • tx_datestring
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • next_pageinteger
  • pageinteger
  • page_sizeinteger
  • totalinteger
  • total_pagesinteger
  • trades(object | string)[]
    • chamberstring
    • commentnull
    • idinteger
    • issuerobject
      • c2iqstring
      • countrystring
      • idinteger
      • namestring
      • sectorstring
      • statestring
      • tickerstring
      • urlstring
    • ownerstring
    • politicianobject
      • chamberstring
      • dobstring
      • first_namestring
      • genderstring
      • idstring
      • last_namestring
      • namestring
      • nicknamenull
      • partystring
      • statestring
      • urlstring
    • pricenumber
    • pub_datestring
    • reporting_gap_daysinteger
    • tx_datestring
    • tx_typestring
    • tx_type_extendednull
    • urlstring
    • valueinteger

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Official documentation response · Supplier-tr

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 25

    Review these request fields before running. Keep the published provider and request method unchanged.

    politician
    Politician id(s), comma separated, e.g. `P000197` (ids come from /capitoltrades/v1/politicians).
    issuer
    Issuer id(s), comma separated, e.g. `433770` (ids come from /capitoltrades/v1/issuer-search).
    party
    Party, comma separated: democrat, republican, other.
    chamber
    Chamber: house or senate.
    state
    Politician's state, two-letter code(s), e.g. `ca,ny`.
    committee
    Committee code(s), e.g. `hsag` (House Agriculture), `ssfi` (Senate Finance), `hsba` (House Financial Services).
    asset_type
    Asset type(s): stock, etf, crypto, mutual-fund, corporate-bond, municipal-security, stock-options, reit, abs, etn, futures, indices, preferred-shares, private-equity-fund, venture-capital, hedge-pvt-eq-funds-non-eif, non-public-stock, other-investment-fund, other-securities, ownership-interest, stock-appreciation-right, variable-annuity.
    tx_type
    Transaction type(s): buy, sell, exchange, receive.
    trade_size
    Trade size band(s), 1-10: 1 under $1K, 2 $1K-15K, 3 $15K-50K, 4 $50K-100K, 5 $100K-250K, 6 $250K-500K, 7 $500K-1M, 8 $1M-5M, 9 $5M-25M, 10 $25M-50M.
    mcap
    Issuer market cap band(s), 1-6: 1 mega (over $200B), 2 large, 3 mid, 4 small, 5 micro, 6 nano (under $50M).
    issuer_state
    Issuer's US state, two-letter code(s).
    country
    Issuer's country, two-letter code(s), e.g. `gb`.
    label
    Label(s): faang, crypto, memestock, spac.
    gender
    Politician gender: male or female.
    sector
    Issuer sector(s): communication-services, consumer-discretionary, consumer-staples, energy, financials, health-care, industrials, information-technology, materials, real-estate, utilities, other.
    tx_date
    Trade date window: 30d, 90d, 180d, 365d, all (the site keeps about three years), or a range `2026-01-01,2026-03-31`.
    pub_date
    Publication date window, same values as tx_date.
    sort
    Sort: -pubDate (default, newest published first), pubDate, -txDate, txDate, reportingGap, -reportingGap.
    page
    Page number (default 1). Pass `next_page` back here; null on the last page.
    page_size
    Results per page, 1-100 (default 12).
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
    records
    Native CSV/NDJSON record selector; it has no effect on this JSON-only product.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/apish/capitoltrades/v1/trades?output=json&party=democrat&tx_date=90d' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "applied_filters": {
        "party": [
          "democrat"
        ],
        "tx_date": "90d"
      },
      "cached": false,
      "count": 12,
      "credits_used": 1,
      "next_page": 2,
      "page": 1,
      "page_size": 12,
      "total": 977,
      "total_pages": 82,
      "trades": [
        {
          "chamber": "senate",
          "comment": null,
          "id": 10000066987,
          "issuer": {
            "c2iq": "HPSVU1B2",
            "country": "us",
            "id": 429725,
            "name": "Amgen Inc",
            "sector": "health-care",
            "state": "ca",
            "ticker": "AMGN:US",
            "url": "https://www.capitoltrades.com/issuers/429725"
          },
          "owner": "spouse",
          "politician": {
            "chamber": "senate",
            "dob": "1955-10-20",
            "first_name": "Sheldon",
            "gender": "male",
            "id": "W000802",
            "last_name": "Whitehouse",
            "name": "Sheldon Whitehouse",
            "nickname": null,
            "party": "democrat",
            "state": "ri",
            "url": "https://www.capitoltrades.com/politicians/W000802"
          },
          "price": 434.03,
          "pub_date": "2026-11-03T07:07:30Z",
          "reporting_gap_days": 18,
          "tx_date": "2026-10-15",
          "tx_type": "sell",
          "tx_type_extended": null,
          "url": "https://www.capitoltrades.com/trades/10000066987",
          "value": 32500
        },
        {
          "chamber": "senate",
          "comment": null,
          "id": 10000066988,
          "issuer": {
            "c2iq": "NH4VU1C8",
            "country": "us",
            "id": 433382,
            "name": "Microsoft Corp",
            "sector": "information-technology",
            "state": "wa",
            "ticker": "MSFT:US",
            "url": "https://www.capitoltrades.com/issuers/433382"
          },
          "owner": "spouse",
          "politician": {
            "chamber": "senate",
            "dob": "1955-10-20",
            "first_name": "Sheldon",
            "gender": "male",
            "id": "W000802",
            "last_name": "Whitehouse",
            "name": "Sheldon Whitehouse",
            "nickname": null,
            "party": "democrat",
            "state": "ri",
            "url": "https://www.capitoltrades.com/politicians/W000802"
          },
          "price": 539.44,
          "pub_date": "2026-11-03T07:07:30Z",
          "reporting_gap_days": 18,
          "tx_date": "2026-10-15",
          "tx_type": "sell",
          "tx_type_extended": null,
          "url": "https://www.capitoltrades.com/trades/10000066988",
          "value": 8000
        },
        "… 10 more"
      ]
    }

Common questions

How do I select transaction versus publication dates?

Use tx_date and pub_date separately, with documented windows or a comma-separated date range.

What is the default sorting?

sort=-pubDate returns newest published first. Use a documented txDate sort to order by transaction date instead.

Do trade_size and mcap use exact dollar amounts?

No. They use documented numbered bands. Preserve those band definitions rather than submitting a raw monetary value.

How do I paginate?

page_size accepts 1–100, default 12. page defaults to 1; follow next_page.

How do I bypass cached results?

Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or set output=json.

Use Capitol Trades Trades API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.