{
  "openapi": "3.0.1",
  "info": {
    "title": "US Stock Trades — House STOCK Act Disclosures",
    "description": "Extract disclosed US House stock trades from STOCK Act Periodic Transaction Reports. Returns member, ticker, buy or sell, amount range, dates, reporting delay and the source PTR PDF.",
    "version": "0.2",
    "x-build-id": "DfggKEGMNOE8hYdEp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~us-stock-trades-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-us-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/khadinakbar~us-stock-trades-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-us-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/khadinakbar~us-stock-trades-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-us-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": [
          "confirmPermittedUse"
        ],
        "properties": {
          "confirmPermittedUse": {
            "title": "I have read the notice",
            "type": "boolean",
            "description": "Required. Tick to confirm you have read the notice in the README. Federal law (5 U.S.C. 13107(c)) says House disclosure reports may not be used for any unlawful purpose, for any commercial purpose other than by news and communications media for dissemination to the general public, for determining anyone's credit rating, or in the solicitation of money for any political, charitable or other purpose. We give no legal advice and have no permission to override that law. You are responsible for your own use. Without the tick the run stops and nothing is charged."
          },
          "tickers": {
            "title": "Tickers",
            "maxItems": 50,
            "type": "array",
            "description": "Optional US ticker filters such as AAPL or BRK.B. The Actor still opens the newest PTR PDFs in the selected years, then keeps matching symbols. Leave empty to return every extractable disclosed trade in those filings. This is not a company-name or live tape search.",
            "items": {
              "type": "string"
            }
          },
          "lastName": {
            "title": "Member last name",
            "type": "string",
            "description": "Optional House member last name, for example Alford or Kelly. Case-insensitive contains match against the Clerk index. Leave blank to scan the newest PTR filings from any member. This is not a Senate last-name search."
          },
          "firstName": {
            "title": "Member first name",
            "type": "string",
            "description": "Optional House member first name, for example Mark. Use with lastName to disambiguate common surnames. Leave blank when lastName is enough. This is not a nickname or party filter."
          },
          "filingYears": {
            "title": "Filing years",
            "type": "array",
            "description": "Calendar years of House Clerk disclosure ZIPs to read, for example 2026. Defaults to the current year. Allowed range is 2018 through the current year. This is the year the PTR was filed, not the trade date.",
            "items": {
              "type": "integer"
            },
            "default": [
              2026
            ]
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Inclusive lower bound as YYYY-MM-DD. Filters PTR filing dates in the Clerk index and transaction dates inside parsed PDFs. Example: 2026-01-01. Leave blank for no lower bound. This is not a market session or settlement date."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Inclusive upper bound as YYYY-MM-DD. Pair with startDate. Example: 2026-09-10. Leave blank for no upper bound. Filing dates come from the Clerk index; trade dates come from the PTR PDF."
          },
          "transactionType": {
            "title": "Transaction type",
            "enum": [
              "all",
              "purchase",
              "sale",
              "exchange"
            ],
            "type": "string",
            "description": "Keep purchases, sales, exchanges, or all STOCK Act transaction codes. Default all. Partial sales and partial purchases stay inside purchase or sale. This is the PTR P/S/E code, not a broker order type.",
            "default": "all"
          },
          "maxFilings": {
            "title": "Max PTR filings",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many newest matching Periodic Transaction Report PDFs the run may open. Default 4, maximum 40. To keep your cost low the run opens 4 filings, plus 3 more for every matching trade found so far, up to this number. Narrow by member name or dates to look deeper. This is a filing cap, not the billed trade cap.",
            "default": 4
          },
          "maxResults": {
            "title": "Max trades",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Hard cap on billed dataset rows. Default 10, maximum 200. The Free plan returns up to 10 trades per run. Use this to bound spend. This is not the number of PDFs opened.",
            "default": 10
          },
          "lateOnly": {
            "title": "Late filings only",
            "type": "boolean",
            "description": "Keep only trades filed more than 45 days after the trade date. Default off. This is the filing delay in the public record, not a judgement about the member.",
            "default": false
          },
          "minAmountUsd": {
            "title": "Minimum amount (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only trades whose reported amount band starts at or above this many dollars, for example 15000. Leave empty for no minimum. Bands are ranges (for example $15,001 - $50,000), not exact fills."
          },
          "onlyNew": {
            "title": "Only trades not returned before",
            "type": "boolean",
            "description": "Skip trades this account already received in an earlier run (the Actor keeps a small private list of trade ids). Default off. Useful for repeat checks.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}