NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

Insider Trading API

The Insider Trading API provides comprehensive insider trading transaction data from SEC filings (Form 3, Form 4, Form 5). Search and filter transactions by company, insider, transaction type, date range, and more.

Available endpoints:

(4.1)

From 3,258 users

3,400+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
328ms365ms380ms583ms1254ms

Didn't find what you were looking for? Suggest an improvement


/v1/insidertransactions GET

https://api.api-ninjas.com/v1/insidertransactions

Returns a list of insider trading transactions that match the specified filters. All parameters are optional and can be combined for advanced filtering.

Parameters

  • ticker  optional

    Company ticker symbol (e.g., AAPL, MSFT).

  • cik  optional

    Central Index Key (CIK) of the company (e.g., 789019).

  • name  optional

    Name of the insider (exact match). Use the /v1/insiderslist endpoint to look up insider names.

  • form_type  optional

    SEC form type: 3, 4, or 5.

  • transaction_type  optional

    Type of transaction (e.g., Purchase, Sale, Award).

  • transaction_code  optional

    Transaction code (e.g., P for Purchase, S for Sale, A for Award).

  • transaction_date  optional

    Transaction date in YYYY-MM-DD format (e.g., 2024-01-15).

  • min_transaction_date  optional

    Minimum transaction date in YYYY-MM-DD format.

  • max_transaction_date  optional

    Maximum transaction date in YYYY-MM-DD format.

  • insider_type  optional

    Type of insider: director (matches director or chairman), 10_percent_owner (matches 10% Owner), or officer (excludes director, 10% owner, and chairman).

  • min_transaction_value  optional

    Minimum transaction value in USD (e.g., 10000).

  • max_transaction_value  optional

    Maximum transaction value in USD (e.g., 1000000).

  • limit  optional premium only

    Maximum number of results to return. Max value is 100. Default value is 10.

  • offset  optional premium only

    Number of results to skip for pagination (default: 0).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • accession_number

    The SEC accession number (filing ID) for the transaction.

  • form

    The SEC form type (3, 4, or 5).

  • filing_date

    The date the filing was submitted to the SEC (YYYY-MM-DD).

  • sec_filing_url

    URL to the SEC filing document.

  • cik

    The Central Index Key (CIK) of the company.

  • ticker

    The stock ticker symbol of the company.

  • company_name

    The name of the company (issuer).

  • insider_name

    The name of the insider who executed the transaction.

  • insider_position

    The position/title of the insider (e.g., CEO, Director, 10% Owner).

  • transaction_code

    The transaction code (e.g., P, S, A, D, F).

  • transaction_name

    Description of the transaction.

  • transaction_type

    The type of transaction (e.g., Purchase, Sale, Award).

  • transaction_price

    The price per share of the transaction.

  • shares

    The number of shares involved in the transaction.

  • transaction_value

    The total value of the transaction in USD.

  • pre_transaction_shares

    The number of shares held before the transaction.

  • pre_transaction_shares_value

    The total value of shares held before the transaction in USD (pre_transaction_shares × price).

  • remaining_shares

    The number of shares remaining after the transaction.

  • remaining_shares_value

    The total value of remaining shares after the transaction in USD (remaining_shares × price).

Sample Request Live Demo!

ticker
cik
name
form_type
insider_type

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v1/insidertransactions?ticker=AAPL

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      accession_number:"0002050912-25-000008",
      form:"Form 4",
      filing_date:"2025-10-17",
      sec_filing_url:"https://www.sec.gov/Archives/edgar/data/320193/0002050912-25-000008-index.html",
      cik:"320193",
      ticker:"AAPL",
      company_name:"Apple Inc.",
      insider_name:"Kevan Parekh",
      insider_position:"Senior Vice President, CFO",
      transaction_code:"S",
      transaction_name:"Open Market Sale",
      transaction_type:"sale",
      transaction_price:248.73,
      shares:500,
      transaction_value:124365,
      pre_transaction_shares:9265,
      pre_transaction_shares_value:2304483.4499999997,
      remaining_shares:8765,
      remaining_shares_value:2180118.4499999997
    },
    {
      accession_number:"0002050912-25-000008",
      form:"Form 4",
      filing_date:"2025-10-17",
      sec_filing_url:"https://www.sec.gov/Archives/edgar/data/320193/0002050912-25-000008-index.html",
      cik:"320193",
      ticker:"AAPL",
      company_name:"Apple Inc.",
      insider_name:"Kevan Parekh",
      insider_position:"Senior Vice President, CFO",
      transaction_code:"S",
      transaction_name:"Open Market Sale",
      transaction_type:"sale",
      transaction_price:247.82,
      shares:1534,
      transaction_value:380155.88,
      pre_transaction_shares:10299,
      pre_transaction_shares_value:2552298.1799999997,
      remaining_shares:8765,
      remaining_shares_value:2172142.3
    },
    {
      accession_number:"0002050912-25-000008",
      form:"Form 4",
      filing_date:"2025-10-17",
      sec_filing_url:"https://www.sec.gov/Archives/edgar/data/320193/0002050912-25-000008-index.html",
      cik:"320193",
      ticker:"AAPL",
      company_name:"Apple Inc.",
      insider_name:"Kevan Parekh",
      insider_position:"Senior Vice President, CFO",
      transaction_code:"S",
      transaction_name:"Open Market Sale",
      transaction_type:"sale",
      transaction_price:245.89,
      shares:500,
      transaction_value:122945,
      pre_transaction_shares:9265,
      pre_transaction_shares_value:2278170.85,
      remaining_shares:8765,
      remaining_shares_value:2155225.85
    }
]

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/insidertransactions?ticker=AAPL" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.


/v1/insiderdetails GET Premium only

https://api.api-ninjas.com/v1/insiderdetails

Returns detailed transaction information for a given insider with optional filtering by company.

Parameters

  • name  required

    Name of the insider (exact match). Use the /v1/insiderslist endpoint to look up insider names.

  • company_ticker  optional

    Company ticker symbol to filter transactions (e.g., AAPL, MSFT).

  • company_cik  optional

    Central Index Key (CIK) of the company to filter transactions (e.g., 789019).

Note: The endpoint returns a maximum of 10 transactions, ordered by filing date (most recent first).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • insider_name

    The name of the insider.

  • position

    The position/title of the insider (e.g., CEO, Director, 10% Owner).

  • ticker

    The stock ticker symbol of the company.

  • cik

    The Central Index Key (CIK) of the company.

  • company_name

    The name of the company (issuer).

  • shares

    The number of shares currently owned by the insider (from their most recent filing's remaining_shares). May be null if not available.

  • value

    The total value of the shares in USD (shares × price from most recent filing). May be null if not available.

  • transactions

    An array of transaction objects with detailed information about each transaction.

Sample Request Live Demo!

name
company_ticker
company_cik

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v1/insiderdetails?name=Timothy%20D%20Cook&company_ticker=AAPL

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
{
    insider_name:"Timothy D Cook",
    position:"Chief Executive Officer",
    ticker:"AAPL",
    cik:"320193",
    company_name:"Apple Inc.",
    shares:3280295,
    value:839296278.7,
    transactions:[
      {
        accession_number:"0001214156-25-000011",
        form:"Form 4",
        filing_date:"2025-10-03",
        sec_filing_url:"https://www.sec.gov/Archives/edgar/data/320193/0001214156-25-000011-index.html",
        cik:"320193",
        ticker:"AAPL",
        company_name:"Apple Inc.",
        insider_name:"Timothy D Cook",
        insider_position:"Chief Executive Officer",
        transaction_code:"S",
        transaction_name:"Open Market Sale",
        transaction_type:"sale",
        transaction_price:255.86,
        shares:22524,
        transaction_value:5762990.64,
        pre_transaction_shares:3302819,
        pre_transaction_shares_value:845059269.34,
        remaining_shares:3280295,
        remaining_shares_value:839296278.7
      },
      "..."
    ]
}

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/insiderdetails?name=Timothy%20Cook" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.


/v1/insiderslist GET Premium only

https://api.api-ninjas.com/v1/insiderslist

Returns a list of all insiders for a given company (via ticker or CIK). For each insider, returns their name, position, and current share holdings based on their most recent filing.

Parameters

  • ticker  optional

    Company ticker symbol (e.g., AAPL, MSFT). Either ticker or CIK is required.

  • cik  optional

    Central Index Key (CIK) of the company (e.g., 789019). Either ticker or CIK is required.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • insider_name

    The name of the insider.

  • position

    The position/title of the insider (e.g., CEO, Director, 10% Owner).

  • shares

    The number of shares currently owned by the insider (from their most recent filing's remaining_shares).

  • value

    The total value of the shares in USD (shares × price from most recent filing).

  • last_filing_date

    The date of the insider's most recent filing (YYYY-MM-DD).

  • ticker

    The stock ticker symbol of the company.

  • cik

    The Central Index Key (CIK) of the company.

  • company_name

    The name of the company (issuer).

Sample Request Live Demo!

ticker
cik

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v1/insiderslist?ticker=AAPL

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
[
    {
      insider_name:"Timothy D Cook",
      position:"Chief Executive Officer",
      shares:3280295,
      value:835917574.85,
      last_filing_date:"2025-10-03",
      ticker:"AAPL",
      cik:"320193",
      company_name:"Apple Inc."
    },
    {
      insider_name:"Susan Wagner",
      position:"Director",
      shares:62491,
      value:null,
      last_filing_date:"2025-02-04",
      ticker:"AAPL",
      cik:"320193",
      company_name:"Apple Inc."
    },
    {
      insider_name:"Wanda M Austin",
      position:"Director",
      shares:1588,
      value:null,
      last_filing_date:"2025-02-04",
      ticker:"AAPL",
      cik:"320193",
      company_name:"Apple Inc."
    },
    "..."
]

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/insiderslist?ticker=AAPL" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the Insider Trading API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.
  • The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.
  • The API offers /v1/insidertransactions to search and filter individual transactions across companies and insiders, /v1/insiderdetails to pull detailed transaction history for a single insider (by exact name), and /v1/insiderslist to list every insider for a company along with their current share holdings. The latter two are premium only, and you can explore the full Finance catalog on the APIs page.
  • All data comes from SEC insider trading filings, specifically Form 3, Form 4, and Form 5, and each record includes the original sec_filing_url and accession_number so you can trace it back to the source. For raw filing access you may also find our SEC API useful.
  • On the /v1/insidertransactions endpoint you can combine optional filters such as ticker or cik for the company, form_type (3, 4, or 5), transaction_type, insider_type (director, 10_percent_owner, or officer), date ranges via min_transaction_date and max_transaction_date, and dollar thresholds with min_transaction_value and max_transaction_value. To resolve a company ticker first, see the Ticker API.
  • Each transaction returns details such as insider_name, insider_position, transaction_code, transaction_type, transaction_price, shares, transaction_value, and holdings before and after the trade via pre_transaction_shares and remaining_shares. To pair this with market pricing, check out the Stock Price API.