Get Fund Expense Ratios — XBRL rr: Taxonomy
GetFundFees Retrieve expense ratios and fee breakdown for a mutual fund or ETF using
its SEC CIK. Reads structured XBRL data filed with prospectuses using the
SEC Risk/Return (rr:) taxonomy. Returns:
- net_expense_ratio — total annual cost to the investor (%)
- gross_expense_ratio — before waivers/reimbursements (%)
- management_fee — advisor/sub-advisor fee (%)
- distribution_12b1_fee — distribution and service fee (%)
- other_expenses — admin, custody, transfer agent fees (%)
- acquired_fund_fees — fees from underlying funds, if any (%)
All values are expressed as percentages (e.g. 0.03 = 0.03%).
PRIMARY USE: Step 2 of fee comparison. Accepts CIKs returned by
SearchFundsByCategory. Run for multiple funds then rank by net_expense_ratio
ascending to find the lowest-cost option in a category.
With include_all_classes=True (default), returns one row per share class
per period — useful for identifying the cheapest share class of a fund.
With include_all_classes=False, returns the single most recent value only.
Note: Not all funds file XBRL rr: data. If this tool returns an error,
use GetFundProfile (yfinance) as a fallback for expense ratio data.
Source: SEC EDGAR XBRL company facts API. No API key required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |