Financial Datasets
Back to News

Apple bought back $800 billion of stock. Our share repurchases API has the detail.

4 min read

Share RepurchasesApple: $799.8 billion in 11 yearsApple (AAPL) common stock repurchased since fiscal 2016, running total, USD$29.0B2016$62.0B2017$135.1B2018$202.2B2019$274.7B2020$360.2B2021$450.4B2022$527.4B2023$623.2B2024$713.3B2025$799.8B2026

Apple's last 11 annual reports add up to $799.8 billion spent on its own stock. That is fiscal 2016 through fiscal 2026, and the biggest single year was fiscal 2024, at $95.8 billion.

We pulled those numbers from a new endpoint, /financials/share-repurchases. It returns the buyback detail from a company's annual and quarterly reports: how many shares it bought, what it paid, how many shares it holds in treasury, and how much each repurchase program has left. It covers 6,400+ US companies, back to 2016.

What a cash flow statement leaves out

A share repurchase, or buyback, is a company buying its own stock. On the cash flow statement it gets one line, the cash paid.

That line cannot tell you how many shares the company bought, what price it paid, or how much more its board has approved. Those answers are elsewhere in the same report, spread over several tables, and each company lays them out its own way.

An analyst can copy them out by hand, one report at a time. That does not work for an agent that models a company's share count, or for a screen across thousands of companies. So each report is now one structured record.

How much stock has Apple bought back?

$799.8 billion in 11 fiscal years. These are the amounts of common stock repurchased, as each annual report states them:

  • Fiscal 2016: $29.0 billion
  • Fiscal 2017: $33.0 billion
  • Fiscal 2018: $73.1 billion
  • Fiscal 2019: $67.1 billion
  • Fiscal 2020: $72.5 billion
  • Fiscal 2021: $85.5 billion
  • Fiscal 2022: $90.2 billion
  • Fiscal 2023: $77.0 billion
  • Fiscal 2024: $95.8 billion
  • Fiscal 2025: $90.1 billion
  • Fiscal 2026: $86.5 billion

The pace more than doubled in fiscal 2018, and no year since has come in under $67 billion.

This call returns the latest year.

import requests

headers = {"X-API-KEY": "your_api_key_here"}

url = "https://api.financialdatasets.ai/financials/share-repurchases?ticker=AAPL&period=annual&limit=1"

wanted = (
    "Stock Repurchased and Retired During Period, Shares",
    "Stock Repurchased and Retired During Period, Value",
)

report = requests.get(url, headers=headers).json()["share_repurchases"][0]
print(report["ticker"], report["fiscal_period"], report["report_period"])
for table in report["tables"]:
    for group in [table] + table["rows"]:
        for line in group["line_items"]:
            if line["standard_label"] in wanted:
                print(line["label"], line["value"])
AAPL FY2026 2026-09-26
Common stock repurchased 86485000000
Number of shares repurchased (in shares) 297000000
Amount of share repurchases 85800000000
Common stock repurchased (in shares) 296699000

Read the output twice. Apple states one year of buybacks in three tables, and the tables do not agree.

The statement of shareholders' equity says $86.5 billion. A second table says 297 million shares for $85.8 billion. A third gives the share count to the thousand: 296,699,000.

We return each table the way Apple presents it, and we do not merge them. Apple's fiscal 2023 report shows where a gap like this can come from. It names its smaller number "Amount of share repurchases, excluding excise tax".

Divide the second table's two numbers and you get about $289 a share. That division is yours to do. The data carries an average price only when the company reported one.

How much is left in a buyback program?

A board approves a repurchase program up to a dollar amount, and the company reports how much of it remains. Home Depot's latest annual report says $11.7 billion remains in its $15.0 billion program.

In the response, a table has rows, and a row is usually one program. This call lists Home Depot's programs.

url = "https://api.financialdatasets.ai/financials/share-repurchases?ticker=HD&period=annual&limit=1"

report = requests.get(url, headers=headers).json()["share_repurchases"][0]
for table in report["tables"]:
    for row in table["rows"]:
        for line in row["line_items"]:
            if (line["standard_label"] or "").startswith("Share Repurchase Program"):
                print(row["name"], "|", line["label"], line["value"])
2023 Share Repurchase Program | Share repurchase amount 15000000000
2023 Share Repurchase Program | Remaining authorized repurchase amount 11700000000
2022 Share Repurchase Program | Share repurchase amount 15000000000

The approval lets Home Depot buy stock. It does not oblige it to. The same report, which has 5 tables, says Home Depot bought 0 shares in fiscal 2025 and holds 806 million shares in treasury.

To find the remaining amount at any other company, match on standard_label. Every line has two names. The label is the company's own wording. The standard_label is the standard accounting name, the same at every company. "Share Repurchase Program, Remaining Authorized, Amount" is the dollars left in a program at Home Depot and at every other company that reports it.

What a report looks like

A report has three levels, with the same fields at every company. Debt Schedules and Stock-Based Compensation use the same shape.

  1. A report has tables. Each table has a name, which is the company's own title.
  2. A table has line_items and rows. The line_items are the lines for the company as a whole, such as the shares bought in the year. A row has a name and its own line_items.
  3. A line has label, standard_label, value, and unit. The standard_label is null for a line the company defined itself.

Standard names change a little over the years. Each report carries the names that were in use when it was filed, so a 2018 report can name a line differently than a 2025 report.

Parameters

  • ticker=AAPL or cik=0000320193: one company. One of the two is required.
  • period=annual, quarterly, six_months_ytd, or nine_months_ytd: required. There is no ttm.
  • limit=20: up to 20 report periods in one request, newest first, 4 by default.
  • report_period_gte=2020-01-01: reports from a date onward. report_period also takes the _lte, _gt, and _lt forms.

The share repurchases API docs describe every filter and field.

Before you build on it

  • There is no fourth-quarter report. A company files no separate report for its fourth quarter. With period=quarterly, the annual report stands in for it, with its balances only: the shares held in treasury, the size of each program, and the dollars left in it at year end. Nothing is calculated for the fourth quarter.
  • Some companies report the year so far. period=six_months_ytd and period=nine_months_ytd return the second-quarter and third-quarter reports with the numbers of the fiscal year so far. Other companies state their buybacks for each quarter alone. Their quarterly reports are under quarterly.
  • Every period returns the size of a program. The size is what the board approved, and a company states it with the day of the approval. When a report states two sizes for one program, the newest one is returned.
  • Signs stay. A value is the number the company filed. A sign is never changed.
  • Corrections replace. A corrected report replaces the report it corrects.

Coverage

The data covers 6,400+ US companies and 125,000+ reports from 2016: 33,000+ annual reports and 91,000+ quarterly reports. That is 757,000 reported lines, each with a value and a unit. More than 45,000 of the reports state the size of a repurchase program. New reports arrive within minutes of each filing.

To check the data, we compared 1,900+ lines from reports of 2016 to 2026 against the filed reports. All of them matched.

AI agents reach the same data through the MCP server with the get_financials tool and dataset set to share_repurchases. An agent with a wallet can also pay per request with x402 and no account.