{
  "openapi": "3.0.1",
  "info": {
    "title": "Capitol Trade Ledger — Congress Stock Trades & Disclosures",
    "description": "Follow US House and Senate stock trades from the official STOCK Act filings: parsed House PTR PDFs, Senate eFD PTR tables, annual disclosures, party, district, committee memberships, amount bands and late-filing flags. No login or API key.",
    "version": "1.0",
    "x-build-id": "R3B7rqC3nxBgTaAzU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlyth-forge~congress-stock-trades-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlyth-forge-congress-stock-trades-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/crawlyth-forge~congress-stock-trades-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlyth-forge-congress-stock-trades-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/crawlyth-forge~congress-stock-trades-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlyth-forge-congress-stock-trades-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "housePtr",
              "senatePtr",
              "houseAnnual",
              "senateAnnual",
              "houseFilings",
              "tickerSearch",
              "members"
            ],
            "type": "string",
            "description": "What to collect. housePtr parses House periodic transaction reports, senatePtr parses Senate eFD PTRs, houseAnnual returns annual filings and their Schedule B trades, senateAnnual returns annual filings with Part 3 holdings and Part 4b trades, houseFilings returns the House filing index, tickerSearch scans both chambers for one or more tickers, and members searches the member directory.",
            "default": "housePtr"
          },
          "chamber": {
            "title": "Chamber scope",
            "enum": [
              "both",
              "house",
              "senate"
            ],
            "type": "string",
            "description": "Used by tickerSearch and members. PTR and annual modes imply their chamber.",
            "default": "both"
          },
          "memberName": {
            "title": "Member name",
            "type": "string",
            "description": "Case-insensitive text match on the member's name (e.g. `Pelosi`, `Nancy Pelosi`). Empty = all members.",
            "default": ""
          },
          "state": {
            "title": "State",
            "enum": [
              "all",
              "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",
              "PR",
              "VI",
              "GU",
              "AS",
              "MP"
            ],
            "type": "string",
            "description": "Two-letter state or territory code. Empty = all states.",
            "default": "all"
          },
          "district": {
            "title": "House district",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "House district number, 0 for at-large. Leave empty for every district."
          },
          "party": {
            "title": "Party",
            "enum": [
              "all",
              "D",
              "R",
              "I",
              "other"
            ],
            "type": "string",
            "description": "Filter by party (joined from the public congress-legislators member list).",
            "default": "all"
          },
          "filingYearFrom": {
            "title": "Filing year from",
            "minimum": 2008,
            "maximum": 2100,
            "type": "integer",
            "description": "First report year to include (House index year; Senate received-date year when no exact dates are set).",
            "default": 2025
          },
          "filingYearTo": {
            "title": "Filing year to",
            "minimum": 2008,
            "maximum": 2100,
            "type": "integer",
            "description": "Last report year to include.",
            "default": 2025
          },
          "filedFrom": {
            "title": "Filed on or after",
            "type": "string",
            "description": "Exact filing-date lower bound in YYYY-MM-DD format. Empty = no lower bound.",
            "default": ""
          },
          "filedTo": {
            "title": "Filed on or before",
            "type": "string",
            "description": "Exact filing-date upper bound in YYYY-MM-DD format. Empty = no upper bound.",
            "default": ""
          },
          "transactionFrom": {
            "title": "Transaction date from",
            "type": "string",
            "description": "Keep trades executed on or after this YYYY-MM-DD date. Annual holdings have no transaction date and are excluded when this is set.",
            "default": ""
          },
          "transactionTo": {
            "title": "Transaction date to",
            "type": "string",
            "description": "Keep trades executed on or before this YYYY-MM-DD date.",
            "default": ""
          },
          "ticker": {
            "title": "Ticker symbols",
            "type": "string",
            "description": "One or more tickers separated by commas or spaces (e.g. `NVDA,AAPL`). Empty = all assets. Required for tickerSearch mode.",
            "default": ""
          },
          "assetKeyword": {
            "title": "Asset name contains",
            "type": "string",
            "description": "Case-insensitive text match on the asset name (e.g. `NVIDIA`, `Treasury`, `Palantir`).",
            "default": ""
          },
          "transactionTypes": {
            "title": "Transaction types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep any of the selected directions. Empty = purchases, sales, exchanges and other.",
            "items": {
              "type": "string",
              "enum": [
                "purchase",
                "sale",
                "salePartial",
                "exchange",
                "other"
              ],
              "enumTitles": [
                "Purchase",
                "Sale",
                "Sale (partial)",
                "Exchange",
                "Other"
              ]
            },
            "default": []
          },
          "owners": {
            "title": "Owner",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep trades held by any of the selected owners. Empty = self, spouse, joint and dependent.",
            "items": {
              "type": "string",
              "enum": [
                "self",
                "spouse",
                "joint",
                "dependent"
              ],
              "enumTitles": [
                "Self",
                "Spouse",
                "Joint",
                "Dependent"
              ]
            },
            "default": []
          },
          "amountBands": {
            "title": "Amount bands",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep trades whose disclosed amount range matches any selected band. Empty = all bands.",
            "items": {
              "type": "string",
              "enum": [
                "$1 - $1,000",
                "$1,001 - $15,000",
                "$15,001 - $50,000",
                "$50,001 - $100,000",
                "$100,001 - $250,000",
                "$250,001 - $500,000",
                "$500,001 - $1,000,000",
                "$1,000,001 - $5,000,000",
                "$5,000,001 - $25,000,000",
                "$25,000,001 - $50,000,000",
                "Over $50,000,000"
              ],
              "enumTitles": [
                "$1 - $1,000",
                "$1,001 - $15,000",
                "$15,001 - $50,000",
                "$50,001 - $100,000",
                "$100,001 - $250,000",
                "$250,001 - $500,000",
                "$500,001 - $1,000,000",
                "$1,000,001 - $5,000,000",
                "$5,000,001 - $25,000,000",
                "$25,000,001 - $50,000,000",
                "Over $50,000,000"
              ]
            },
            "default": []
          },
          "minAmount": {
            "title": "Minimum amount (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep rows whose disclosed range reaches at least this value."
          },
          "maxAmount": {
            "title": "Maximum amount (USD)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep rows whose disclosed range starts at or below this value."
          },
          "lateOnly": {
            "title": "Late filings only",
            "type": "boolean",
            "description": "Only return trades disclosed later than the STOCK Act window.",
            "default": false
          },
          "lateFilingDays": {
            "title": "Late-filing threshold (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Days between the transaction and the filing before a row is flagged as late. The STOCK Act outer limit is 45 days.",
            "default": 45
          },
          "includeAmendments": {
            "title": "Include amendments",
            "type": "boolean",
            "description": "Include amended annual filings (House code A). House PTRs are published under code P only.",
            "default": true
          },
          "houseFilingTypes": {
            "title": "House filing types (mode=houseFilings)",
            "uniqueItems": true,
            "type": "array",
            "description": "Restrict the House filing index to any of these Clerk codes. Empty = every code.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "O",
                "A",
                "C",
                "T",
                "W",
                "X",
                "D",
                "E",
                "G",
                "H",
                "B"
              ],
              "enumTitles": [
                "P — Periodic Transaction Report",
                "O — Annual Report",
                "A — Amendment",
                "C — Candidate Report",
                "T — Termination Report",
                "W — Withdrawal Report",
                "X — Extension",
                "D — New Filer Report",
                "E — Exemption",
                "G — Gift Report",
                "H — New Filer Report",
                "B — Blind Trust"
              ]
            },
            "default": []
          },
          "senateFilerTypes": {
            "title": "Senate filer types",
            "uniqueItems": true,
            "type": "array",
            "description": "Who to include on the Senate eFD search. Empty = senators. `all` lets the portal return every filer type.",
            "items": {
              "type": "string",
              "enum": [
                "senator",
                "candidate",
                "formerSenator",
                "all"
              ],
              "enumTitles": [
                "Senators",
                "Candidates",
                "Former senators",
                "All filer types"
              ]
            },
            "default": [
              "senator"
            ]
          },
          "includeFilingRecords": {
            "title": "Include filing records",
            "type": "boolean",
            "description": "Emit one filing record per PTR before its transaction rows. Annual modes always emit the filing record.",
            "default": false
          },
          "includeCommittees": {
            "title": "Include committee memberships",
            "type": "boolean",
            "description": "Attach the member's current committee and subcommittee names from the public congress-legislators dataset.",
            "default": true
          },
          "flagScanned": {
            "title": "Flag scanned filings",
            "type": "boolean",
            "description": "Check annual PDFs for a text layer and flag paper-only scans with ocrRequired. PTRs are always checked.",
            "default": true
          },
          "includeFormerMembers": {
            "title": "Include former members (mode=members)",
            "type": "boolean",
            "description": "Include former members in the member directory search.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on emitted records. The default prefill uses 3.",
            "default": 100
          },
          "maxFilingsScanned": {
            "title": "Max filings scanned",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on filings downloaded or opened in one run.",
            "default": 1000
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}