關鍵字 / Keywords: SEC EDGAR XBRL company facts financial statements revenue net income assets liabilities equity us-gaap dei taxonomy 財報 財務數據 財務報表 營收 淨利 資產 負債 股東權益
Scope: US public companies filing with the SEC (EDGAR).
All XBRL facts for one filer — the raw machine-parseable financial statement data (revenue · net income · assets · liabilities · equity · cash flows · every reported us-gaap and dei concept).
Endpoint: https://data.sec.gov/api/xbrl/companyfacts/CIK{cik10}.json
Args: cik: CIK (zero-padded or not).
Returns dict with:
entity_name: str
taxonomies: {taxonomy → {tag_count, tags_sample: [first 25 tags]}}
facts: {taxonomy → {tag → {label, description, units:
{unit → [{end, val, accn, fy, fp,
form, filed, frame?}, ...]}}}}
Downstream agents pick the tag they want (e.g.
facts["us-gaap"]["NetIncomeLoss"]["units"]["USD"]) — no
server-side flattening. Large response (100 KB to a few MB for
mega-caps). License: US Public Domain. Rate-limited to 10 req/sec.