Skip to content
Revenue Breakdown

Get revenue Sankey diagram

Query revenue Sankey data of a security for recent periods by report period type, showing how revenue flows from segments to costs, gross profit, expenses, and profit. Used for the revenue Sankey diagram on the stock Financials page. Each period contains nodes, links between nodes, and node display order. Arrange nodes by order, draw links from links, and optionally hide nodes with a zero amount.

GEThttps://api.lbkrs.com/v2/stock-info/revenue-sankey

Parameters

counter_idstringqueryRequired

Security code, such as ST/US/AAPL

reportstringqueryRequired

Report period type:

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

Responses

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

Sankey data by reporting period

Child attributes
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

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

linksarray<object>

Links between nodes

Child attributes
colorstring

Link color

sourcestring

Source node key

targetstring

Target node key

orderarray<string>

Display order of node keys

Whale Docs