Search SEC Enforcement Actions
The SEC publishes enforcement actions for securities fraud, insider trading, accounting violations, and other regulatory breaches. This tutorial shows how to search, filter, and analyze enforcement data programmatically.Prerequisites
- An Omni Datastream API key (set as
OMNI_DATASTREAM_API_KEY) - Basic familiarity with REST APIs
- (Optional) Python 3.8+ or Node.js 18+ for SDK examples
Step 1 — Search for recent enforcement actions
The/v1/events/enforcement endpoint returns enforcement actions with structured metadata. Start with a broad query to see the data shape.
curl
Python
JavaScript
Expected output
Step 2 — Filter by violation type
Narrow your search to specific violation categories. Common types includefraud, insider_trading, accounting, market_manipulation, and offering_violations.
curl
Python
JavaScript
Step 3 — Filter by date range
Search enforcement actions within a specific time window.curl
Python
JavaScript
Expected output
Next steps
- Set up alerts: Use webhooks to get notified when new enforcement actions are published.
- Cross-reference with filings: Match enforcement respondents against company tickers to assess regulatory risk in your portfolio.
- Analyze trends: Track enforcement volume and penalty amounts over time to identify regulatory focus areas.