Get Financial Metric
get_financial_metricRetrieve deduplicated historical financial metrics for a company, using friendly names or XBRL tags. Get clean one-per-period values with trend analysis.
Instructions
Get deduplicated historical values of a financial metric for a company. Automatically resolves concept aliases — you can use friendly names like 'revenue', 'net_income', 'eps', 'cash', 'total_assets' or raw XBRL tags. Returns clean, one-per-period values with trend analysis. Available concepts: revenue, net_income, gross_profit, operating_income, eps, total_assets, total_liabilities, stockholders_equity, cash, long_term_debt, operating_cash_flow, capex, shares_outstanding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cik | Yes | Company CIK number | |
| concept | Yes | Financial concept — use friendly names (revenue, net_income, eps, cash, total_assets) or raw XBRL tags (Revenues, NetIncomeLoss) | |
| taxonomy | No | XBRL taxonomy — almost always us-gaap | us-gaap |
| annualOnly | No | If true, return only annual (FY) data points — cleaner for trend analysis |