{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC Insider Trading API: Form 4, 13F Holdings, Funds",
    "description": "Insider trades (SEC Form 4) and 13F fund holdings as clean rows: insider, role, code, shares, price, value, CUSIP, portfolio weight, QoQ changes. Only-new mode. No API key, no login. MCP-ready for AI agents. Pay per result, errors free. $2 per 1,000 results",
    "version": "0.1",
    "x-build-id": "sy5Yyj1VG67vdbSXL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~sec-edgar-insider-trades-13f/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-sec-edgar-insider-trades-13f",
        "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/actose~sec-edgar-insider-trades-13f/runs": {
      "post": {
        "operationId": "runs-sync-actose-sec-edgar-insider-trades-13f",
        "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/actose~sec-edgar-insider-trades-13f/run-sync": {
      "post": {
        "operationId": "run-sync-actose-sec-edgar-insider-trades-13f",
        "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": {
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "US stock tickers, e.g. NVDA, AAPL, BRK.B. For Form 4 you get the insider trades of these companies. For 13F, use the ticker only if the company itself files 13F (e.g. BRK.B for Berkshire Hathaway); otherwise use the fund's CIK below.",
            "items": {
              "type": "string"
            }
          },
          "ticker": {
            "title": "Ticker (single)",
            "type": "string",
            "description": "Shortcut for one ticker. Added to the Tickers list."
          },
          "ciks": {
            "title": "CIK numbers (funds or insiders)",
            "type": "array",
            "description": "SEC Central Index Keys, digits only. Use a fund's CIK for 13F holdings (e.g. 1067983 = Berkshire Hathaway, 1350694 = Bridgewater Associates) or an insider's CIK with Form 4 to get all their trades across companies. Find a CIK on sec.gov/edgar/search.",
            "items": {
              "type": "string"
            }
          },
          "formType": {
            "title": "Form type",
            "enum": [
              "4",
              "13F-HR",
              "both"
            ],
            "type": "string",
            "description": "4 = insider transactions (one row per transaction). 13F-HR = fund holdings (one row per position). both = both for every ticker/CIK.",
            "default": "4"
          },
          "days": {
            "title": "Form 4: look-back (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only Form 4 filings filed in the last N days.",
            "default": 30
          },
          "transactionCodes": {
            "title": "Form 4: transaction codes",
            "type": "array",
            "description": "Keep only these SEC transaction codes. Empty = all. Common: P (open market purchase), S (open market sale), A (grant/award), M (option exercise), F (tax withholding), G (gift).",
            "items": {
              "type": "string"
            }
          },
          "insiderRoles": {
            "title": "Form 4: insider roles",
            "type": "array",
            "description": "Keep only insiders with one of these roles. Empty = all. Values: director, officer, tenPercentOwner, other.",
            "items": {
              "type": "string"
            }
          },
          "minTransactionValueUsd": {
            "title": "Form 4: minimum transaction value (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip transactions whose shares x price is below this value. 0 = keep all (including grants at $0).",
            "default": 0
          },
          "includeDerivative": {
            "title": "Form 4: include derivative transactions",
            "type": "boolean",
            "description": "Include options, RSUs and warrants (Table II) as well as common stock (Table I).",
            "default": true
          },
          "quarters": {
            "title": "13F: number of quarters",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many of the most recent 13F report periods to extract per fund (1 = latest quarter).",
            "default": 1
          },
          "compareWithPrevious": {
            "title": "13F: compare with previous quarter",
            "type": "boolean",
            "description": "Adds previousShares, sharesChange, sharesChangePct and positionChange (NEW, INCREASED, DECREASED, UNCHANGED, SOLD_OUT). Sold-out positions are added as extra rows.",
            "default": true
          },
          "aggregateByCusip": {
            "title": "13F: one row per security",
            "type": "boolean",
            "description": "Merge lines of the same CUSIP (split by manager or discretion in the filing) into one row. Untick to get the raw filing lines.",
            "default": true
          },
          "maxHoldingsPerFiling": {
            "title": "13F: max positions per filing",
            "minimum": 0,
            "type": "integer",
            "description": "Keep the N largest positions (by value) of each 13F, plus up to N sold-out positions. 0 = all. Large index funds report 20,000+ positions, so set a limit to control cost.",
            "default": 500
          },
          "includeAmendments": {
            "title": "Include amendments (4/A, 13F-HR/A)",
            "type": "boolean",
            "description": "Include amended Form 4 filings. For 13F, an amendment is used only when no original filing exists for that quarter.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new filings since last run",
            "type": "boolean",
            "description": "For scheduled runs: skip filings already delivered in a previous run (remembered per ticker/CIK in a named key-value store). You only pay for new results.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name (only new mode)",
            "type": "string",
            "description": "Name of the key-value store that remembers delivered filings. Use different names for independent schedules.",
            "default": "sec-insider-13f-state"
          },
          "maxFilingsPerEntity": {
            "title": "Form 4: max filings per ticker/CIK",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap on Form 4 filings read per ticker or CIK (newest first). 0 = no cap.",
            "default": 200
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows in total (each row is one billed result). 0 = no limit (your run budget still applies).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}