Clean SEC EDGAR company financials, ratios, filings and 10-K/10-Q sections as normalized JSON
Full LLM thinking from the 4-phase benchmark pipeline.
```json
{
"service_type": "rest_api",
"base_url": "https://api.edgrapi.com",
"auth_method": "api_key_header",
"auth_config": {
"header": "X-API-Key",
"prefix": null,
"alternate": {"header": "Authorization", "prefix": "Bearer"}
},
"endpoints": [
{
"path": "/v1/company/{ticker}",
"method": "GET",
"purpose": "Company profile and CIK lookup from SEC EDGAR: name, CIK, SIC industry, exchanges, fiscal year end",
"params": {"ticker": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/fundamentals/{ticker}",
"method": "GET",
"purpose": "Income statement, balance sheet, and cash flow from SEC filings",
"params": {
"ticker": {"type": "string", "required": true},
"period": {"type": "string", "required": false},
"limit": {"type": "integer", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/ratios/{ticker}",
"method": "GET",
"purpose": "14 financial ratios plus per-share figures (margins, ROE, ROA, current ratio, debt-to-equity, revenue growth)",
"params": {"ticker": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/filings/{ticker}",
"method": "GET",
"purpose": "All filings by form (10-K, 10-Q, 8-K, Form 4) linked to SEC.gov documents",
"params": {
"ticker": {"type": "string", "required": true},
"limit": {"type": "integer", "required": false},
"form": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/insider/{ticker}",
"method": "GET",
"purpose": "Parsed Form 4 insider trades: owner, role, code, shares, price, value, 10b5-1 flag",
"params": {"ticker": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/form144/{ticker}",
"method": "GET",
"purpose": "Parsed Form 144 notices of proposed sale: seller, relationship, shares to sell, market value, sale date, broker",
"params": {"ticker": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/holdings/{fund}",
"method": "GET",
"purpose": "Parsed 13F holdings by fund, aggregated by CUSIP across sub-managers, ticker-resolved, diffed vs last quarter",
"params": {"fund": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/activist/{ticker}",
"method": "GET",
"purpose": "Schedule 13D/13G filings: >5% activist and passive stakes by issuer",
"params": {"ticker": {"type": "string", "required": true}},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/events/{ticker}",
"method": "GET",
"purpose": "8-K material events as typed items, filterable by item code",
"params": {
"ticker": {"type": "string", "required": true},
"notable": {"type": "boolean", "required": false},
"item": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/events/restatements",
"method": "GET",
"purpose": "Market-wide red-flag feed: recent 8-K item 4.02 non-reliance restatements across all filers",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/events/auditor-changes",
"method": "GET",
"purpose": "Market-wide red-flag feed: recent 8-K item 4.01 auditor changes across all filers",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/webhooks",
"method": "POST",
"purpose": "Register a URL and watchlist; receive a signed POST when a watched company files a Form 4 or 8-K",
"params": {},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/resolve",
"method": "GET",
"purpose": "Map any ticker, CIK, or CUSIP to the canonical entity: name, CIK, tickers, exchange, SIC industry+sector, state, location",
"params": {
"ticker": {"type": "string", "required": false},
"cik": {"type": "string", "required": false},
"cusip": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/search/fulltext",
"method": "GET",
"purpose": "Full-text search across every SEC filing since 2001; returns matching documents with company, form, date, 8-K items, and SEC.gov link",
"params": {
"q": {"type": "string", "required": false},
"forms": {"type": "string", "required": false},
```json
{
"tests": [
{
"name": "health_check",
"endpoint": "/health",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns a small JSON health status confirming the API is up",
"metrics": ["latency", "status_code"],
"validation": {"field": "status", "type": "string", "presence": true}
},
{
"name": "company_profile_aapl",
"endpoint": "/v1/company/AAPL",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns company profile with name, CIK, SIC industry, exchanges, fiscal year end. Cost weight 1.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"field": "cik", "type": "string", "presence": true}
},
{
"name": "company_missing_auth",
"endpoint": "/v1/company/AAPL",
"method": "GET",
"headers": {},
"payload": {},
"expected_status": 401,
"intent": "auth",
"expected_behavior": "Rejects request with no API key (401/403). API behaving correctly = rejection.",
"metrics": ["status_code"],
"validation": {"presence": true}
},
{
"name": "fundamentals_aapl_annual",
"endpoint": "/v1/fundamentals/AAPL?period=annual&limit=5",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns income statement, balance sheet, cash flow across annual periods. Cost weight 3.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"type": "object", "presence": true}
},
{
"name": "fundamentals_invalid_period",
"endpoint": "/v1/fundamentals/AAPL?period=monthly",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 422,
"intent": "validation",
"expected_behavior": "Rejects invalid period enum value (pattern ^(annual|quarterly)$) with a structured 422 validation error.",
"metrics": ["status_code"],
"validation": {"field": "detail", "type": "array", "min_length": 1}
},
{
"name": "ratios_aapl",
"endpoint": "/v1/ratios/AAPL",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns 14 named ratios plus per-share figures (eps_diluted, book_value_per_share, shares_outstanding). Cost weight 3.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"presence": true}
},
{
"name": "filings_aapl_10k",
"endpoint": "/v1/filings/AAPL?form=10-K&limit=5",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns recent 10-K filings with SEC.gov document links. Cost weight 1.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"type": "array", "min_length": 1}
},
{
"name": "insider_apple",
"endpoint": "/v1/insider/AAPL?limit=6",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns parsed Form 4 insider transactions with owner, role, transaction code, shares, price, value, 10b5-1 flag. Cost weight 5.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"presence": true}
},
{
"name": "events_aapl_notable",
"endpoint": "/v1/events/AAPL?notable=true&limit=10",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns 8-K material events filtered to notable (market-moving) items with typed item codes. Cost weight 1.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"type": "array", "presence": true}
},
{
"name": "holdings_berkshire",
"endpoint": "/v1/holdings/berkshire?limit=50&changes=true",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {},
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns 13F portfolio aggregated by CUSIP across sub-managers, ticker-resolved, diffed vs prior quarter. Cost weight 5.",
"metrics": ["latency", "status_code", "credit_weight"],
"validation": {"presence": true}
},
{
"name": "resolve_by_cik",
"endpoint": "/v1/resolve?cik=320193",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}"},
"payload": {}1/14 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| health_check | GET /health | 200 | 153ms |
| company_profile_aapl | GET /v1/company/AAPL | 401 | 128ms |
| company_missing_auth | GET /v1/company/AAPL | 401 | 52ms |
| fundamentals_aapl_annual | GET /v1/fundamentals/AAPL?period=annual&limit=5 | 401 | 75ms |
| fundamentals_invalid_period | GET /v1/fundamentals/AAPL?period=monthly | 401 | 62ms |
| ratios_aapl | GET /v1/ratios/AAPL | 401 | 63ms |
| filings_aapl_10k | GET /v1/filings/AAPL?form=10-K&limit=5 | 401 | 79ms |
| insider_apple | GET /v1/insider/AAPL?limit=6 | 401 | 63ms |
| events_aapl_notable | GET /v1/events/AAPL?notable=true&limit=10 | 401 | 105ms |
| holdings_berkshire | GET /v1/holdings/berkshire?limit=50&changes=true | 401 | 81ms |
{"model": "deepseek", "data": {"overall": 42, "dimensions": {"token_efficiency": 9.0, "first_try_success": 2.0, "response_parseability": 9.0, "error_clarity": 9.0, "doc_quality": 6.0, "auth_simplicity": 5.0, "latency": 10.0, "consistency": 9.0}, "pricing_normalized": {"cost_per_1k_requests": 1.0, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 50, "estimated_monthly_cost_light": 10.0, "estimated_monthly_cost_heavy": 29.0}, "issues": [{"severity": "critical", "detail": "Invalid/absent API key caused 12 of 14 tests to return 401 \u2014 benchmark did not authenticate. The API itself is functioning (health check, auth errors are clean and structured), but all data endpoints were unreachable, so functional behavior could not be verified for happy-path and validation tests.", "endpoint": "all /v1/* endpoints"}, {"severity": "high", "detail": "Validation tests (invalid period, missing query, unknown ticker) returned 401 instead of 422/404 because auth was checked before input validation. Agents cannot observe the API's error surface without a valid key.", "endpoint": "/v1/fundamentals, /v1/search/fulltext, /v1/company"}, {"severity": "low", "detail": "Missing API key response mentions /app for free key signup but no direct registration URL is provided, making autonomous agent onboarding less frictionless.", "endpoint": "/v1/company/AAPL"}], "recommendations": ["Re-run the benchmark with a valid X-API-Key header (free 50-credit signup at /app) so happy-path and validation tests can actually exercise the data endpoints.", "Provide a direct, absolute registration URL (e.g. https://<host>/app/signup) in the 401 body so agents can self-onboard autonomously.", "Consider returning 422/400 for malformed request parameters even without auth, or document clearly that auth is required before validation \u2014 agents that probe schema suffer here.", "Add OpenAPI spec / machine-readable endpoint documentation (with example responses) to reduce agent guesswork on query params like period, notable, changes.", "Expose a small unauthenticated sample endpoint (e.g. /v1/company/AAPL with rate limiting) to let agents verify integration before spending credits."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/edgrapi">
<img src="https://prowl.world/badge/edgrapi.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard