Docs menuexpand_more
travel_exploreTry in the API Viewer

Guides

Reference

Other pages

Endpoints

search
appsAll APIs
functionHow metrics are calculated

Cookbook · Applied · In-depth 6

Compare treasury shares of Japanese companies: own and cross-held treasury shares and their year-on-year change from the voting rights table via API

Pull the treasury shares table from the voting rights section of Japanese annual reports by API and line up own and cross-held treasury shares of five auto parts makers in JavaScript, as a share of issued shares at year end. Covers finding the company's own row, the year-on-year change in percentage points, empty tables versus 0, the denominator for companies with class shares, and the difference from the treasury share count in the earnings release.
For companiesFor investors13 min read
open_in_newIllustrated series on Qiita (Japanese)The same topic is also published as an illustrated series on Qiita.

Endpoints used

In the previous part of this deep-dive series, we lined up the fees competing companies pay their auditors. This time we look at the company's own shares that it holds (treasury shares). The "voting rights" section (議決権の状況) of the Japanese annual securities report (yuho) has a "treasury shares etc." table (自己株式等). It lists shares the company holds in its own name (own treasury shares) and the company's shares held by subsidiaries and similar companies (cross-held shares, 相互保有株式), with the number of shares and the ratio to total issued shares. ZENITH Code returns this table from /stable/treasury-shares, one call per company.

This guide builds five things in Node.js:

  • Own treasury shares and their ratio to issued shares at year end (your own calculation and the API's value)
  • The cross-held rows (rows under names other than the company itself)
  • The change in the own treasury share ratio from the prior year, in percentage points
  • The gap between the treasury share count in the earnings release and the table's own treasury shares
  • Output that does not misread empty tables, 404s and an unidentified own row as 0

The examples are the same five auto parts makers as in part 5: Denso (6902), Aisin (7259), Toyota Boshoku (3116), Musashi Seimitsu Industry (7220) and F.C.C. (7296), using annual reports for the fiscal years ended March 2026 and March 2025. Every figure is from API responses retrieved at 15:08 Japan time on November 11, 2026.

Holder names come back in Japanese, as filed. The guide adds English glosses where it helps.

What the treasury shares table contains

The "shares" part of the annual report (株式等の状況) has the voting rights section, and within it the treasury shares table. It shows shares without voting rights under Article 308 of the Companies Act: the first row is the company itself, the following rows are cross-holding companies, and a total row closes the table.

Where in the response Contents
fiscalPeriod, docId Fiscal period and the document ID of the annual report read
votingRightsTable.holders[] One row per holder: name, ownName (in the holder's own name), othersNames (in others' names), total and ratio (ratio to total issued shares)
votingRightsTable.total The total row, with the same fields
issuedShares[] Issued shares. The row with empty members is the total including class shares; rows such as jpcrp_cor_OrdinaryShare are per class. atFiscalYearEnd and atFilingDate
consolidated Period-end share counts from the earnings release summary (issuedShares, treasuryShares). null if there is no row for the same fiscal period

Share counts are in shares; ratios are 0–1 decimals (0.0752 = 7.52%). A table with no share rows in the original comes back with an empty holders array and total set to null. treasury-shares and /stable/search-symbol, which we use for the company name, both cost 1 token per call and are available on the Free plan (as of November 11, 2026). Five companies take 15 calls and 15 tokens.

Step 1: fetch the API, one company at a time

Create an API key after signing up and put it in the ZENITH_API_KEY environment variable so it never sits in your code. Node.js 18 and later ship fetch, so no packages are needed. Save the file as treasury-shares.mjs.

// treasury-shares.mjs — compare treasury share ratios of competing companies (Node.js 18+)
const BASE_URL = "https://api.zenithcode.net/stable";
const API_KEY = process.env.ZENITH_API_KEY;
if (!API_KEY) throw new Error("Set your API key in the ZENITH_API_KEY environment variable");
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));

async function get(path, params) {
  const url = `${BASE_URL}${path}?${new URLSearchParams(params)}`;
  const res = await fetch(url, { headers: { "x-api-key": API_KEY, Accept: "application/json" } });
  if (res.status === 404) return { notFound: await res.json().catch(() => ({})) }; // nothing to show; the body's message says why
  if (!res.ok) throw new Error(`${path} ${res.status}`);
  return res.json();
}

// One year before a fiscal period (YYYY-MM). 2026-03 → 2025-03
const previousYear = (fp) => `${Number(fp.slice(0, 4)) - 1}${fp.slice(4)}`;

// One company. Fetch the name (to find the company's own row), the latest table and the table one year earlier
async function fetchCompany(symbol) {
  const hits = await get("/search-symbol", { query: symbol, limit: 5 }); // prefix match, so pick the row with the same code
  const name = Array.isArray(hits) ? hits.find((h) => h.symbol === symbol)?.nameJa ?? null : null;
  await sleep(1000);
  const cur = await get("/treasury-shares", { symbol }); // an array with one annual report; omitting fiscalPeriod gives the latest
  if (cur.notFound) return { symbol, name, current: null, prior: null, notFound: cur.notFound };
  await sleep(1000);
  const pri = await get("/treasury-shares", { symbol, fiscalPeriod: previousYear(cur[0].fiscalPeriod) });
  return { symbol, name, current: cur[0], prior: pri.notFound ? null : pri[0], notFound: null };
}

The first call omits fiscalPeriod to get the latest annual report; the second passes the period one year earlier. A 404 is not an error but "the treasury shares table could not be read". search-symbol matches by prefix, so 2593 also returns the preferred share 25935. We use only the row with the same code.

Step 2: split own and cross-held treasury shares

The rows carry no "own" or "cross-held" label. We take the row under the company's own name as own treasury shares and the rest as cross-held. Names are compared after normalizing "株式会社" and "㈱" (both mean "Co., Ltd.") and full-width versus half-width characters.

// Normalize company names: full/half width, "株式会社" and "㈱", spaces, and a trailing "(注)" note
const companyKey = (name) => String(name ?? "").normalize("NFKC")
  .replace(/\((?:注|※)[^)]*\).*$/, "")
  .replace(/株式会社|\(株\)/g, "")
  .replace(/\s/g, "");

// Is this the company's own row? Some companies write "当社" (the Company) or "自己" (own)
function isOwnRow(rowName, companyName) {
  const key = companyKey(rowName);
  if (/^(当社|自己|自社)/.test(key)) return true;
  return Boolean(companyKey(companyName)) && key === companyKey(companyName);
}

// Total issued shares at year end, including class shares (the row with empty members). null if missing
const issuedAtYearEnd = (report) => report?.issuedShares?.find((i) => i.members.length === 0)?.atFiscalYearEnd ?? null;

const sumOf = (rows) => {
  const v = rows.map((r) => r.total).filter(Number.isFinite);
  return v.length ? v.reduce((s, x) => s + x, 0) : null;
};

// Split the table into own and cross-held shares and compute ratios to issued shares at year end
function treasuryRows(report, companyName) {
  if (!report) return null;
  const holders = report.votingRightsTable?.holders ?? [];
  const ownRows = holders.filter((h) => isOwnRow(h.name, companyName));
  const issued = issuedAtYearEnd(report);
  // If the own row is not found, own and cross-held are both null (not 0, so every row is not counted as cross-held)
  const own = ownRows.length ? sumOf(ownRows) : null;
  const mutualRows = ownRows.length ? holders.filter((h) => !ownRows.includes(h)) : [];
  const mutual = ownRows.length ? (mutualRows.length ? sumOf(mutualRows) : 0) : null;
  const share = (n) => (n !== null && Number.isFinite(issued) && issued > 0 ? n / issued : null);
  return {
    fiscalPeriod: report.fiscalPeriod, docId: report.docId, issued,
    own, ownRatio: share(own), apiOwnRatio: ownRows.length === 1 ? ownRows[0].ratio ?? null : null,
    mutual, mutualRatio: share(mutual), mutualRows,
    total: report.votingRightsTable?.total?.total ?? null, apiTotalRatio: report.votingRightsTable?.total?.ratio ?? null,
    rowsSum: sumOf(holders), holderCount: holders.length,
  };
}

The denominator is total issued shares, including class shares, at year end. The table is as of the fiscal year end, so we do not divide by the count at the filing date.

Own treasury shares of the five companies for the current year (fiscal year ended March 2026):

Company Issued shares (year end) Own treasury shares Ratio (own calculation) API ratio
Denso 2,910,979,691 218,934,200 7.52% 0.0752
Aisin 759,023,902 34,451,000 4.54% 0.0454
Toyota Boshoku 187,665,738 9,006,000 4.80% 0.048
Musashi Seimitsu 65,581,861 40,900 0.06% 0.0006
F.C.C. 52,056,530 3,621,800 6.96% 0.0696

For all five, the ratio we compute (rounded to two decimals) matches the API's ratio. The table counts shares in trading units of 100 shares for all five, so treasury shares below one unit are not included.

Step 3: look at the cross-held rows

Rows under names other than the company are cross-held shares: the company's shares held by companies in which it holds a quarter or more of the voting rights and the like. Like own treasury shares, they carry no voting rights.

Company Cross-held row Shares Ratio (own calculation)
Denso 伊藤精工株式会社 (Ito Seiko) 333,100 0.01%
Denso 株式会社デンソーパーラー (Denso Parlor) 28,500 0.00%
The other four No rows 0 —
  • Only Denso has cross-held rows among the five: two rows, 361,600 shares in total.
  • The other four have only their own row and the total row. The table has rows, the own row was found, and no other rows remain, so the code sets cross-held shares to 0.
  • The Denso Parlor row has an API ratio of 0 (the ratio is small and shows as 0.00 at two decimals in the original). It still has shares, so do not drop rows by ratio alone.

The total is own plus cross-held shares. For Denso, 218,934,200 + 361,600 = 219,295,800 shares, and the API's total row (total.total) matches the sum of the rows. For the other four, the total equals own treasury shares.

Step 4: line up the change in the ratio from the prior year

We pass the same table from the annual report one year earlier through treasuryRows and take the difference in the own ratio in percentage points. Looking only at the difference in shares hides how the ratio moved when issued shares changed.

// Difference in the ratio between this year and the prior year (percentage points). Empty if either is empty
const pointChange = (cur, pri) => (cur?.ownRatio != null && pri?.ownRatio != null ? (cur.ownRatio - pri.ownRatio) * 100 : null);
Company Prior year (FY ended March 2025) Current year (FY ended March 2026) Change
Denso 3.21% 7.52% +4.31 pt
Aisin 6.35% 4.54% −1.81 pt
Toyota Boshoku 4.81% 4.80% −0.01 pt
Musashi Seimitsu 0.05% 0.06% +0.01 pt
F.C.C. 6.98% 6.96% −0.02 pt

The change is the difference between the ratios before rounding. The underlying share counts are:

Company Own treasury shares (prior → current) Issued shares (prior year end → year end)
Denso 93,558,800 → 218,934,200 2,910,979,691 → 2,910,979,691
Aisin 51,362,800 → 34,451,000 809,023,902 → 759,023,902
Toyota Boshoku 9,023,500 → 9,006,000 187,665,738 → 187,665,738
Musashi Seimitsu 35,800 → 40,900 65,556,761 → 65,581,861
F.C.C. 3,632,800 → 3,621,800 52,056,530 → 52,056,530
  • Denso's issued shares did not change, and its own treasury shares rose by 125,375,400.
  • Aisin's own treasury shares and issued shares both fell. Issued shares fell by 50,000,000, and the current-year column of the annual report's "disposal and holding of acquired treasury shares" (取得自己株式の処理状況及び保有状況) lists 50,000,000 acquired treasury shares disposed of by cancellation.
  • A change in treasury shares is the net of acquisitions, disposals and cancellations. Check the breakdown in the annual report's "acquisition of treasury shares" section (自己株式の取得等の状況). The table does not give reasons for the change, so read it as a difference.

Step 5: line up the treasury share count in the earnings release

The consolidated field of the same response has the period-end treasury share count from the earnings release summary. That count is on a consolidated basis and is counted differently from the voting rights table. The code only lines up the gap; it does not subtract treasury shares from issued shares.

// Gap between the earnings release's treasury shares (consolidated) and the table's own shares. Counted differently, so only show the gap
function releaseGap(report, rows) {
  const release = report?.consolidated?.treasuryShares ?? null;
  return { release, gap: release !== null && rows?.own != null ? release - rows.own : null,
    issuedAtFiling: report?.issuedShares?.find((i) => i.members.length === 0)?.atFilingDate ?? null };
}
Company Treasury shares in earnings release Own treasury shares in table Gap (release − table) Issued shares (year end → filing date)
Denso 219,039,381 218,934,200 +105,181 2,910,979,691 → 2,910,979,691
Aisin 34,451,032 34,451,000 +32 759,023,902 → 726,023,902
Toyota Boshoku 9,006,039 9,006,000 +39 187,665,738 → 187,665,738
Musashi Seimitsu 40,990 40,900 +90 65,581,861 → 65,581,861
F.C.C. 3,621,868 3,621,800 +68 52,056,530 → 52,056,530
  • For four companies the gap is under 100 shares, consistent with the table counting in units of 100 shares.
  • For Denso the gap exceeds 100,000 shares. Check what it consists of in the annual report's acquisition of treasury shares section and the notes to the consolidated financial statements.
  • Aisin's issued shares at the filing date are 33,000,000 lower than at year end. Cancellations and the like after year end are not in the year-end table.

Step 6: print and line up

Finally, call the functions above and print the results.

const num = (v) => (v === null || v === undefined ? "—" : v.toLocaleString());
const pct = (v) => (v === null || v === undefined ? "—" : `${(v * 100).toFixed(2)}%`);
const pt = (v) => (v === null ? "—" : `${v > 0 ? "+" : ""}${v.toFixed(2)}`);

// Object.keys sorts numeric-looking keys in ascending order, so keep the order in an array
const symbols = process.argv.length > 2 ? process.argv.slice(2) : ["6902", "7259", "3116", "7220", "7296"];
const companies = [];
for (const s of symbols) { companies.push(await fetchCompany(s)); await sleep(1000); }

console.log("## Documents");
for (const c of companies) {
  if (!c.current) { console.log(c.symbol, c.name ?? "", "404", c.notFound.message ?? ""); continue; }
  console.log(c.symbol, c.name ?? "(name not found)", c.current.fiscalPeriod, c.current.docId, "prior", c.prior ? `${c.prior.fiscalPeriod} ${c.prior.docId}` : "none");
}

console.log("\n## Own treasury shares (current): issued (year end) own ratio (own calc, API) cross-held total rows-sum");
for (const c of companies.filter((x) => x.current)) {
  const t = treasuryRows(c.current, c.name);
  console.log(c.symbol, num(t.issued), num(t.own), pct(t.ownRatio), t.apiOwnRatio, num(t.mutual), num(t.total), num(t.rowsSum),
    t.holderCount === 0 ? "(no share rows in the table; check the original)" : t.own === null ? "(own row not found by name)" : "");
  for (const r of t.mutualRows) console.log("   cross-held", r.name, num(r.total), pct(t.issued ? r.total / t.issued : null));
}

console.log("\n## Own treasury share ratio (prior → current, change in points)");
for (const c of companies.filter((x) => x.current)) {
  const cur = treasuryRows(c.current, c.name);
  const pri = treasuryRows(c.prior, c.name);
  console.log(c.symbol, pri ? pri.fiscalPeriod : "—", pct(pri?.ownRatio), "→", cur.fiscalPeriod, pct(cur.ownRatio), pt(pointChange(cur, pri)),
    "| shares", num(pri?.own), "→", num(cur.own), "| issued", num(pri?.issued), "→", num(cur.issued));
}

console.log("\n## Versus the earnings release: release (consolidated) table-own gap / issued (year end → filing date)");
for (const c of companies.filter((x) => x.current)) {
  const t = treasuryRows(c.current, c.name);
  const g = releaseGap(c.current, t);
  console.log(c.symbol, num(g.release), num(t.own), g.gap === null ? "—" : `${g.gap > 0 ? "+" : ""}${num(g.gap)}`, "/", num(t.issued), "→", num(g.issuedAtFiling));
}

Run ZENITH_API_KEY=... node treasury-shares.mjs for the five companies, or pass securities codes such as node treasury-shares.mjs 7203 9501 to run it for other companies. Each company takes 3 calls (2 when treasury-shares returns 404).

Here is the Denso and Aisin part of the output:

## Own treasury shares (current): issued (year end) own ratio (own calc, API) cross-held total rows-sum
6902 2,910,979,691 218,934,200 7.52% 0.0752 361,600 219,295,800 219,295,800
   cross-held 伊藤精工株式会社 333,100 0.01%
   cross-held 株式会社デンソーパーラー 28,500 0.00%
7259 759,023,902 34,451,000 4.54% 0.0454 0 34,451,000 34,451,000

## Own treasury share ratio (prior → current, change in points)
6902 2025-03 3.21% → 2026-03 7.52% +4.31 | shares 93,558,800 → 218,934,200 | issued 2,910,979,691 → 2,910,979,691
7259 2025-03 6.35% → 2026-03 4.54% -1.81 | shares 51,362,800 → 34,451,000 | issued 809,023,902 → 759,023,902

The result

Own treasury share ratios of the five companies (as a share of total issued shares at year end):

Company Prior year (FY ended March 2025) Current year (FY ended March 2026) Change (pt) Cross-held (current)
Denso 3.21% 7.52% +4.31 361,600 shares (2 rows)
Aisin 6.35% 4.54% −1.81 0
Toyota Boshoku 4.81% 4.80% −0.01 0
Musashi Seimitsu 0.05% 0.06% +0.01 0
F.C.C. 6.98% 6.96% −0.02 0

The size of a ratio and the direction of a change come from the mix of acquisitions, disposals and cancellations. What this table tells you is how much of the issued shares at year end are the company's own shares without voting rights, and how much that moved over a year.

Results on companies with different characteristics

We ran the same code on 10 companies that differ from the five examples (November 11, 2026, calling one company at a time).

Company Characteristic Result
Toyota Motor (7203) Many cross-held rows Own ratio 17.39% → 17.48% (+0.09). 20 cross-held rows, 24,873,100 shares in total. The rows add up to the total
Takeda Pharmaceutical (4502) IFRS 0.74% → 0.40% (−0.34). The accounting standard makes no difference (this is the voting rights table of the annual report)
Fast Retailing (9983) August year end, IFRS The latest is the fiscal year ended August 2025. 3.61% → 3.58% (−0.03). Lined up with March year-end companies, "current year" covers a different period
Ito En (2593) April year end, preferred shares Our calculation is 0.77% → 0.76%; the API's ratio is 0.0104 (1.04%). See the note below
Tokyo Electric Power Company Holdings (9501) Class shares, cross-held rows 0.10% → 0.10%. Two cross-held rows. The API's ratio also matches division by the total including class shares
Fujita Corporation (3370) Class shares, no rows in the table holders is empty and total is null in both years. Ratio and change are "—"
Nippon Knowledge (5252) No rows in the prior year only 200 shares (0.00%) this year. The prior year's table is empty, so the change is "—"
Veritas In Silico (130A) December year end, no rows in the table Empty in both years. The earnings release shows 0 treasury shares
Nippon Building Fund (8951) REIT 404 (Treasury share disclosure not found)
NEXT FUNDS TOPIX ETF (1306) ETF 404
  • For companies with class shares, the denominator of the original ratio differs by company. Ito En's API ratio of 1.04% matches 889,800 own shares divided by issued ordinary shares (85,212,380). Tokyo Electric Power Company Holdings' API ratio matches division by the total including class shares. This code divides by the total including class shares for both, so for Ito En it does not match the API's ratio. When comparing companies, keep your own denominator consistent and read the original ratio within one company.
  • For a year with an empty table, no ratio or change is shown. Subtracting an empty table as 0 would make Nippon Knowledge look "up 0.00 points" and Fujita Corporation look "unchanged at 0%". Both show treasury shares below 100 in the earnings release, so an empty table does not mean there are no treasury shares.
  • A 404 means the treasury shares table could not be read for that security. Securities that do not file an ordinary annual report, such as REITs and ETFs, return 404.

Reading the figures

Treasury share figures are easy to compare the wrong way unless you know which table they come from.

Scope and denominator

  • This table is a voting rights disclosure. Its scope differs from the consolidated treasury share count (the earnings release figure). Shares outstanding cannot be derived from it.
  • The denominator is total issued shares at year end, not at the filing date (Aisin's fell by 33,000,000 after year end).
  • For companies with class shares, the denominator of the original ratio is not uniform. Some divide by ordinary shares only (Ito En), others by the total including class shares (Tokyo Electric Power Company Holdings).
  • The earnings release's issued shares may also be ordinary shares only for companies with class shares. For Tokyo Electric Power Company Holdings, the release shows 1,607,017,531 issued shares, the ordinary share count, while the table's total is 3,547,017,531.

Empty tables and 0

  • Empty (holders empty, total null) is not 0. For a company with no rows in the table, ratio and change are "—".
  • Cross-held shares of 0 can only be stated when the own row was found. When the own row cannot be found by name, both own and cross-held are null, so every row is not counted as cross-held.
  • Rows with a 0.00% ratio still have shares. As with Denso Parlor, do not drop rows by ratio alone.

Names and periods

  • The own row is identified by name. "株式会社" versus "㈱" and full-width versus half-width characters are normalized. A company that changed its name, or one that puts its address in the name column, may leave the own row unfound.
  • "Current year" is each company's own fiscal year. Lining up August or December year-end companies with March year-end companies shifts the period. Show fiscalPeriod in the table to check.
  • The change in the ratio is the difference before rounding. It may differ by 0.01 points from subtracting the displayed ratios.

Asking an AI assistant for a summary

Given only a table of share counts, an AI assistant tends to guess the reasons for changes. Pass the source document IDs and the original text, and have it list only what is written.

The text below is the original wording of the treasury shares table (自己株式等) in the voting rights section (議決権の状況), and of the disposal and holding of acquired treasury shares (取得自己株式の処理状況及び保有状況) in the acquisition of treasury shares section (自己株式の取得等の状況), of Japanese annual securities reports. Each company's document ID is the source (Denso S100Y9T1, Aisin S100YAWO, Toyota Boshoku S100Y9AH, Musashi Seimitsu S100YGX6, F.C.C. S100YFKQ).

- For each company, tabulate own treasury shares, the names and share counts of cross-holding holders, shares cancelled in the current fiscal year, and treasury shares held at the end of the current fiscal year.
- Copy share counts exactly as written in the original.
- Write "not stated in the original" for anything not written, and do not guess.
- Do not comment on the reasons for acquiring, disposing of or cancelling treasury shares, or on whether they are good or bad.

(paste each company's original text here)

Pass the ratios and changes printed by the code in Step 6 separately. Keeping divisions and subtractions out of the assistant's hands makes the figures easier to check.

Troubleshooting

Symptom Where to look
treasury-shares returns 404 It does not always mean "no treasury shares". Securities that do not file an ordinary annual report, such as REITs and ETFs, and companies without an annual report yet return 404. Check the original
"no share rows in the table" holders is empty and total is null: the original table shows dashes or the like. Do not assume 0; check the earnings release count or the original
"own row not found by name" The name from search-symbol does not match the name in the table (a name change, how the name column is written). Check the first row of the original table
Your ratio does not match the API's ratio For companies with class shares, the original may use ordinary shares only as the denominator (Ito En). Divide by the per-class counts in issuedShares to check
The ratio is off by 0.01 The original's rounding (truncation and the like) versus our rounding. Use the API's ratio when comparing with the original
The prior-year ratio is "—" There is no annual report one year earlier (newly listed, a change of fiscal year end), or the prior table is empty. Do not subtract empty as 0
The earnings release count differs a lot from the table The release is consolidated. Check the acquisition of treasury shares section and the notes to the consolidated financial statements
Issued shares at the filing date differ from year end Cancellations after year end and the like. Divide by the year-end count
Lining up companies with different year-ends "Current" is each company's own fiscal year. Check fiscalPeriod

Related links

A Japanese series with screenshots is on Qiita.

Before you read the numbers

Points about the endpoints in this article that are easy to misread as wrong data.

visibility_off
The screens and numbers in these articles leave out stock prices and metrics calculated from them. Before showing live data on your own screens, check what you may display. What you can display
gavel

Disclaimer

This page explains how to use a Japanese equity data API and how its data is defined. It is not a solicitation to invest or a recommendation to buy or sell any security. The content reflects information at the time of writing and is not guaranteed to be accurate or complete. Investment decisions are your own responsibility.

What you may show or provide to third parties depends on your plan and Article 8 of the Terms. Exchange data such as stock prices may not be shown to third parties on any plan. Edited or processed information from which the original stock prices or similar market data can be readily reconstructed is treated as exchange data and may not be displayed or redistributed to third parties. No plan or separate agreement with us overrides this restriction. Terms, Article 8 · Data sources and terms of use