{
  "openapi": "3.0.1",
  "info": {
    "title": "Congress Stock Trades & Financial Disclosures Scraper (House)",
    "description": "Scrape US House members' stock trades from the Clerk's own periodic transaction reports: one row per trade with ticker, asset, buy/sell, amount range, owner, dates, late-filing flag, party and committees, plus the full disclosure filings index with PDF links. Monitor mode. $1.30 per 1,000 rows.",
    "version": "0.1",
    "x-build-id": "dAz0KXlgVg7eAPzbH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~congress-disclosures-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-congress-disclosures-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/topapi~congress-disclosures-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-congress-disclosures-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/topapi~congress-disclosures-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-congress-disclosures-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": {
          "recordTypes": {
            "title": "📄 Rows to return",
            "type": "array",
            "description": "Transactions = one row per trade line of each periodic transaction report (PTR), and of Schedule B of annual reports when you add that filing type. Filings = one row per form in the House Clerk's index (member, filing type, dates, PDF link). Both = the filing row, then its trades.",
            "items": {
              "type": "string",
              "enum": [
                "transactions",
                "filings"
              ],
              "enumTitles": [
                "Transactions (trades)",
                "Filings (the disclosure index)"
              ]
            },
            "default": [
              "transactions"
            ]
          },
          "members": {
            "title": "🏛️ Members",
            "type": "array",
            "description": "Member or filer names, one per line, e.g. \"Pelosi\", \"Nancy Pelosi\", \"Ro Khanna\". A line matches when every word of it is in the filer's name. Empty = every filer.",
            "items": {
              "type": "string"
            }
          },
          "tickers": {
            "title": "📈 Tickers",
            "type": "array",
            "description": "Stock tickers, one per line, e.g. NVDA, AAPL, MSFT. Keeps only trades of these tickers (as filed in the report). Empty = every asset.",
            "items": {
              "type": "string"
            }
          },
          "filingTypes": {
            "title": "🗂️ Filing types",
            "type": "array",
            "description": "Which House forms to read. Empty = periodic transaction reports for trades, every type for filings. Annual, amendment, terminated-filer and new-filer reports add the trades of their Schedule B.",
            "items": {
              "type": "string",
              "enum": [
                "P",
                "O",
                "A",
                "T",
                "H",
                "C",
                "X",
                "D",
                "W",
                "E"
              ],
              "enumTitles": [
                "P - Periodic Transaction Report (trades)",
                "O - Annual Report",
                "A - Amendment Report",
                "T - Terminated Filer Report",
                "H - New Filer Report",
                "C - Candidate Report",
                "X - Extension Request",
                "D - Campaign Notice",
                "W - Candidacy Withdrawal Notice",
                "E - Terminated Employee Exemption"
              ]
            }
          },
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "Filer first name (part of it is enough), e.g. \"Nancy\". Combine with Last name."
          },
          "lastName": {
            "title": "Last name",
            "type": "string",
            "description": "Filer last name (part of it is enough), e.g. \"Pelosi\"."
          },
          "docIds": {
            "title": "🔗 DocIDs or PDF links",
            "type": "array",
            "description": "Specific filings, one per line: a House DocID (e.g. 20035662) or a form link (https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2026/20035662.pdf). The run returns those filings and their trades.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "🗺️ States",
            "type": "array",
            "description": "Two-letter state codes, one per line, e.g. CA, TX, NY.",
            "items": {
              "type": "string"
            }
          },
          "districts": {
            "title": "Districts",
            "type": "array",
            "description": "Seats as the Clerk writes them, one per line, e.g. CA11, TX31, AK00 (at large).",
            "items": {
              "type": "string"
            }
          },
          "party": {
            "title": "Party",
            "enum": [
              "any",
              "Democrat",
              "Republican",
              "Independent"
            ],
            "type": "string",
            "description": "Keep only sitting members of this party (from the House Clerk's member list).",
            "default": "any"
          },
          "committees": {
            "title": "Committees",
            "type": "array",
            "description": "Keep only sitting members who hold a seat on a committee or subcommittee whose name contains one of these, e.g. \"Armed Services\", \"Financial Services\", \"Energy and Commerce\".",
            "items": {
              "type": "string"
            }
          },
          "transactionTypes": {
            "title": "Transaction types",
            "type": "array",
            "description": "Keep only these trade types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "purchase",
                "sale_full",
                "sale_partial",
                "exchange"
              ],
              "enumTitles": [
                "Purchase",
                "Sale (full)",
                "Sale (partial)",
                "Exchange"
              ]
            }
          },
          "owners": {
            "title": "Owners",
            "type": "array",
            "description": "Whose account the trade was reported under. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "self",
                "spouse",
                "joint",
                "dependent"
              ],
              "enumTitles": [
                "The member (self)",
                "Spouse (SP)",
                "Joint (JT)",
                "Dependent child (DC)"
              ]
            }
          },
          "assetTypes": {
            "title": "Asset types",
            "type": "array",
            "description": "Keep only these House asset type codes. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "ST",
                "OP",
                "EF",
                "MF",
                "GS",
                "CS",
                "CT",
                "PS",
                "HN",
                "OT",
                "RE",
                "ET",
                "RS"
              ],
              "enumTitles": [
                "ST - Stocks (incl. ADRs)",
                "OP - Options",
                "EF - ETFs",
                "MF - Mutual funds",
                "GS - Government securities",
                "CS - Corporate bonds and notes",
                "CT - Cryptocurrency",
                "PS - Stock (not publicly traded)",
                "HN - Hedge / private equity funds",
                "OT - Other",
                "RE - REITs",
                "ET - Exchange traded notes",
                "RS - Restricted stock units"
              ]
            }
          },
          "minAmount": {
            "title": "Minimum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep trades whose disclosed range reaches at least this value, e.g. 50001 keeps $50,001 - $100,000 and up."
          },
          "maxAmount": {
            "title": "Maximum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep trades whose disclosed range starts at or below this value."
          },
          "lateFilingsOnly": {
            "title": "Late filings only",
            "type": "boolean",
            "description": "Keep only trades disclosed more than 45 days after they happened (the STOCK Act limit).",
            "default": false
          },
          "minImportanceScore": {
            "title": "Minimum importance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep trades whose importanceScore (0-100: size, lateness, asset and owner flags, recency) is at least this."
          },
          "keywords": {
            "title": "Asset keywords",
            "type": "array",
            "description": "Keep trades whose asset name or description contains one of these, e.g. \"Treasury\", \"call options\", \"Bitcoin\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude asset keywords",
            "type": "array",
            "description": "Drop trades whose asset name or description contains one of these.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Filed in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only filings filed in the last N days, e.g. 7 or 30."
          },
          "filedFrom": {
            "title": "Filed from",
            "type": "string",
            "description": "Earliest filing date (YYYY-MM-DD)."
          },
          "filedTo": {
            "title": "Filed to",
            "type": "string",
            "description": "Latest filing date (YYYY-MM-DD)."
          },
          "transactionDateFrom": {
            "title": "Transaction date from",
            "type": "string",
            "description": "Earliest trade date (YYYY-MM-DD)."
          },
          "transactionDateTo": {
            "title": "Transaction date to",
            "type": "string",
            "description": "Latest trade date (YYYY-MM-DD)."
          },
          "reportedOn": {
            "title": "Filed on (exact day)",
            "type": "string",
            "description": "Only filings filed on this day, e.g. what was filed today."
          },
          "years": {
            "title": "Report years",
            "type": "array",
            "description": "Report years to read, e.g. [2026, 2025] (the House index goes back to 2008; trade reports start in 2014). Overrides the default of this year and last year."
          },
          "includeMemberDetails": {
            "title": "Member details",
            "type": "boolean",
            "description": "Add party, bioguide ID, committee and subcommittee seats (House Clerk member list), birthday, gender and OpenSecrets / GovTrack ids (congress-legislators) to each row.",
            "default": true
          },
          "includeSector": {
            "title": "Sector and industry",
            "type": "boolean",
            "description": "Add the listed company's sector and industry to trades with a ticker (Nasdaq's listing file). Funds and unlisted assets stay empty.",
            "default": true
          },
          "includeScannedFilings": {
            "title": "List scanned filings (free)",
            "type": "boolean",
            "description": "Paper filings scanned to images have no text, so their trades cannot be read. On: each one comes back as a free filing row with its PDF link.",
            "default": true
          },
          "includeAggregates": {
            "title": "Ticker and member summaries (free)",
            "type": "boolean",
            "description": "Add one tickerSummary record per ticker (buyers, sellers, buy/sell ratio, volume, consensus score) and one memberSummary per member (trades, volume, late-filing rate, favorite tickers and sectors).",
            "default": false
          },
          "includeEvents": {
            "title": "Events (free)",
            "type": "boolean",
            "description": "Add event records: large purchase / sale, late and severely late filing, trade cluster (3+ members buying one ticker within 30 days), congressional accumulation, committee activity, behavior change.",
            "default": false
          },
          "includeTrends": {
            "title": "Trends (free)",
            "type": "boolean",
            "description": "Add per-ticker trend records: purchases, sales and volume per week or month.",
            "default": false
          },
          "trendBucket": {
            "title": "Trend period",
            "enum": [
              "week",
              "month"
            ],
            "type": "string",
            "description": "Period of the trend records.",
            "default": "week"
          },
          "includeStories": {
            "title": "Story headlines (free)",
            "type": "boolean",
            "description": "Add templated headline records built from the strongest events.",
            "default": false
          },
          "committeeData": {
            "title": "Your own committee map",
            "type": "object",
            "description": "Optional member -> committees map that replaces the Clerk's list for the committee filter, e.g. {\"Pelosi\": [\"Intelligence\"]}."
          },
          "saveSourcePdfs": {
            "title": "Save source PDFs",
            "type": "boolean",
            "description": "Store each parsed form's PDF in the run's key-value store (key pdf-<DocID>).",
            "default": false
          },
          "saveRawText": {
            "title": "Save extracted text",
            "type": "boolean",
            "description": "Store each parsed form's decoded text in the run's key-value store (key text-<DocID>).",
            "default": false
          },
          "monitorMode": {
            "title": "Only new filings (monitor)",
            "type": "boolean",
            "description": "Remember every filing read for this input (in a named key-value store) and return only trades and filings filed since. An empty poll writes nothing.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store for the monitor memory. Use one name per watch list.",
            "default": "congress-disclosures-monitor"
          },
          "resetMonitor": {
            "title": "Reset the monitor",
            "type": "boolean",
            "description": "Forget what earlier runs read and start again.",
            "default": false
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Most charged rows (trades + filings) per run. 0 = no limit.",
            "default": 200
          },
          "maxFilings": {
            "title": "Max filings to read",
            "minimum": 1,
            "type": "integer",
            "description": "Most filings opened per run (each PTR or report PDF counts once). Empty = no limit."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order in which filings are read and delivered (trades keep the order of their report).",
            "default": "newest"
          },
          "outputProfile": {
            "title": "Row profile",
            "enum": [
              "full",
              "minimal",
              "dashboard",
              "monitoring"
            ],
            "type": "string",
            "description": "Which fields each transaction row carries.",
            "default": "full"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Forms fetched at the same time.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The House Clerk's files are read on direct egress first; if the host refuses, the run moves to the Apify datacenter proxy, then to residential. Set your own proxy to read through it instead.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}