Skip to content
StockDatum
Docs Data Pricing Pay by card Connect
Free sample

SEC Form 4 insider trades API for AI agents

When a company insider (an officer, a director or a 10% owner) buys or sells the company's stock, they file a Form 4 with the SEC. StockDatum turns those filings into JSON your agent can read. You get one row per transaction line. Each row has who traded, their role, the date, the transaction code, the shares and the price, plus a link to the filing on sec.gov so you can check it.

Ask for a ticker or a CIK, and narrow it down by date or by transaction code. For example, code=P returns open-market purchases.

Price: $0.02 per call, paid in USDC on Base over x402. Flat for up to 200 rows (limit 1 to 200, default 50). The amount is always shown in the 402 response before your agent pays. Free sample: GET /sample/form4.

What you get back

Key fields (meanings as in the field reference):

FieldWhat it is
insider_nameNames of the reporting owners on the filing
roleRole text built from the first owner's boxes, for example Director or the officer title
txn_dateTransaction date as filed
codeSEC Form 4 transaction code, one letter (P, S and so on)
shares, price, valueShares and price as filed. value is shares x price
owned_afterHolding after this line, as filed
plan_10b5_11 if the filing's 10b5-1 box is ticked or a footnote mentions 10b5-1
urlLink to the filing on sec.gov

All fields returned: accession, seq, form, issuer_cik, issuer_ticker, issuer_name, insider_cik, insider_name, is_director, is_officer, is_10pct, is_other, officer_title, role, table_type, security, txn_date, code, acq_disp, shares, price, value, owned_after, direct_indirect, plan_10b5_1, aff10b5one, filed_date, accepted_et, accepted_utc, accepted_uk, url.

Filing time fields (filed_date, accepted_et, accepted_utc, accepted_uk) carry a known issue in v1. See the docs.

A real row from the free sample

{
  "accession": "0001976408-26-000983",
  "seq": 0,
  "form": "4",
  "issuer_cik": 1654126,
  "issuer_ticker": "ZIM",
  "issuer_name": "ZIM Integrated Shipping Services Ltd.",
  "insider_cik": 2110975,
  "insider_name": "Elimelech Arik",
  "is_director": 0,
  "is_officer": 1,
  "is_10pct": 0,
  "is_other": 0,
  "officer_title": "EVP HR & Organization",
  "role": "EVP HR & Organization",
  "table_type": "nonDerivative",
  "security": "Ordinary Shares",
  "txn_date": "2026-11-27",
  "code": "S",
  "acq_disp": "D",
  "shares": 416,
  "price": 31,
  "value": 12896,
  "owned_after": 0,
  "direct_indirect": "D",
  "plan_10b5_1": 0,
  "aff10b5one": 0,
  "filed_date": "2026-11-30",
  "accepted_et": "2026-11-30T10:43:08-05:00",
  "accepted_utc": "2026-11-30T15:43:08Z",
  "accepted_uk": "2026-11-30T15:43:08+00:00",
  "url": "https://www.sec.gov/Archives/edgar/data/1654126/0001976408-26-000983.txt"
}

Free sample

Try it with no payment: curl https://api.stockdatum.com/sample/form4 returns the 5 newest rows that are at least 24 hours old.

A paid call looks like this: curl -i "https://api.stockdatum.com/v1/form4?ticker=AAPL&code=P&limit=5". Unpaid, it returns HTTP 402 with the price.

How to call it

REST (x402). Send GET /v1/form4 to https://api.stockdatum.com. Without payment you get HTTP 402 and a PAYMENT-REQUIRED header that states the price. Your x402 client signs 0.02 USDC on Base (eip155:8453, scheme exact) and retries with PAYMENT-SIGNATURE. Then the rows come back as JSON.

MCP. Connect to https://api.stockdatum.com/mcp (streamable HTTP, no API key) and call the form4 tool with the same parameters. A call without payment returns the price as an x402 payment request. See Connect over MCP.

x402 calls need no account or API key. You can also pay by card for prepaid credits. A valid call that returns zero rows is not charged.

Parameters

ticker or cik (one is required), since (YYYY-MM-DD, filters filed_date), code (one Form 4 transaction letter, for example P or S), limit (1 to 200, default 50).

FAQ

How much does a Form 4 call cost?

$0.02 per call, paid in USDC on Base over x402. The price is flat for up to 200 rows. A valid call that returns zero rows is not charged.

Can I get only open-market purchases?

Yes. Add code=P. The code parameter takes one Form 4 transaction letter, for example P for a purchase or S for a sale.

Are trades under a Rule 10b5-1 plan marked?

Yes. plan_10b5_1 is 1 when the filing's 10b5-1 box is ticked or any footnote on the filing mentions 10b5-1. aff10b5one holds the form's own checkbox on its own.

Can I check a row against the filing?

Yes. Every row has a url to the filing on sec.gov.

Do I need an account or an API key?

Not for x402. Your agent can pay per call with no account and no API key. You can also buy prepaid USD credits by card and use an API key. You can try /sample/form4 for free first.

Other datasets

  • Form 144 proposed sale notices
  • 13F institutional holdings
  • 8-K and 6-K filings
  • Insider buying clusters

All prices · API docs · Connect over MCP · Home

Data from public SEC filings, for information only. Not investment advice. StockDatum is not affiliated with or endorsed by the U.S. Securities and Exchange Commission.

Data from public SEC filings, for information only. Not investment advice. StockDatum is not affiliated with or endorsed by the U.S. Securities and Exchange Commission.

Franck Labs Ltd, company no. 17544200. Registered office: 128 City Road, London EC1V 2NX. Registered with the ICO under reference ZC292546. Contact: data@stockdatum.com

Home · Docs · Pricing · Pay by card · Terms · Privacy

Data

  • Form 4 insider trades
  • Form 144 proposed sale notices
  • 13F institutional holdings
  • 8-K and 6-K filings
  • Insider buying clusters