{"openapi":"3.1.0","info":{"title":"Edgar Clerk","version":"1.0.0","summary":"Traceable SEC EDGAR data for AI agents.","description":"Traceable SEC EDGAR data for AI agents. Every financial figure includes the accession number, the filing, the SEC source URL, and the verbatim fact object returned by the SEC.\n\nData calls are $0.10. A full report is $15.00.\nSend an API key as `Authorization: Bearer <key>` or `X-API-Key`. Without a key, each IP gets a free daily allowance.\nv1 does not verify x402 payments or Synmerco escrows. The 402 body describes the future payment requirement.\n\nFacts are copied from official SEC files. USD amounts are dollars, not thousands. This service is not an SEC product.","contact":{"email":"k2ay1fdv@mail.grokbot.com"}},"servers":[{"url":"https://sec.majmu.xyz"}],"tags":[{"name":"company"},{"name":"financials"},{"name":"form-d"},{"name":"report"},{"name":"meta"}],"paths":{"/api/health":{"get":{"tags":["meta"],"operationId":"health","summary":"Health","security":[],"responses":{"200":{"description":"Status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/api/company/{ticker-or-cik}":{"get":{"tags":["company"],"operationId":"company","summary":"Company profile","parameters":[{"name":"ticker-or-cik","in":"path","required":true,"description":"Ticker symbol (AAPL, BRK-B) or CIK (320193 or 0000320193).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"Profile. CSV when format=csv.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/financials/{ticker-or-cik}":{"get":{"tags":["financials"],"operationId":"financials","summary":"Annual XBRL facts","parameters":[{"name":"ticker-or-cik","in":"path","required":true,"description":"Ticker symbol (AAPL, BRK-B) or CIK (320193 or 0000320193).","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"],"default":"json"}},{"name":"years","in":"query","required":false,"description":"Number of most recent annual periods. Default 5. Maximum 15.","schema":{"type":"integer","minimum":1,"maximum":15,"default":5}},{"name":"concepts","in":"query","required":false,"description":"Comma-separated XBRL concept names. Defaults to a standard income-statement and balance-sheet set, including RevenueFromContractWithCustomerExcludingAssessedTax and Revenues.","schema":{"type":"string"}}],"responses":{"200":{"description":"Annual facts with proof excerpts. CSV when format=csv.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Financials"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/form-d":{"get":{"tags":["form-d"],"operationId":"formD","summary":"Form D filings by state and date","parameters":[{"name":"state","in":"query","required":true,"description":"SEC business-location code, usually a USPS state abbreviation.","schema":{"type":"string","minLength":2,"maxLength":2,"example":"TX"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","description":"Filings to return. Maximum 8, so a cold call can still enrich primary documents inside a 10 second function.","schema":{"type":"integer","minimum":1,"maximum":8,"default":5}},{"name":"enrich","in":"query","description":"1 (default) fetches each primary_doc.xml for offering amounts. 0 returns the search hit only.","schema":{"type":"string","enum":["0","1"],"default":"1"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"],"default":"json"}}],"responses":{"200":{"description":"Form D page. CSV when format=csv.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormDPage"}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/report/{ticker-or-cik}":{"get":{"tags":["report"],"operationId":"report","summary":"Full report bundle","parameters":[{"name":"ticker-or-cik","in":"path","required":true,"description":"Ticker symbol (AAPL, BRK-B) or CIK (320193 or 0000320193).","schema":{"type":"string"}},{"name":"years","in":"query","required":false,"description":"Number of most recent annual periods. Default 5. Maximum 15.","schema":{"type":"integer","minimum":1,"maximum":15,"default":5}},{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv","md"],"default":"json"}}],"responses":{"200":{"description":"JSON bundle, or the markdown / CSV document alone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}},"text/csv":{"schema":{"type":"string"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/.well-known/agent.json":{"get":{"tags":["meta"],"operationId":"agentManifest","summary":"EIP-8004 style manifest","security":[],"responses":{"200":{"description":"Manifest","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"apiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}},"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Meta":{"type":"object","properties":{"service":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"},"sku":{"type":"string","enum":["data_call","full_report"]},"price":{"type":"object","properties":{"amount":{"type":"string","examples":["0.10"]},"currency":{"type":"string","enum":["USD"]}}},"usage":{"type":"object"}}},"Health":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string"},"version":{"type":"string"},"secUserAgentConfigured":{"type":"boolean"},"apiKeysConfigured":{"type":"boolean"},"usageStore":{"type":"string","enum":["memory","upstash"]}}},"Company":{"type":"object","description":"Company profile plus meta."},"Financials":{"type":"object","description":"concepts[].facts[] carries value, periodEnd, accession, filingIndexUrl, companyFactsUrl, and proofExcerpt (the raw companyfacts object)."},"FormDPage":{"type":"object","description":"filings[] carries issuer, state, amounts when enrich=1, filing URLs, the raw EFTS _source as proofExcerpt, and the verbatim offeringSalesAmounts XML when fetched."},"Report":{"type":"object","properties":{"markdown":{"type":"string"},"csv":{"type":"string"},"selfCheck":{"type":"object","properties":{"ok":{"type":"boolean"},"financialFigures":{"type":"integer"},"csvFinancialRows":{"type":"integer"},"mismatches":{"type":"array","items":{"type":"string"}}}}}}}},"security":[{"bearer":[]},{"apiKey":[]}]}