Skip to content
Revenue Breakdown

Get quarterly revenue Sankey diagram

Query quarterly revenue Sankey data of a security, used to show a single quarter's revenue breakdown in scenarios such as earnings commentary and earnings live streams. Locate the reporting period with report, fiscal_year, and fiscal_period, or pass only rpt_time to locate it by earnings release time. Compared with GET /v2/stock-info/revenue-sankey, nodes can contain children, and the share calculation base basis is returned. Skip period data whose basis is empty.

GEThttps://api.lbkrs.com/v1/stock-info/quarter-sankey

Parameters

counter_idstringqueryRequired

Security code, such as ST/US/AAPL

reportstringquery

Report period type:

  • af - Annual report
  • saf - Semi-annual report
  • qf - Single-quarter report
fiscal_yearintegerquery

Fiscal year, such as 2025

fiscal_periodstringquery

Fiscal period number, such as 4 for the fourth fiscal quarter

rpt_timestringquery

Earnings release time, used to locate the reporting period by release time. When provided, report, fiscal_year, and fiscal_period can be omitted

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get quarterly revenue Sankey diagram” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
listarray<object>

Sankey data, usually for a single quarter

Child attributes
periodstring

Reporting period identifier

fiscal_yearinteger

Fiscal year

reportstring

Report period type, such as af (annual), saf (semi-annual), or qf (single quarter)

currencystring

Currency of the amounts, such as USD

basisstring

Base for share calculation. A node's share is its absolute amount divided by this value

nodesarray<object>

Nodes

Child attributes
keystring

Node key, referenced in links and order

namestring

Node display name

levelinteger

Level (column) of the node, increasing from left to right

valuestring

Node amount in currency. May be negative

yoystring

Year-over-year change rate as a percentage number, without %

radiostring

Share of the node

catestring

Node category, used for coloring. Not colored when empty

childrenarray<object>

Child nodes, placed at the same level as the parent

Child attributes
keystring

Node key, referenced in links and order

namestring

Node display name

levelinteger

Level (column) of the node, increasing from left to right

valuestring

Node amount in currency. May be negative

yoystring

Year-over-year change rate as a percentage number, without %

radiostring

Share of the node

catestring

Node category, used for coloring. Not colored when empty

linksarray<object>

Links between nodes

Child attributes
sourcestring

Source node key

targetstring

Target node key

orderarray<string>

Display order of node keys

Whale Docs