Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: TGMCharts Series 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: Series
paths:
/api/v1/series/{symbol}/{metric}:
get:
operationId: getMetricSeries
summary: Historical series for a TGMCharts-computed or SEC-EDGAR-sourced metric (JSON or…
description: 'Serves the derived-data tier (daily valuation/yield lines, rolling TTM flows, quarterly margins) plus the EDGAR-sourced statement metrics (revenue, net-income, capex, buybacks, stock-based-comp, r-and-d and quarterly revenue/net-income — as filed with the SEC, public domain; marked source: sec-edgar-companyfacts in the catalog). Remaining statement metrics are chart renders until EDGAR coverage extends to them.'
parameters:
- name: symbol
in: path
required: true
description: Ticker symbol (US-listed stocks and ETFs; about 4,000 covered; a person can add an uncovered one on its stock page).
schema:
type: string
pattern: ^[A-Za-z][A-Za-z0-9.-]{0,9}$
- name: metric
in: path
required: true
description: Series-tier metric slug.
schema:
type: string
enum:
- pe-ratio
- ps-ratio
- pb-ratio
- pfcf-ratio
- pocf-ratio
- ev-ebitda
- ev-ebit
- ev-sales
- ev-fcf
- ev-assets
- earnings-yield
- fcf-yield
- ebitda-yield
- ocf-yield
- dividend-yield
- total-return
- roic
- revenue-ttm
- net-income-ttm
- fcf-ttm
- ebitda-ttm
- capex-ttm
- buybacks-ttm
- sbc-ttm
- rd-ttm
- gross-margin-quarterly
- operating-margin-quarterly
- net-margin-quarterly
- revenue
- net-income
- capex
- buybacks
- stock-based-comp
- r-and-d
- revenue-quarterly
- net-income-quarterly
- name: years
in: query
required: false
description: 'Trailing window in years (2–20). Series default: the full stored history. Chart defaults: 20 for daily/monthly lines, 10 for annual bars, 3 for quarterly/TTM.'
schema:
type: integer
minimum: 2
maximum: 20
- name: period
in: query
required: false
description: 'Basis alias: when a metric has a sibling of this basis (e.g. revenue + ttm), the request 308-redirects to the canonical per-basis slug (revenue-ttm).'
schema:
type: string
enum:
- annual
- quarterly
- ttm
- daily
- name: format
in: query
required: false
description: json (default) or csv (date,value rows with provenance comments).
schema:
type: string
enum:
- json
- csv
responses:
'200':
description: 'Series with methodology and as-of. Sector-hard-gated metrics return points: null with an applicability explanation; an ebitda-ttm whose stored completeness attests not-applicable (EBITDA not meaningful for the company type) returns the same points: null shape with the not-meaningful sentence and the completeness block still projected; empty histories return [] with a note — honest states, never fabricated.'
headers:
X-RateLimit-Limit:
description: 'Keyed requests only: the account''s units per window.'
schema:
type: integer
X-RateLimit-Remaining:
description: 'Keyed requests only: units left in the current window.'
schema:
type: integer
X-RateLimit-Window:
description: 'Keyed requests only: the quota window.'
schema:
type: string
enum:
- day
- month
content:
application/json:
schema:
$ref: '#/components/schemas/SeriesResponse'
examples:
KO-revenue-ttm:
summary: The live revenue-ttm series for KO, years=2
value:
symbol: KO
name: The Coca-Cola Company
metric: revenue-ttm
label: Revenue (TTM)
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.
asOf: '2026-11-25T17:49:19.170Z'
years: 2
points:
- date: '2024-12-31'
value: 47061000000
- date: '2025-03-28'
value: 46890000000
- date: '2025-06-27'
value: 47062000000
- date: '2025-09-26'
value: 47663000000
- date: '2025-12-31'
value: 47941000000
- date: '2026-04-03'
value: 49284000000
- date: '2026-07-03'
value: 50129000000
- date: '2026-10-02'
value: 51054000000
applicability: applicable
completeness:
state: verified-complete
basis: precompute-audit v1 (revenue, cash flow) · revenue
asOf: '2026-11-25T17:49:03.172Z'
expectedQuarters: 40
servedQuarters: 40
disclosures: []
links:
chart: https://tgmcharts.com/api/v1/charts/KO/revenue-ttm
page: https://tgmcharts.com/stocks/KO
docs: https://tgmcharts.com/llms.txt
openapi: https://tgmcharts.com/api/v1/openapi.json
text/csv:
schema:
type: string
'400':
description: Unknown query key or out-of-range value.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: 'No key: `reason: "sign_in_required"` — data calls need a free TGMCharts account (Google or a confirmed email, no card); `keyUrl` is where to create a free key. Also answered for a presented key that is malformed, unknown, or revoked (`error: "Invalid API key"`).'
headers:
WWW-Authenticate:
description: Bearer realm="tgmcharts" when no key was sent.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
sign_in_required:
summary: A data call without a key
value:
error: 'Sign in to use the TGMCharts API. It''s free and takes a few seconds: create a free key (no card) with Google or a confirmed email at https://tgmcharts.com/developers/keys, then send it as Authorization: Bearer tgm_live_… An agent with no browser can POST https://tgmcharts.com/api/v1/keys/device and show its person the approval link.'
reason: sign_in_required
keyUrl: https://tgmcharts.com/developers/keys
deviceUrl: https://tgmcharts.com/api/v1/keys/device
signUpUrl: https://tgmcharts.com/register?callbackUrl=/developers/keys
docs: https://tgmcharts.com/developers/docs/authentication-and-limits.md
'404':
description: Symbol not covered, or metric not in the series tier (payload lists valid slugs).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
ZZZZ:
summary: A well-formed ticker that is not covered (ZZZZ)
value:
error: Symbol not covered
symbol: ZZZZ
hint: If this is a real ticker, coverage onboarding (~2 minutes) starts when a person asks for it with one click at https://tgmcharts.com/stocks/ZZZZ. Fetching that page does not start it.
'429':
description: The account's tier quota is exhausted (Retry-After = window reset).
headers:
Retry-After:
description: Seconds until the quota window resets.
schema:
type: integer
minimum: 0
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Series
components:
schemas:
Error:
type: object
properties:
error:
type: string
reason:
type: string
description: Machine-readable cause, for example sign_in_required (a data call without a key).
keyUrl:
type: string
format: uri
description: Where to create a free key.
deviceUrl:
type: string
format: uri
description: 'For an agent with no browser: POST here to ask for a key, then show your person the approval link.'
signUpUrl:
type: string
format: uri
description: Where a person without an account creates one (it returns to the key console).
upgradeUrl:
type: string
format: uri
docs:
type: string
format: uri
hint:
type: string
required:
- error
SeriesPoint:
type: object
properties:
date:
type: string
format: date
value:
type: number
required:
- date
- value
SeriesResponse:
type: object
properties:
symbol:
type: string
name:
type:
- string
- 'null'
metric:
type: string
label:
type: string
unit:
type: string
enum:
- usd
- usdPerShare
- percent
- ratio
basis:
type: string
enum:
- daily
- monthly
- annual
- quarterly
- ttm
methodology:
type: string
source:
type: string
const: sec-edgar-companyfacts
description: 'Present on EDGAR-lane metrics: the values are as filed with the SEC (public domain).'
asOf:
type:
- string
- 'null'
years:
type:
- integer
- 'null'
points:
description: null = intentionally withheld (sector-inappropriate); [] = no stored history (honest gap).
oneOf:
- type: array
items:
$ref: '#/components/schemas/SeriesPoint'
- type: 'null'
applicability:
oneOf:
- type: string
const: applicable
- type: object
properties:
tone:
type: string
enum:
- hard
- soft
message:
type: string
required:
- tone
- message
completeness:
description: 'Present on the ebitda-ttm, revenue-ttm and fcf-ttm metrics only: the precompute audit''s attestation of the stored trailing-ten-year TTM series (EBITDA, revenue or free cash flow). For revenue-ttm and fcf-ttm the disclosure kinds are withheld-value (a quarter''s figure failed a data check; reason statement-rule or source-quarantine), not-meaningful (free cash flow for a bank, insurer, broker, mortgage REIT or fund), input-value-null (the filings report no figure for that quarter), irregular-period (a quarter''s period end does not line up), input-row-missing, cadence-half-year and window-refused (every input present yet the window was refused; state stays incomplete). state is verified-complete only when the pipeline''s own audit ran on the document and found every expected window-end served; a document predating the audit reports unknown with null counts. Disclosures name every unserved window-end and why. On revenue-ttm and fcf-ttm, when the stored series serves a window-end the audit disclosed (a kept older series the audit did not see), state is unknown with null counts. A served window-end leaves the missing-figure disclosures, and every other disclosure stays. withheld-value and not-meaningful stay as they are and can then name a served window-end, meaning the served figure there fails a current check. notes (present only when one applies) are informational and name SERVED window-ends only: da-includes-other marks windows with a quarter whose depreciation & amortization is the company''s combined depreciation, amortization and other line; a note never counts as a gap or changes state.'
type: object
properties:
state:
type: string
enum:
- verified-complete
- complete-with-disclosures
- incomplete
- not-applicable
- unknown
basis:
type:
- string
- 'null'
asOf:
type:
- string
- 'null'
expectedQuarters:
type:
- integer
- 'null'
servedQuarters:
type:
- integer
- 'null'
disclosures:
type: array
items:
type: object
properties:
kind:
type: string
enum:
- withheld-depreciation
- withheld-reconstructed
- withheld-value
- not-meaningful
- irregular-period
- window-refused
- input-row-missing
- input-value-null
- input-negative-da
- filing-negative-da
- cadence-half-year
- conflicting-rows
- transition-stub
reason:
type: string
enum:
- statement-rule
- source-quarantine
description: 'withheld-value only (revenue-ttm, fcf-ttm): why the quarter''s figure was held back.'
periodEnds:
type: array
items:
type: string
proof:
type: string
enum:
- proved
- unproven
fiscalYears:
type: array
items:
type: string
note:
type: string
required:
- kind
- periodEnds
- note
notes:
type: array
items:
type: object
properties:
kind:
type: string
enum:
- da-includes-other
periodEnds:
type: array
items:
type: string
note:
type: string
required:
- kind
- periodEnds
- note
required:
- state
- basis
- asOf
- expectedQuarters
- servedQuarters
- disclosures
note:
type: string
links:
type: object
epsBasis:
description: Present on the pe-ratio and earnings-yield metrics only, and only when at least one returned point divides by a diluted EPS we derived (that quarter's net income ÷ its diluted shares) because the company's filing did not state the quarter and the fiscal year reconciled with the filed annual EPS within 3%. derivedQuarters are the quarter ends (YYYY-MM-DD, oldest first) whose derived EPS at least one returned point used; ranges gives, per such quarter, the days (inclusive) its EPS was in the trailing window, through null while it still is; note is one plain sentence naming the quarters. Absent otherwise.
type: object
properties:
derivedQuarters:
type: array
items:
type: string
format: date
ranges:
type: array
items:
type: object
properties:
quarter:
type: string
format: date
from:
type: string
format: date
through:
type:
- string
- 'null'
format: date
required:
- quarter
- from
- through
note:
type: string
required:
- derivedQuarters
- ranges
- note
required:
- symbol
- metric
- label
- unit
- basis
- methodology
- points
- applicability
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
# --- truncated at 32 KB (42 KB total) ---
# Full source: https://artifacts.apis.io/tgmcharts-com/openapi/tgmcharts-com-series-api-openapi.yml