OpenAny
Get API keyAPI Key
APIFinanceMarket Data

capitol-trades logo
Capitol Trades Politician API

Retrieve Capitol Trades politician profiles by ID or URL via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including source politician identifier, reporting-person display name, source filing count, source issuer count, and disclosed transaction-owner category for filing directory, and trade navigation.

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 Politician 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 Politician API

Capitol Trades Politician API

Select id for the source politician record. Profile totals and recent_trades describe published disclosures; each trade's owner field can distinguish the reporting person from a spouse or other disclosed owner.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Required: id. JSON output; fresh=1 bypasses cache and raw=0 omits raw source blocks.
Selected implementation apish · Capitol Trades politician API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Filing directory: Keep reporting-person identity distinct from transaction ownership.
  • Trade navigation: Use the profile ID in a filtered transaction lookup.

Returned Data

Field Meaning
id Source politician identifier
name Reporting-person display name
filings Source filing count
issuers Source issuer count
recent_trades[].owner Disclosed transaction-owner category
recent_trades[].tx_date Reported transaction date

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/politician \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode id=P000197 \
  --data-urlencode output=json

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 Politician 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
Politician id (e.g. P000197) or a capitoltrades.com/politicians/... link.
Optional parameters (5)
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 politician 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/politician
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
idURL query parametersquerystringYes

Politician id (e.g. P000197) or a capitoltrades.com/politicians/... link.

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
  • ageinteger
  • cachedboolean
  • chamberstring
  • credits_usedinteger
  • date_of_birthstring
  • districtstring
  • filingsinteger
  • idstring
  • imagestring
  • issuersinteger
  • last_tradedstring
  • links(object | string)[]
    • labelstring
    • urlstring
  • most_traded_issuers(object | string)[]
    • namestring
    • tradesinteger
  • most_traded_sectors(object | string)[]
    • namestring
    • tradesinteger
  • namestring
  • partystring
  • recent_trades(object | string)[]
    • chamberstring
    • commentstring
    • idinteger
    • issuerobject
      • c2iqnull | string
      • countrynull | string
      • idinteger
      • namestring
      • sectornull | string
      • statenull | string
      • tickernull | string
      • urlstring
    • ownerstring
    • politicianobject
      • chamberstring
      • dobstring
      • first_namestring
      • genderstring
      • idstring
      • last_namestring
      • namestring
      • nicknamenull
      • partystring
      • statestring
      • urlstring
    • pricenull | number
    • pub_datestring
    • reporting_gap_daysinteger
    • tx_datestring
    • tx_typestring
    • tx_type_extendednull
    • urlstring
    • valueinteger
  • related_readingunknown[]
  • statestring
  • state_codestring
  • traded_issuers(object | string)[]
    • countrystring
    • idinteger
    • last_pricenumber
    • market_capinteger
    • namestring
    • sectorstring
    • statestring
    • tickerstring
    • trailing_changeobject
      • d1number
      • d30number
      • d365number
      • d7number
      • d90number
    • urlstring
  • tradesinteger
  • urlstring
  • volumeinteger
  • volume_textstring
  • years_activestring

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 6

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

    id
    Politician id (e.g. P000197) or a capitoltrades.com/politicians/... link.
    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/politician?id=P000197&output=json' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "age": 86,
      "cached": false,
      "chamber": "House",
      "credits_used": 1,
      "date_of_birth": "1940-03-26",
      "district": "11",
      "filings": 13,
      "id": "P000197",
      "image": "https://www.capitoltrades.com/assets/politicians/p000197.jpg",
      "issuers": 23,
      "last_traded": "2026-09-08",
      "links": [
        {
          "label": "Go to 2iQ Research home page",
          "url": "https://www.2iqresearch.com/"
        },
        {
          "label": "Official website",
          "url": "https://pelosi.house.gov"
        },
        "… 3 more"
      ],
      "most_traded_issuers": [
        {
          "name": "NVIDIA Corporation",
          "trades": 9
        },
        {
          "name": "Apple Inc",
          "trades": 5
        },
        "… 3 more"
      ],
      "most_traded_sectors": [
        {
          "name": "Information Technology",
          "trades": 23
        },
        {
          "name": "Communication Services",
          "trades": 6
        },
        "… 3 more"
      ],
      "name": "Nancy Pelosi",
      "party": "Democrat",
      "recent_trades": [
        {
          "chamber": "house",
          "comment": "Description: Investment in LLC which is acquiring and managing a commercial office property at 225 Bush Street in San",
          "id": 20003802949,
          "issuer": {
            "c2iq": null,
            "country": null,
            "id": 2335561,
            "name": "REOF XXX LLC",
            "sector": null,
            "state": null,
            "ticker": null,
            "url": "https://www.capitoltrades.com/issuers/2335561"
          },
          "owner": "spouse",
          "politician": {
            "chamber": "house",
            "dob": "1940-03-26",
            "first_name": "Nancy",
            "gender": "female",
            "id": "P000197",
            "last_name": "Pelosi",
            "name": "Nancy Pelosi",
            "nickname": null,
            "party": "democrat",
            "state": "ca",
            "url": "https://www.capitoltrades.com/politicians/P000197"
          },
          "price": null,
          "pub_date": "2026-10-05T13:05:05Z",
          "reporting_gap_days": 24,
          "tx_date": "2026-09-08",
          "tx_type": "buy",
          "tx_type_extended": null,
          "url": "https://www.capitoltrades.com/trades/20003802949",
          "value": 750000
        },
        {
          "chamber": "house",
          "comment": "Description: Purchased 10,000 shares.",
          "id": 20003802220,
          "issuer": {
            "c2iq": "CFZVU1C5",
            "country": "us",
            "id": 430143,
            "name": "Bloom Energy Corp",
            "sector": "industrials",
            "state": "ca",
            "ticker": "BE:US",
            "url": "https://www.capitoltrades.com/issuers/430143"
          },
          "owner": "spouse",
          "politician": {
            "chamber": "house",
            "dob": "1940-03-26",
            "first_name": "Nancy",
            "gender": "female",
            "id": "P000197",
            "last_name": "Pelosi",
            "name": "Nancy Pelosi",
            "nickname": null,
            "party": "democrat",
            "state": "ca",
            "url": "https://www.capitoltrades.com/politicians/P000197"
          },
          "price": 184.89,
          "pub_date": "2026-08-24T13:00:28Z",
          "reporting_gap_days": 28,
          "tx_date": "2026-07-24",
          "tx_type": "buy",
          "tx_type_extended": null,
          "url": "https://www.capitoltrades.com/trades/20003802220",
          "value": 3000000
        },
        "… 13 more"
      ],
      "related_reading": [],
      "state": "California",
      "state_code": "ca",
      "traded_issuers": [
        {
          "country": "us",
          "id": 433770,
          "last_price": 229.28,
          "market_cap": 5536424160000,
          "name": "NVIDIA Corporation",
          "sector": "information-technology",
          "state": "ca",
          "ticker": "NVDA:US",
          "trailing_change": {
            "d1": -0.0052,
            "d30": 0.0868,
            "d365": 0.2175,
            "d7": -0.0403,
            "d90": 0.0825
          },
          "url": "https://www.capitoltrades.com/issuers/433770"
        },
        {
          "country": "us",
          "id": 429789,
          "last_price": 336.64,
          "market_cap": 4912984755200,
          "name": "Apple Inc",
          "sector": "information-technology",
          "state": "ca",
          "ticker": "AAPL:US",
          "trailing_change": {
            "d1": -0.0111,
            "d30": 0.0107,
            "d365": 0.3593,
            "d7": 0.0113,
            "d90": 0.0692
          },
          "url": "https://www.capitoltrades.com/issuers/429789"
        },
        "… 21 more"
      ],
      "trades": 51,
      "url": "https://www.capitoltrades.com/politicians/P000197",
      "volume": 109810000,
      "volume_text": "$109.81M",
      "years_active": "2023 – 2025"
    }

Common questions

Which ID is accepted?

Use a source politician ID such as P000197 or its politician profile URL.

Does every profile trade belong personally to the politician?

Read owner for each trade. A record can identify spouse or another owner category.

Are filings and trades the same count?

No. A filing can contain several transactions; preserve the source totals and their labels.

Can I filter a transaction list for this profile?

Use the source ID in the politician filter of Trades.

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 Politician API with your agent

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