TGMCharts Keys API
The Keys API from TGMCharts — 2 operation(s) for keys.
Operations 2
POST
/api/v1/keys/device
Ask for a free API key without a browser (OAuth 2.0 device authorization, RFC…
#
The Keys API from TGMCharts — 2 operation(s) for keys.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tgmcharts-com:tgmcharts-com-keys-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TGMCharts Keys API
version: 1.0.0
summary: Stock fundamentals, derived valuation series, and chart renders for developers and AI agents.
description: 'Precomputed daily from company filings and market data — never live-fetched at request time. Missing or not-meaningful values are honest nulls/empties with an `applicability` explanation; nothing is zero-filled or fabricated. Free tier: a free account is required for data calls (Google or a confirmed email, no card, 500 units a day), CORS-open; attribution required ("data by TGMCharts", linking tgmcharts.com). Send a free API key (Authorization: Bearer tgm_live_… or x-api-key, minted at https://tgmcharts.com/developers/keys); paid tiers raise the quota (units: JSON call = 1, chart render = 5, MCP tool call = 2; X-RateLimit-* headers on keyed responses; 401 with reason sign_in_required without a key, 401 on a bad key, 429 with Retry-After when a quota is exhausted). No key is needed for this document, the docs, MCP discovery, or chart image URLs (embedded as images; keyless renders are rate-limited per IP). Please cache responses for at least an hour — data changes at most daily. MCP endpoint for AI agents: POST https://tgmcharts.com/api/v1/mcp (streamable HTTP, stateless). Docs as text: https://tgmcharts.com/llms.txt (for people: https://tgmcharts.com/developers).'
termsOfService: https://tgmcharts.com/terms
contact:
url: https://tgmcharts.com/contact
servers:
- url: https://tgmcharts.com
security:
- apiKey: []
tags:
- name: Keys
paths:
/api/v1/keys/device:
post:
operationId: requestApiKey
security: []
summary: Ask for a free API key without a browser (OAuth 2.0 device authorization, RFC…
description: Keyless. Returns device_code (keep it secret), user_code, verification_uri, verification_uri_complete, expires_in (600, i.e. 10 minutes) and interval (5). Show the person verification_uri_complete; they sign in, check the code and approve. Then poll POST /api/v1/keys/device/token. At most 10 requests per network an hour.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
client_name:
type: string
maxLength: 40
description: Your app's name, shown to the person.
application/x-www-form-urlencoded:
schema:
type: object
properties:
client_name:
type: string
client_id:
type: string
responses:
'200':
description: The codes and the link to show the person.
content:
application/json:
schema:
type: object
required:
- device_code
- user_code
- verification_uri
- verification_uri_complete
- expires_in
- interval
'429':
description: Too many requests from this network.
tags:
- Keys
/api/v1/keys/device/token:
post:
operationId: pollApiKey
security: []
summary: Poll for the key the person approved (RFC 8628 token request)
description: 'Send grant_type=urn:ietf:params:oauth:grant-type:device_code (optional: a missing grant_type is read as this one) and device_code, JSON or form-encoded, at most every 5 seconds. Until approval: HTTP 400 {error: authorization_pending}; too fast: slow_down; no key issued (declined, the account is at its key limit or no longer active; error_description says which): access_denied; after 10 minutes: expired_token; unknown or already used: invalid_grant. On approval, exactly one poll returns 200 with api_key (also access_token, token_type Bearer). The key is shown only that once and is labelled with your client_name on the person''s keys page.'
responses:
'200':
description: The new key.
content:
application/json:
schema:
type: object
required:
- access_token
- token_type
- api_key
'400':
description: '{error, error_description} per RFC 8628 §3.5.'
tags:
- Keys
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: tgm_live_…
description: 'Developer API key (also accepted as an x-api-key header), required for data calls. Free: mint one at https://tgmcharts.com/developers/keys with Google or a confirmed email, no card. Keyed requests are metered against the account''s tier quota and bypass the shared edge cache.'
x-tgmcharts-metrics:
- slug: pe-ratio
label: P/E Ratio
description: Price to trailing-twelve-month diluted earnings per share.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ps-ratio
label: P/S Ratio
description: Price to trailing-twelve-month revenue per share.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: pb-ratio
label: P/B Ratio
description: Price to book value per share, where book value is the book value attributable to common shareholders (total equity minus preferred stock).
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: pfcf-ratio
label: P/FCF Ratio
description: Price to trailing-twelve-month free cash flow per share.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: pocf-ratio
label: P/OCF Ratio
description: Price to trailing-twelve-month operating cash flow per share.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ev-ebitda
label: EV/EBITDA
description: 'Enterprise value to trailing-twelve-month EBITDA (TGMCharts clean-EBITDA basis: operating income plus depreciation & amortization).'
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ev-ebit
label: EV/EBIT
description: Enterprise value to trailing-twelve-month operating income.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ev-sales
label: EV/Sales
description: Enterprise value to trailing-twelve-month revenue.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ev-fcf
label: EV/FCF
description: Enterprise value to trailing-twelve-month free cash flow.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: ev-assets
label: EV/Assets
description: Enterprise value to total assets.
unit: ratio
basis: daily
methodology: Daily valuation history computed by TGMCharts using supplied filing versions, eligible from the trading session after their publication day. Market-cap and enterprise-value histories use statement-period weighted-share estimates; current quote-based valuations have a separate basis. Missing inputs and undelivered historical filing versions cannot be reconstructed.
series: true
chart: true
- slug: earnings-yield
label: Earnings Yield
description: Trailing-twelve-month earnings per share over price (inverse P/E), in percent.
unit: percent
basis: daily
methodology: Daily inverse-multiple history computed from supplied filing versions, eligible after their publication day. Capitalization-based yields use statement-period weighted-share estimates. Current quote-based yields are calculated separately; unavailable inputs remain gaps.
series: true
chart: true
- slug: fcf-yield
label: FCF Yield
description: Trailing-twelve-month free cash flow over market cap, in percent.
unit: percent
basis: daily
methodology: Daily inverse-multiple history computed from supplied filing versions, eligible after their publication day. Capitalization-based yields use statement-period weighted-share estimates. Current quote-based yields are calculated separately; unavailable inputs remain gaps.
series: true
chart: true
- slug: ebitda-yield
label: EBITDA Yield
description: Trailing-twelve-month EBITDA over enterprise value (inverse EV/EBITDA), in percent.
unit: percent
basis: daily
methodology: Daily inverse-multiple history computed from supplied filing versions, eligible after their publication day. Capitalization-based yields use statement-period weighted-share estimates. Current quote-based yields are calculated separately; unavailable inputs remain gaps.
series: true
chart: true
- slug: ocf-yield
label: OCF Yield
description: Trailing-twelve-month operating cash flow over market cap (inverse P/OCF), in percent.
unit: percent
basis: daily
methodology: Daily inverse-multiple history computed from supplied filing versions, eligible after their publication day. Capitalization-based yields use statement-period weighted-share estimates. Current quote-based yields are calculated separately; unavailable inputs remain gaps.
series: true
chart: true
- slug: dividend-yield
label: Dividend Yield
description: Calendar-year dividends per share over price, in percent, sampled about monthly (every 21st trading day) — not a trailing-twelve-month series.
unit: percent
basis: monthly
methodology: 'Computed by TGMCharts from the dividend event history: dividends are summed per calendar year and divided by the close sampled every 21st trading day; a year with no payments yet uses the prior year''s total. Points exist only where both a price and a positive annual dividend are known.'
series: true
chart: true
- slug: total-return
label: Total Return
description: Growth of an investment with dividends reinvested, as an index that is 100 at the first close of the history.
unit: usd
basis: daily
methodology: 'Total-return index computed by TGMCharts from daily closes. Each dividend buys more shares at the first close on or after its ex-dividend date. The value is an index level, not a dollar amount (the unit field reads usd): it is 100 at the first close of the stock''s full history, not at the start of a `years` window, so only ratios between points are meaningful (end / start - 1 is the return). A history longer than 1,000 closes is thinned to every n-th close (n = closes / 1,000, rounded up) plus the latest one, so points can be several trading days apart.'
series: true
chart: true
- slug: roic
label: ROIC
description: Return on invested capital per fiscal year, in percent — one point per annual filing.
unit: percent
basis: annual
methodology: 'TGMCharts in-house ROIC from annual statements: after-tax operating profit over invested capital (total assets less non-interest-bearing current liabilities), one value per fiscal year; sector-gated where the definition is not meaningful.'
series: true
chart: true
- slug: revenue-ttm
label: Revenue (TTM)
description: Rolling trailing-twelve-month revenue at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: net-income-ttm
label: Net Income (TTM)
description: Rolling trailing-twelve-month net income at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: fcf-ttm
label: Free Cash Flow (TTM)
description: Rolling trailing-twelve-month free cash flow at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: ebitda-ttm
label: EBITDA (TTM)
description: Rolling trailing-twelve-month clean EBITDA (operating income plus D&A) at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: capex-ttm
label: Capital Expenditure (TTM)
description: Rolling trailing-twelve-month capital expenditure (absolute outflow) at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: buybacks-ttm
label: Buybacks (TTM)
description: Rolling trailing-twelve-month common stock repurchases (absolute net outflow) at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: sbc-ttm
label: Stock-Based Compensation (TTM)
description: Rolling trailing-twelve-month stock-based compensation at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: rd-ttm
label: R&D Expense (TTM)
description: Rolling trailing-twelve-month research & development expense at quarterly density.
unit: usd
basis: ttm
methodology: Rolling four-quarter sum computed by TGMCharts from as-reported quarters; a point exists only when four contiguous quarters are available. Outflow metrics store the absolute net four-quarter sum.
series: true
chart: true
- slug: gross-margin-quarterly
label: Gross Margin (Quarterly)
description: Gross margin per fiscal quarter, in percent.
unit: percent
basis: quarterly
methodology: Computed by TGMCharts per fiscal quarter from statement line items (profit measure over revenue); sign preserved for loss quarters.
series: true
chart: true
- slug: operating-margin-quarterly
label: Operating Margin (Quarterly)
description: Operating margin per fiscal quarter, in percent.
unit: percent
basis: quarterly
methodology: Computed by TGMCharts per fiscal quarter from statement line items (profit measure over revenue); sign preserved for loss quarters.
series: true
chart: true
- slug: net-margin-quarterly
label: Net Margin (Quarterly)
description: Net margin per fiscal quarter, in percent.
unit: percent
basis: quarterly
methodology: Computed by TGMCharts per fiscal quarter from statement line items (profit measure over revenue); sign preserved for loss quarters.
series: true
chart: true
- slug: revenue
label: Revenue
description: Annual revenue by fiscal year, as filed with the SEC.
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
quarterly: revenue-quarterly
ttm: revenue-ttm
- slug: net-income
label: Net Income
description: Annual net income by fiscal year, as filed with the SEC.
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
quarterly: net-income-quarterly
ttm: net-income-ttm
- slug: eps
label: EPS
description: Annual basic earnings per share by fiscal year.
unit: usdPerShare
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
variants:
quarterly: eps-quarterly
- slug: free-cash-flow
label: Free Cash Flow
description: Annual free cash flow by fiscal year.
unit: usd
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
variants:
quarterly: fcf-quarterly
ttm: fcf-ttm
- slug: ebitda
label: EBITDA
description: Annual clean EBITDA (operating income plus D&A) by fiscal year.
unit: usd
basis: annual
methodology: Annual clean-EBITDA series computed by TGMCharts (operating income plus depreciation & amortization — never the vendor's derived EBITDA field).
series: false
chart: true
variants:
ttm: ebitda-ttm
- slug: capex
label: Capital Expenditure
description: Annual purchases of property, plant & equipment by fiscal year (outflow as filed).
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
ttm: capex-ttm
- slug: buybacks
label: Buybacks
description: Annual common stock repurchases by fiscal year (outflow as filed).
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
ttm: buybacks-ttm
- slug: stock-based-comp
label: Stock-Based Compensation
description: Annual stock-based compensation by fiscal year, as filed with the SEC.
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
ttm: sbc-ttm
- slug: r-and-d
label: R&D Expense
description: Annual research & development expense by fiscal year, as filed with the SEC.
unit: usd
basis: annual
methodology: Annual fiscal-year values as filed with the SEC (XBRL company facts, public domain), selected latest-filed per period from the company's own filings; missing periods are honest gaps, never zero-filled or vendor-backfilled. Full per-value provenance (us-gaap tag + accession) at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
variants:
ttm: rd-ttm
- slug: gross-margin
label: Gross Margin
description: Annual gross margin by fiscal year, in percent.
unit: percent
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
variants:
quarterly: gross-margin-quarterly
- slug: operating-margin
label: Operating Margin
description: Annual operating margin by fiscal year, in percent.
unit: percent
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
variants:
quarterly: operating-margin-quarterly
- slug: profit-margin
label: Profit Margin
description: Annual net margin by fiscal year, in percent.
unit: percent
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
variants:
quarterly: net-margin-quarterly
- slug: roe
label: Return on Equity
description: Annual return on equity by fiscal year, in percent.
unit: percent
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
- slug: roa
label: Return on Assets
description: Annual return on assets by fiscal year, in percent.
unit: percent
basis: annual
methodology: Annual fiscal-year values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
- slug: revenue-quarterly
label: Revenue (Quarterly)
description: Single-quarter revenue, as filed with the SEC.
unit: usd
basis: quarterly
methodology: Single-quarter values as filed with the SEC (XBRL company facts, public domain), latest-filed per period. Quarters not filed discretely (typically Q4) are derived only by differencing two same-tag, same-fiscal-year filed facts and are withheld when a filing restates history — honest gaps, never plugs. Full per-value provenance at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
- slug: net-income-quarterly
label: Net Income (Quarterly)
description: Single-quarter net income, as filed with the SEC.
unit: usd
basis: quarterly
methodology: Single-quarter values as filed with the SEC (XBRL company facts, public domain), latest-filed per period. Quarters not filed discretely (typically Q4) are derived only by differencing two same-tag, same-fiscal-year filed facts and are withheld when a filing restates history — honest gaps, never plugs. Full per-value provenance at /api/v1/statements. Chart renders of this metric draw from the site's precomputed statement history and can differ in restatement vintage.
series: true
chart: true
source: sec-edgar-companyfacts
- slug: eps-quarterly
label: EPS (Quarterly)
description: Single-quarter basic earnings per share, as reported.
unit: usdPerShare
basis: quarterly
methodology: Single-quarter as-reported values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true
- slug: fcf-quarterly
label: Free Cash Flow (Quarterly)
description: Single-quarter free cash flow, as reported.
unit: usd
basis: quarterly
methodology: Single-quarter as-reported values from company financial statements (vendor-sourced). Available as chart renders; JSON egress arrives as the EDGAR-sourced fundamentals lane extends to this metric.
series: false
chart: true