The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
Open Payments Database (CMS Sunshine Act)
Industry payments and financial relationships disclosed under the Physician Payments Sunshine Act and reported to Centers for Medicare & Medicaid Services (CMS) Open Payments for program years 2013–2025. Explore general and research payments, ownership records, recipients and reporting companies. Start with the payment table that matches the question: investigator associations, recipient profiles and deletion records have different units and must not be added as extra payments. Royalties can dominate payment rankings, and a research investigator association does not assign the full payment amount to that individual. Non-physician practitioner coverage begins in 2021.
Start querying
Preview reported 2024 general-payment records above $1 million. General payments can include royalties.
The result shows record_id (payment record identifier), program_year, and total_amount_of_payment_usdollars (U.S. dollars).
Choose R or Python. Install datapond once: use install.packages("datapond") in R, or run python -m pip install datapond in a terminal.
R
library(datapond)
con <- dp_connect("openpayments")
tryCatch({
DBI::dbExecute(con, "SET threads=1")
DBI::dbExecute(con, "SET memory_limit='128MiB'")
DBI::dbExecute(con, "SET max_temp_directory_size='0B'")
print(DBI::dbGetQuery(con, "SELECT record_id,program_year,total_amount_of_payment_usdollars FROM general_payments WHERE program_year=2024 AND total_amount_of_payment_usdollars>1000000 LIMIT 5"))
}, finally = dp_disconnect(con))
Python
import datapond
con = datapond.connect('openpayments')
try:
con.execute("SET threads=1")
con.execute("SET memory_limit='128MiB'")
con.execute("SET max_temp_directory_size='0B'")
print(con.execute("""SELECT record_id,program_year,total_amount_of_payment_usdollars FROM general_payments WHERE program_year=2024 AND total_amount_of_payment_usdollars>1000000 LIMIT 5""").fetchall())
finally:
con.close()
Queries run on your computer and read the byte ranges they need. A small result can still require a large scan. These examples limit DuckDB to one thread and a 128 MiB buffer pool with disk spill disabled; that is not a limit on the entire R or Python process. Larger analyses may need more memory or a local download with enough disk space.
Tables and record units
172,450,995 rows covering disclosed payments to physicians, non-physician practitioners (NPPs) and teaching hospitals, program years 2013–2025. PY means program year, NPI means National Provider Identifier, and PI means principal investigator.
| Table | Description | Rows | Cols | Coverage |
|---|---|---|---|---|
general_payments |
General (non-research) payments and transfers of value to covered recipients, PY2013-2025 | 148,797,140 | 107 | PY2013 to PY2025 |
research_payments |
Research payments (one payment row with up to five principal investigator column groups), PY2013-2025 | 10,995,016 | 268 | PY2013 to PY2025 |
research_payment_investigators |
One row for each payment–investigator association (research record and PI position) | 10,745,869 | 14 | PY2013 to PY2025 |
covered_recipients |
Covered Recipient Profile Supplement: one row per physician/NPP profile with NPI | 1,697,025 | 32 | all years |
deleted_records |
Record IDs deleted between publications (PY2016+; earlier years never had these files) | 162,030 | 5 | PY2016 to PY2024 |
ownership_payments |
Physician ownership and investment interests, PY2013-2025 | 53,915 | 31 | PY2013 to PY2025 |
See the data dictionary for column definitions.
Joining records and interpreting payments
- Research investigator rows identify associations, not recipients of the full research payment. Most research dollars go to institutions; do not add the investigator rows as extra payments.
- Royalties can dominate general-payment dollar rankings, while meals can dominate row counts.
- Non-physician practitioner coverage starts in 2021. The payment table, profile supplement and deleted-record table have different units.
- Keep identifiers as text. The 2013–2014 general-payment records lack an NPI column; link their profile ID through
covered_recipientswhen an NPI is needed. deleted_recordsidentifies entries removed between publications. The 2013–2015 source releases had no such files, and 2025 has none yet because this is its first publication.
Joins to the cms-medicare datapond database use NPI. See the repository guide for the worked comparison and measured join rates. In 2023, 61.6% of Open Payments recipients with an NPI matched Medicare Part B billers; physician specialties matched at 63–83%, while dentists were near zero. Those figures reflect different covered populations, not a guarantee that every unmatched identifier is valid.
More example queries
Rank reporting manufacturers by 2024 general-payment dollars, shown in millions of U.S. dollars. Royalties can materially change this ranking.
INSTALL httpfs; LOAD httpfs;
ATTACH 'https://huggingface.co/datasets/Nason/openpayments-database/resolve/main/openpayments.duckdb'
AS op (READ_ONLY);
SELECT applicable_manufacturer_or_applicable_gpo_making_payment_name AS maker,
ROUND(SUM(total_amount_of_payment_usdollars) / 1e6, 1) AS millions
FROM op.general_payments
WHERE program_year = 2024
GROUP BY 1 ORDER BY 2 DESC LIMIT 10;
Other ways to connect
The datapond alternative is shown above: install the package with pip install datapond, then use datapond.connect('openpayments').
Sources and maintenance
Source and license reference
See the data dictionary for column definitions and the CMS Open Payments (openpaymentsdata.cms.gov) for the source. License: Public domain.
Build and documentation
Build pipeline, per-era column crosswalks, and full documentation: openpayments-database.
Changelog
2026-07-07 — Initial release
- Program years 2013-2025 from the June 2026 publication plus the frozen archive ZIPs (2013-2018 at their final republications).
- 172.5M rows: general_payments 148.8M, research_payments 11.0M (+10.7M-row investigators long table), ownership_payments 54k, covered_recipients 1.7M, deleted_records 162k.
- Typed columns (DECIMAL money, DATE dates, VARCHAR identifiers); per-era column crosswalk checked into the repo (Physician_* -> Covered_Recipient_* renames for 2013-2015; pre-2016 product columns kept era-specific).
- Validated against CMS published magnitudes (PY2025: $3.9B general + $9.5B research + $0.2B ownership) and recognizable top manufacturers.
- Cross-database NPI join to cms-medicare measured and documented (61.6% of PY2023 recipients; 63-83% for physician specialties; dentists ~0% as expected — they don't bill Medicare Part B).
R with DBI and duckdb
Install the dependencies once with install.packages(c("DBI", "duckdb")).
library(DBI)
con <- dbConnect(duckdb::duckdb())
dbExecute(con, "INSTALL httpfs")
dbExecute(con, "LOAD httpfs")
dbExecute(con, "ATTACH 'https://huggingface.co/datasets/Nason/openpayments-database/resolve/main/openpayments.duckdb' AS op (READ_ONLY)")
dbGetQuery(con, "SELECT program_year FROM op.general_payments LIMIT 5")
dbDisconnect(con, shutdown = TRUE)
DuckDB uses HTTP range requests; queries run on your machine and may need substantial memory or download data. A LIMIT does not guarantee a small scan.
Joins to the cms-medicare datapond database on NPI — see the GitHub README
for the worked Open Payments x Medicare utilization example and measured
join rates.
Or with the datapond package: pip install datapond, then
datapond.connect('openpayments').
Build pipeline, per-era column crosswalks, and full documentation: https://github.com/ian-nason/openpayments-database
Changelog
- Downloads last month
- 22,489