Skip to main content
GET
Get share repurchases

Overview

The Financial Datasets share repurchases API returns a company’s share repurchases (buybacks) as the company reported them in its annual and quarterly reports: the shares bought and what the company paid, the average price when the company states it, the shares held in treasury, and each repurchase program with its size and the dollars left in it. You can call it as a REST endpoint with an API key, or from Claude, ChatGPT, Cursor, and other AI apps through the MCP server, or pay per request with x402. Pricing starts at $20. Use it to answer questions like:
  • How many dollars are left in Home Depot’s repurchase program?
  • How many shares did Apple buy back last year, and what did it pay?
  • How many shares does a company hold in treasury?
To get started, please create an account and grab your API key at financialdatasets.ai.

Coverage

Filtering the Data

  • ticker or cik: one is required.
  • period (required): annual, quarterly, six_months_ytd, or nine_months_ytd. There is no ttm.
  • limit: the maximum number of report periods to return, newest first (default 4, maximum 20). Each page holds up to 10 periods, linked by next_page_url.
  • report_period, report_period_gte, report_period_lte, report_period_gt, report_period_lt: filter by report period date (YYYY-MM-DD).

Periods

A quarterly report can state its buybacks for the three months, for the fiscal year so far, or both. Use quarterly to read the three months, and six_months_ytd or nine_months_ytd to read the fiscal year so far. A first-quarter report’s year so far is the quarter itself, so it is under quarterly. A company files no separate report for its fourth quarter, so the annual report stands in for it under quarterly, 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.

Repurchase Programs

The size of a repurchase program is the amount the board approved. A company states it with the day of the approval, not with the last day of the report’s period. The API returns the size of a program, the number of shares approved, and the end date of the program under every period. When a report states two sizes for one program, the API returns the newest one. The dollars left in a program are a balance on the last day of the report’s period.

Response

Each item under share_repurchases is one report. It carries ticker, report_period, fiscal_period, period, currency, accession_number, and filing_url (a link to the report), and tables, in the company’s own order. A table: A row: A line: Every key is always there. A table with no rows has "rows": [], and a table with rows only has "line_items": []. Every value is the number the company filed:
  • Nothing is calculated. An average price appears only when the company reported one.
  • A sign is never changed.
  • A date is a string such as 2027-12-31 with the unit date.
  • A length of time is a string with the unit duration: P3Y is 3 years.
A corrected report replaces the report it corrects.

Standard Names

Use standard_label to find the same line at every company. The most common names: 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.

Example

Share Repurchases
Response
The response above is shortened: the full response lists every table, every row, and every line.

FAQ

What is the difference between this dataset and the cash flow statement?

The cash flow statement shows the cash paid for buybacks as one number. This dataset gives the detail behind it: the number of shares bought, what the company paid, the average price when the company states it, the shares held in treasury, and each repurchase program with its size and the dollars left in it.

Is the data standardized?

No. The lines are the company’s own, in the company’s own order. Each standard line also carries standard_label, a name that is the same at every company, so you can find the same line across companies.

Why does the same buyback appear in two tables?

Each table is returned as the company presents it. A company can state its buybacks in the statement of shareholders’ equity and again in a table of its own. The two numbers can differ when the company measures them in two ways, for example with and without the excise tax on buybacks.

Why is a number from the report not in the response?

The dataset includes a line only when it is certain that the line is about share repurchases: a standard share repurchase or treasury stock line, or a line on the row of a repurchase program. It includes only the amounts of the report’s own period, so an amount of an earlier year is in that year’s report. The size of a program is the one exception: see Repurchase Programs.

Is the average price calculated?

No. The average price per share is in the response only when the company states it.

Why does six_months_ytd return few reports for some companies?

Some companies state their buybacks for each quarter alone and give no number for the fiscal year so far. Their quarterly reports are under quarterly.

What does a company with no buybacks return?

An empty share_repurchases list. An empty response is not charged.

How far back does the data go?

To 2016.

Which periods are available?

Annual, quarterly, the first six months, and the first nine months of the fiscal year. There is no TTM.

Can an AI agent use this data?

Yes. Claude, ChatGPT, Cursor, and other MCP clients reach it through the Financial Datasets MCP server, with the get_financials tool and the dataset share_repurchases.

Authorizations

X-API-KEY
string
header
required

API key for authentication.

Query Parameters

ticker
string

The ticker symbol. Required if cik is not provided.

cik
string

The Central Index Key (CIK) of the company. Required if ticker is not provided.

period
enum<string>
required

The kind of report. annual returns each annual report. quarterly returns each quarterly report, and the annual report as the fourth quarter with its balances only. six_months_ytd and nine_months_ytd return the second-quarter and third-quarter reports with the numbers of the fiscal year so far.

Available options:
annual,
quarterly,
six_months_ytd,
nine_months_ytd
limit
integer<int32>
default:4

The maximum number of report periods to return, newest first. This is the total across all pages, not a page size: each page holds up to 10 records, linked by next_page_url.

Required range: x <= 20
report_period
string<date>

Filter by exact report period date in YYYY-MM-DD format.

report_period_gte
string<date>

Filter by report period greater than or equal to date in YYYY-MM-DD format.

report_period_lte
string<date>

Filter by report period less than or equal to date in YYYY-MM-DD format.

report_period_gt
string<date>

Filter by report period greater than date in YYYY-MM-DD format.

report_period_lt
string<date>

Filter by report period less than date in YYYY-MM-DD format.

cursor
string

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

Response

Share repurchases response

share_repurchases
object[]
next_page_url
string

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 10 records.