cURL Examples

Quick copy-paste examples for testing the API from your terminal. Replace YOUR_API_KEY with your actual API key.

Get recent filings

curl "https://api.secdailyapi.com/filings?limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Response:

{
  "filings": [
    {
      "id": "0000320193-24-000123",
      "formType": "10-K",
      "filingDateInEst": "2024-11-01",
      "entity": {
        "name": "Apple Inc.",
        "cik": "0000320193",
        "ticker": "AAPL"
      },
      "linkToFiling": "https://www.sec.gov/Archives/edgar/data/320193/..."
    }
  ],
  "count": 1247,
  "hasMore": true
}

Get 10-K filings for Apple

curl "https://api.secdailyapi.com/filings?cik=320193&formTypes=10-K&limit=5" \
  -H "x-api-key: YOUR_API_KEY"

Get filings in a date range

curl "https://api.secdailyapi.com/filings?startDate=2025-01-01&endDate=2025-01-31&formTypes=8-K&limit=50" \
  -H "x-api-key: YOUR_API_KEY"

Get insider purchases

curl "https://api.secdailyapi.com/insider-transactions?transactionTypes=purchase&limit=20" \
  -H "x-api-key: YOUR_API_KEY"

Response:

{
  "insiderTransactions": [
    {
      "id": "abc123",
      "accessionNumber": "0001140361-25-001234",
      "issuerCik": "320193",
      "reportingOwnerCik": "1051401",
      "formType": "4",
      "filingDateInEst": "2025-01-16",
      "periodOfReportDate": "2025-01-15",
      "totalAmount": 1250000.00,
      "hasPurchases": true,
      "hasSales": false,
      "normalizedOfficerTitle": "CFO",
      "ownerRoles": "officer"
    }
  ],
  "count": 20,
  "recordedTimeInUtc": "2025-01-17T12:00:00Z"
}

Get insider transactions for a company

curl "https://api.secdailyapi.com/insider-transactions?issuerCik=1318605&formTypes=4&limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Filter by officer role

curl "https://api.secdailyapi.com/insider-transactions?ownerRoles=officer&officerTitles=CEO,CFO&limit=20" \
  -H "x-api-key: YOUR_API_KEY"

Get latest news

curl "https://api.secdailyapi.com/news?newsType=PressReleases&limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Response:

{
  "news": [
    {
      "id": "news-abc123",
      "title": "Apple Reports Q1 2025 Results",
      "summary": "Apple today announced financial results for its fiscal 2025 first quarter...",
      "newsType": "PressReleases",
      "publishedDateInUtc": "2025-01-30T21:30:00Z",
      "source": "BusinessWire",
      "linkToNews": "https://example.com/news/apple-q1-2025"
    }
  ],
  "count": 10,
  "newsType": "PressReleases",
  "lastUpdated": "2025-01-30T22:00:00Z"
}

Pretty-print JSON output

Pipe the output through jq for readable formatting:

curl -s "https://api.secdailyapi.com/filings?cik=320193&limit=3" \
  -H "x-api-key: YOUR_API_KEY" | jq .