# Pharma & Device Companies Paying Doctors: CMS Open Payments (`leadgenguy/open-payments-paying-companies`) Actor

List drug and device companies that paid US doctors and hospitals, from the official CMS Open Payments data: company, state, number of payments and total paid per year. $2 per 1,000.

- **URL**: https://apify.com/leadgenguy/open-payments-paying-companies.md
- **Developed by:** [Mokssh jaiin](https://apify.com/leadgenguy) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Pharma & Device Companies Paying Doctors: CMS Open Payments — $2 per 1,000

List the drug and medical device companies that paid US doctors and teaching hospitals, straight from the official **CMS Open Payments** open data. One row per company and state: number of payments and total dollars paid in the program year.

Official US government open data (public domain), no login and no cookies.

### Why use it

- Sales to the companies that spend most on physician engagement (consulting, speaking, research, food and travel)
- Find mid-size pharma and device companies by state, name or minimum spend
- Compliance, research and journalism: who pays, how much, how many payments
- Pay only for results: **$2 per 1,000 companies**. Set a maximum spend per run and the Actor stops at your limit.

### Pricing

| Event | Price |
|---|---|
| Company | $2 per 1,000 ($0.002 each) |
| Actor start | $0.00005 |

Free Apify accounts are limited to **25 results per run**.

### Input

```json
{"year": 2025, "states": ["NJ", "MA"], "minTotalPaidUsd": 1000000, "maxItems": 200}
```

Years 2019 to 2025 are available. Results are sorted by total paid, largest first.

### Output

```json
{
  "name": "E.R. Squibb & Sons, L.L.C.",
  "state": "NJ",
  "country": "United States",
  "year": 2025,
  "paymentCount": 249310,
  "totalPaidUsd": 39312866.92,
  "source": "CMS Open Payments (US Centers for Medicare & Medicaid Services, public domain)"
}
```

### Honest limits

- This is **company-level data, not contact data**: no emails, phone numbers or addresses. Use it to build a target list, then enrich it with a contact tool.
- Totals are the "general payments" files (not research or ownership files).
- Names are as reported by the companies, so one corporate group can appear under several names.
- Each company reports its own state, so a subsidiary may show a different state than its parent.
- Speed: with a state or name filter a run takes under a minute. With no filter, the CMS server totals a whole year of payments first, which takes about 2 minutes (measured 2026-11-20). If the CMS server is slow, the run finishes cleanly with whatever it got and says so in the status message.

### Feedback and reviews

Found a bug, or need another filter? Open an issue on this Actor's **Issues** tab and it will be looked at quickly. If this Actor saved you time, a short and honest review helps other people find it. Thank you!

### Legal

Public open data. You are responsible for lawful use of the data. Not affiliated with CMS.

# Actor input Schema

## `year` (type: `integer`):

2019 to 2025 are available.

## `nameContains` (type: `string`):

Words in the company name, e.g. <code>pharma</code>.

## `states` (type: `array`):

Two-letter US state of the company, e.g. <code>NJ</code>, <code>CA</code>. Leave empty for all states (slower: the full-year query can take a few minutes).

## `minTotalPaidUsd` (type: `integer`):

Skip companies whose payments total less than this.

## `maxItems` (type: `integer`):

Free Apify plans: 25 per run.

## Actor input object example

```json
{
  "year": 2025,
  "states": [
    "NJ"
  ],
  "minTotalPaidUsd": 100000,
  "maxItems": 25
}
```

# Actor output Schema

## `jobs` (type: `string`):

All scraped jobs as a dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "states": [
        "NJ"
    ],
    "minTotalPaidUsd": 100000,
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("leadgenguy/open-payments-paying-companies").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "states": ["NJ"],
    "minTotalPaidUsd": 100000,
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("leadgenguy/open-payments-paying-companies").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "states": [
    "NJ"
  ],
  "minTotalPaidUsd": 100000,
  "maxItems": 25
}' |
apify call leadgenguy/open-payments-paying-companies --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leadgenguy/open-payments-paying-companies"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/md9tzEDwST8Jnkt0N/builds/gmhzQ1mvqni9kuSkx/openapi.json
