apyhub
Back
▣ RETRIEVAL KIT · VERIFICATION KIT

SEC Form 4 Stock Transactions API

What it does

The U.S. Securities and Exchange Commission (SEC) Form 4 API returns insider trade rows from SEC filings. Send a company CIK, a stock ticker, or an insider name part, then filter by mode, role, type, date, value, and plan trades.

Use mode: trades for one row per transaction. Use mode: clusters to find stocks where several insiders bought within clusterDays, with minInsiders and minValue if needed. Use mode: latest to see the newest Form 4 filings by filing date.

You get the issuer and insider names, their CIKs, the ticker, filing and transaction dates, shares, share price, value in US dollars, ownership, roles, and the filing link. Teams use the SEC Form 4 API to track open-market buys by directors and officers. They also build alerts when several insiders buy the same stock in a short time. AI agents can call it through ApyHub MCP.

POST
SEC Form 4 Buys, Sells + Clusters
https://api.eu.apyhub.com/martin10291/sec-form-4-stock-transactions

QUICKSTART

GUIDE

Quickstart

Fetch the latest SEC Form 4 insider transactions with the minimum required input.

curl -X POST "https://api.eu.apyhub.com/martin10291/sec-form-4-stock-transactions" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"latest","limit":20}'

What you'll get back

Returns a JSON object with billed and count integers, plus an items array of transaction objects.

Each item can include fields like ticker, insiderName, issuerName, transactionDate, transactionCode, shares, pricePerShare, and filingUrl.

{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "ticker": "NVDA",
      "insiderName": "Jensen Huang",
      "issuerName": "NVIDIA Corporation",
      "transactionDate": "2024-06-01",
      "transactionCode": "P",
      "shares": 1000,
      "pricePerShare": 120,
      "filingUrl": "https://www.sec.gov/Archives/..."
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
Or the SEC CIK number of the company (issuer), e.g. 1045810 for NVIDIA.
trades = one row per insider transaction (newest first); clusters = stocks where several different insiders made open-market purchases within clusterDays (needs a ticker or cik on this Apify version); latest = newest Form 4 filings across the market by filing date.
director, officer or ten_percent_owner (comma list). Empty = all.

About this endpoint

What it does

Returns SEC Form 4 insider transaction data for stocks, including individual trades, clusters of insider buying, or the latest filings depending on mode. The request body lets you filter by company, ticker, insider, transaction type, date range, value, and related criteria.

Request Body

ParameterTypeMandatoryDescription
cikStringNoSEC CIK number of the company (issuer), e.g. 1045810 for NVIDIA.
modeENUMNoAllowed values: trades, clusters, latest. trades returns one row per insider transaction (newest first); clusters returns stocks where several different insiders made open-market purchases within clusterDays (needs a ticker or cik on this Apify version); latest returns newest Form 4 filings across the market by filing date.
roleStringNoInsider role filter. Allowed values mentioned in the schema: director, officer, ten_percent_owner. Comma-separated list. Empty = all.
typeStringNoTransaction type filter. Allowed values mentioned in the schema: buy (open-market purchase, code P), sell (open-market sale, code S), all, or SEC codes comma separated such as P,S,A,M,F,G,D,C,X,J.... Empty = all.
limitIntegerNoMaximum rows returned, newest first. Default 20; minimum 1; maximum 100.
sinceStringNoOnly transactions on or after this date, in YYYY-MM-DD format.
untilStringNoOnly transactions on or before this date, in YYYY-MM-DD format.
tickerStringNoUS stock ticker(s), comma separated, e.g. NVDA or AAPL,MSFT. Share classes work with a dot or dash format such as BRK.B. Empty = whole market.
insiderStringNoInsider CIK (works market-wide) or a name fragment that needs a ticker in the request, e.g. Huang.
minValueIntegerNoOnly transactions worth at least this many US dollars (shares × price). In clusters mode it applies to the cluster total. Minimum 0.
sinceDaysIntegerNoOnly transactions from the last N days. Minimum 1; maximum 3650.
clusterDaysIntegerNoclusters mode only: purchases must fall within this many days. Default/example 14; minimum 1; maximum 90.
derivativesBooleanNoAlso return derivative-table rows such as options, RSUs, and warrants. Default behavior is to return only common-stock (non-derivative) transactions.
minInsidersIntegerNoclusters mode only: at least this many different insiders buying. Minimum 2; maximum 20.
excludePlansBooleanNoDrop trades made under a pre-arranged Rule 10b5-1 trading plan. Default example is false.

Response

Returns a JSON object with billed integer, count integer, and items array fields. billed is the number of units charged for the call, count is the number of rows in items, and each item is a transaction/filing record with the fields defined below.

ParameterTypeMandatoryDescription
billedIntegerNoUnits charged for this call: result rows only; not-found, unavailable, and invalid rows are free.
countIntegerNoNumber of rows in items.
itemsObject ArrayNoArray of result rows. Each item includes transaction, issuer, and insider fields such as shares, ticker, formType, filingDate, insiderName, transactionCode, and related metadata.
ParameterTypeMandatoryDescription
items[].sharesIntegerNoNumber of shares involved in the row.
items[].sourceStringNoSource of the row.
items[].tickerStringNoStock ticker.
items[].coOwnersArrayNoCo-owners associated with the row. Item shape is not defined in the schema.
items[].formTypeStringNoForm type.
items[].valueUsdNumberNoTransaction value in US dollars. Nullable.
items[].checkedAtStringNoTimestamp or date when the row was checked.
items[].filingUrlStringNoFiling URL.
items[].footnotesStringNoFootnotes text.
items[].issuerCikIntegerNoSEC CIK of the issuer.
items[].ownershipStringNoOwnership type.
items[].filingDateStringNoFiling date.
items[].insiderCikIntegerNoSEC CIK of the insider.
items[].issuerNameStringNoIssuer name.
items[].insiderNameStringNoInsider name.
items[].insiderRolesString ArrayNoInsider roles.
items[].is10b5_1PlanBooleanNoWhether the trade was made under a Rule 10b5-1 plan.
items[].isDerivativeBooleanNoWhether the row is a derivative transaction.
items[].officerTitleStringNoOfficer title. Nullable.
items[].exercisePriceStringNoExercise price. Nullable; type is not further defined in the schema.
items[].pricePerShareIntegerNoPrice per share.
items[].securityTitleStringNoSecurity title.
items[].expirationDateStringNoExpiration date. Nullable; type is not further defined in the schema.
items[].accessionNumberStringNoSEC accession number.
items[].transactionCodeStringNoSEC transaction code.
items[].transactionDateStringNoTransaction date.
items[].transactionTypeStringNoTransaction type.
items[].acquiredDisposedStringNoIndicates whether shares were acquired or disposed.
items[].sharesOwnedAfterIntegerNoShares owned after the transaction.
items[].underlyingSharesStringNoUnderlying shares. Nullable; type is not further defined in the schema.
items[].underlyingSecurityStringNoUnderlying security. Nullable; type is not further defined in the schema.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.