{
  "openapi": "3.0.1",
  "info": {
    "title": "Capitol Trades Scraper",
    "description": "[💰 $0.90 / 1K] Track US congressional stock trades from Capitol Trades. Every politician disclosure: buy/sell, ticker, company, trade-size range, transaction & filing dates, reporting gap, owner. Filter by politician, party, chamber, state, or company.",
    "version": "1.0",
    "x-build-id": "tPdvlvKnfmScEoU4a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~capitoltrades-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-capitoltrades-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/solidcode~capitoltrades-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-capitoltrades-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/solidcode~capitoltrades-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-capitoltrades-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "politicians": {
            "title": "Politicians",
            "type": "array",
            "description": "Filter to specific members of Congress. Enter names (e.g. 'Nancy Pelosi') or Capitol Trades profile URLs. Leave empty to include all politicians.",
            "items": {
              "type": "string"
            }
          },
          "issuers": {
            "title": "Companies / Tickers",
            "type": "array",
            "description": "Filter to specific traded companies. Enter company names (e.g. 'Apple') or ticker symbols (e.g. 'NVDA', 'MSFT'). Leave empty to include all companies.",
            "items": {
              "type": "string"
            }
          },
          "party": {
            "title": "Party",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include trades by members of these parties.",
            "items": {
              "type": "string",
              "enum": [
                "democrat",
                "republican",
                "other"
              ],
              "enumTitles": [
                "Democrat",
                "Republican",
                "Other / Independent"
              ]
            }
          },
          "chamber": {
            "title": "Chamber",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include trades by members of these chambers of Congress.",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "senate"
              ],
              "enumTitles": [
                "House of Representatives",
                "Senate"
              ]
            }
          },
          "states": {
            "title": "States",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include trades by members representing these states.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY",
                "DC"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Connecticut",
                "Delaware",
                "Florida",
                "Georgia",
                "Hawaii",
                "Idaho",
                "Illinois",
                "Indiana",
                "Iowa",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Maine",
                "Maryland",
                "Massachusetts",
                "Michigan",
                "Minnesota",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Hampshire",
                "New Jersey",
                "New Mexico",
                "New York",
                "North Carolina",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Oregon",
                "Pennsylvania",
                "Rhode Island",
                "South Carolina",
                "South Dakota",
                "Tennessee",
                "Texas",
                "Utah",
                "Vermont",
                "Virginia",
                "Washington",
                "West Virginia",
                "Wisconsin",
                "Wyoming",
                "District of Columbia"
              ]
            }
          },
          "transactionTypes": {
            "title": "Transaction Type",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include these kinds of transactions.",
            "items": {
              "type": "string",
              "enum": [
                "buy",
                "sell",
                "exchange",
                "receive"
              ],
              "enumTitles": [
                "Buy",
                "Sell",
                "Exchange",
                "Receive"
              ]
            }
          },
          "owners": {
            "title": "Owner",
            "uniqueItems": true,
            "type": "array",
            "description": "Only include trades made by these owners (the member, their spouse, a child, or a joint account). This filter is applied to the results after they are collected, so scanning stops once a long run of pages contains no matching owner. A very rare owner type (for example 'Child') on a broad, unfiltered query can therefore be capped before every match is found — to get exhaustive results for a rare owner, narrow the query with a politician, company, or date filter.",
            "items": {
              "type": "string",
              "enum": [
                "self",
                "spouse",
                "child",
                "joint"
              ],
              "enumTitles": [
                "Self",
                "Spouse",
                "Child",
                "Joint"
              ]
            }
          },
          "dateRange": {
            "title": "Date Range",
            "enum": [
              "",
              "7d",
              "30d",
              "90d",
              "180d",
              "365d"
            ],
            "type": "string",
            "description": "Quick window based on the transaction date. Choose 'All time' for no date limit. For an exact custom range, use the two date fields below instead."
          },
          "tradedAfter": {
            "title": "Traded On or After",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include trades on or after this date. Use the format YYYY-MM-DD (e.g. 2025-01-01). Leave empty to ignore."
          },
          "tradedBefore": {
            "title": "Traded On or Before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include trades on or before this date. Use the format YYYY-MM-DD (e.g. 2025-06-30). Leave empty to ignore."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "published",
              "traded",
              "reportingGap"
            ],
            "type": "string",
            "description": "Order in which trades are collected."
          },
          "maxItems": {
            "title": "Maximum Trades",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of trades to collect. Set to 0 (or leave blank) to collect ALL matching trades — with no filters applied the full feed is 37,000+ rows, so a blank or 0 value can be a very large, slow, and costly run. Set a limit to keep run size and cost predictable."
          },
          "startUrls": {
            "title": "Capitol Trades URLs (advanced)",
            "type": "array",
            "description": "Optional. Paste one or more Capitol Trades filtered URLs (starting with https://www.capitoltrades.com/trades). When provided, the filters above are ignored and these URLs are scraped exactly as configured on the site.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}