# Historical financial ratios & efficiency metrics (QuantSet API)

> 36 annual, quarterly or TTM valuation, profitability, working-capital efficiency (DSO, asset/inventory/receivables turnover, operating cycle), liquidity (current/quick/cash/OCF ratios), leverage and YoY growth metrics, with optional point-in-time as_of.

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

`GET https://api.quantset.dev/api/v1/financial-metrics` · `get_historical_financial_metrics`

Send a key in the `X-API-Key` header.
Add `format=csv` to get a UTF-8 table.
Price: 3 credits for every 10 rows returned.

## Research questions

### How did Nvidia’s profitability and valuation change across reporting periods?

```http
GET https://api.quantset.dev/api/v1/financial-metrics?ticker=us:NVDA&period=annual&limit=8
```

Align report_period, filing_date, currency and period before comparing margins or valuation multiples.

### Which profitability readings were available by June 30?

```http
GET https://api.quantset.dev/api/v1/financial-metrics?ticker=AAPL&period=quarterly&as_of=2024-06-30&limit=4
```

Read the filing date and ratio period on each returned row. Keep data-vintage limitations with the result.

## Reading the results

A margin ending in _pct is measured in percentage units; a P/E is a multiple. Use the same annual, quarterly or trailing basis for the comparison.


## Coverage and limits

Ratios need usable inputs. A missing denominator, unavailable period price or unverified reporting basis can leave a metric empty.


## Related guides

- [Choose a listing across exchanges](https://quantset.dev/docs/guides/instrument-ids)
- [Choose a point-in-time cutoff](https://quantset.dev/docs/guides/point-in-time)

## Parameters

- `ticker` (string, required): Catalog selector, such as NVDA, 7203.T, or a canonical ID such as us:NVDA.
- `period` (annual | quarterly | ttm, optional): Reporting period.
- `as_of` (string, optional): Point-in-time date YYYY-MM-DD (uses filings filed on or before as_of)
- `limit` (integer, 1 to 60, optional): Maximum number of rows to return.
- `snapshot_id` (string, optional): Pin the request to one immutable snapshot so a read across several pages stays consistent.
- `format` (json | csv, optional): Return a JSON page or UTF-8 CSV rows.
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `instrument_id` (string): The listing's ID: a market prefix, a colon, then the ticker. For example us:NVDA, global:SHEL.L, crypto:BTCUSDT or index:SPX.
- `symbol` (string): The ticker without its market prefix.
- `report_period` (string)
- `period` (string): The reporting period: annual or quarterly.
- `currency` (string): The currency the amounts on this row are in.
- `filing_date` (string): The day the filing was made public.
- `accession_number` (string): The SEC accession number of the filing.
- `form_type` (string): The SEC form type, such as 10-K, 10-Q or 8-K.
- `price` (number): The latest price in US dollars.
- `market_cap` (number): The company's market value on that date, in US dollars.
- `enterprise_value` (number)
- `pe_ratio` (number)
- `pb_ratio` (number): Price divided by book value per share.
- `ps_ratio` (number)
- `ev_to_ebitda` (number): Enterprise value divided by trailing EBITDA.
- `ev_to_revenue` (number)
- `peg_ratio` (number): Price/earnings-to-growth ratio.
- `fcf_yield_pct` (number): Free cash flow per share as a share of the price, in percent.
- `payout_ratio_pct` (number): In percent: 10 means 10%.
- `gross_margin_pct` (number): Gross profit as a share of sales, in percent.
- `operating_margin_pct` (number): Operating income as a share of sales, in percent.
- `net_margin_pct` (number): Net income as a share of sales, in percent.
- `roe_pct` (number): Net income as a share of shareholders' equity, in percent.
- `roa_pct` (number): In percent: 10 means 10%.
- `roic_pct` (number): After-tax operating profit as a share of invested capital, in percent.
- `asset_turnover` (number)
- `inventory_turnover` (number)
- `receivables_turnover` (number)
- `days_sales_outstanding` (number)
- `operating_cycle_days` (number): A number of days.
- `working_capital_turnover` (number)
- `current_ratio` (number): Current assets divided by current liabilities.
- `quick_ratio` (number)
- `cash_ratio` (number)
- `operating_cash_flow_ratio` (number)
- `debt_to_equity` (number): Total debt divided by shareholders' equity.
- `debt_to_assets` (number)
- `interest_coverage` (number): Operating income divided by interest expense.
- `rev_growth_yoy_pct` (number): In percent: 10 means 10%.
- `operating_income_growth_yoy_pct` (number): In percent: 10 means 10%.
- `ebitda_growth_yoy_pct` (number): In percent: 10 means 10%.
- `net_income_growth_yoy_pct` (number): In percent: 10 means 10%.
- `eps_growth_yoy_pct` (number): In percent: 10 means 10%.
- `fcf_growth_yoy_pct` (number): In percent: 10 means 10%.
- `book_value_growth_yoy_pct` (number): In percent: 10 means 10%.
- `diluted_eps` (number)
- `book_value_per_share` (number): Shareholders' equity divided by shares in issue.
- `fcf_per_share` (number): Free cash flow divided by shares in issue.

## Example

```
curl 'https://api.quantset.dev/api/v1/financial-metrics?ticker=us:NVDA&period=annual&limit=8' -H 'X-API-Key: YOUR_API_KEY'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 404 The requested listing is absent from the catalog.
- 409 Start the read again with the current snapshot.
- 413 Reduce the page size before requesting CSV again.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 503 Retry safe reads after a short delay.

## Questions

**What does Historical financial ratios & efficiency metrics cost?** 3 credits for every 10 rows returned. A request that fails costs nothing.

**Which plan includes it?** Every account. Free credits, credit packs and subscriptions all read this data.

**Can I get it as CSV or in a spreadsheet?** Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.

**Can an AI agent use this?** Yes. On the QuantSet MCP server it is the get_financial_metrics tool, so Claude, ChatGPT, Cursor and other clients can call it with no code.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Fundamentals and screening
Docs page: https://quantset.dev/docs/api/financial-metrics
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
