# 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.

Documentation: https://openany.si/market/apis/capitol-trades/capitol-trades-trades-api/?offering=8dd36961-7416-4f5f-b998-3783fb167807
API ID: 8dd36961-7416-4f5f-b998-3783fb167807
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/capitoltrades/v1/trades
Page update time: 2026-12-03T02:46:18.402Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:16.325Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Capitol Trades trades API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "politician": {
          "type": "string",
          "description": "Politician id(s), comma separated, e.g. `P000197` (ids come from /capitoltrades/v1/politicians)."
        },
        "issuer": {
          "type": "string",
          "description": "Issuer id(s), comma separated, e.g. `433770` (ids come from /capitoltrades/v1/issuer-search)."
        },
        "party": {
          "type": "string",
          "description": "Party, comma separated: democrat, republican, other."
        },
        "chamber": {
          "type": "string",
          "description": "Chamber: house or senate."
        },
        "state": {
          "type": "string",
          "description": "Politician's state, two-letter code(s), e.g. `ca,ny`."
        },
        "committee": {
          "type": "string",
          "description": "Committee code(s), e.g. `hsag` (House Agriculture), `ssfi` (Senate Finance), `hsba` (House Financial Services)."
        },
        "asset_type": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "Transaction type(s): buy, sell, exchange, receive."
        },
        "trade_size": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "Issuer's US state, two-letter code(s)."
        },
        "country": {
          "type": "string",
          "description": "Issuer's country, two-letter code(s), e.g. `gb`."
        },
        "label": {
          "type": "string",
          "description": "Label(s): faang, crypto, memestock, spac."
        },
        "gender": {
          "type": "string",
          "description": "Politician gender: male or female."
        },
        "sector": {
          "type": "string",
          "description": "Issuer sector(s): communication-services, consumer-discretionary, consumer-staples, energy, financials, health-care, industrials, information-technology, materials, real-estate, utilities, other."
        },
        "tx_date": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "Publication date window, same values as tx_date."
        },
        "sort": {
          "type": "string",
          "description": "Sort: -pubDate (default, newest published first), pubDate, -txDate, txDate, reportingGap, -reportingGap.",
          "enum": [
            "-pubDate",
            "pubDate",
            "-txDate",
            "txDate",
            "reportingGap",
            "-reportingGap"
          ]
        },
        "page": {
          "type": "integer",
          "description": "Page number (default 1). Pass `next_page` back here; null on the last page."
        },
        "page_size": {
          "type": "integer",
          "description": "Results per page, 1-100 (default 12)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "party": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "tx_date": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "page_size": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "total_pages": {
      "type": "integer"
    },
    "trades": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "chamber": {
                "type": "string"
              },
              "comment": {
                "type": "null"
              },
              "id": {
                "type": "integer"
              },
              "issuer": {
                "type": "object",
                "properties": {
                  "c2iq": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "id": {
                    "type": "integer"
                  },
                  "name": {
                    "type": "string"
                  },
                  "sector": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "ticker": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              },
              "owner": {
                "type": "string"
              },
              "politician": {
                "type": "object",
                "properties": {
                  "chamber": {
                    "type": "string"
                  },
                  "dob": {
                    "type": "string"
                  },
                  "first_name": {
                    "type": "string"
                  },
                  "gender": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "last_name": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "nickname": {
                    "type": "null"
                  },
                  "party": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                }
              },
              "price": {
                "type": "number"
              },
              "pub_date": {
                "type": "string"
              },
              "reporting_gap_days": {
                "type": "integer"
              },
              "tx_date": {
                "type": "string"
              },
              "tx_type": {
                "type": "string"
              },
              "tx_type_extended": {
                "type": "null"
              },
              "url": {
                "type": "string"
              },
              "value": {
                "type": "integer"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
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'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "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"
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/capitol-trades/capitol-trades-trades-api/?offering=8dd36961-7416-4f5f-b998-3783fb167807

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
