# CMS DMEPOS Supplier Directory Scraper API (`pink_comic/cms-dmepos-supplier-directory`) Actor

Search CMS Medical Equipment Suppliers dataset ct36-nrcq by provider ID, business, location, specialty, provider type, supplies, assignment, competitive-bidding contract indicator, and participation date. Returns bounded source-linked supplier evidence.

- **URL**: https://apify.com/pink\_comic/cms-dmepos-supplier-directory.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Lead generation, Business, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 cms dmepos supplier directory scraper api evidence items

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## CMS DMEPOS Supplier Directory Scraper API

Search the **CMS Medical Equipment Suppliers** public dataset (`ct36-nrcq`) for DMEPOS supplier-directory evidence. Find suppliers by exact provider ID, business/practice keyword, geography, specialty, provider type, reported supply category, assignment indicator, competitive-bidding contract indicator, and participation date.

### Deterministic first run

Empty input uses provider ID `34362619` and returns one **CRESCENT SERVICES II LLC** row, including the source-reported Pharmacy specialty and supply categories.

```json
{"providerId":"34362619","maxResults":1}
```

Broad example:

```json
{
  "query":"CRESCENT",
  "state":"GA",
  "specialty":"Pharmacy",
  "supplyCategory":"Infusion Drugs",
  "participationFrom":"2025-01-01",
  "sortBy":"businessName",
  "maxCandidates":500,
  "maxResults":10
}
```

The Actor normalizes pipe-delimited specialties, provider types, and supplies into arrays while retaining each original CMS string. It preserves the source's misspelled `acceptsassignement` field as `acceptsAssignmentSource`, and only adds a boolean when CMS reports a recognizable true/false value. Missing fields remain unknown.

### Evidence and reliability

Every output row includes `FOUND`, `NO_MATCH`, or `SOURCE_UNAVAILABLE`, retrieval time, exact datastore query URL, dataset ID/name, filters/default warning, candidate-bound evidence, and source caveats. Exact/geographic/text datastore conditions are rechecked locally. Broad searches inspect at most `maxCandidates` (up to 5,000), then apply a total `maxResults` cap (up to 500). Transport, retryable HTTP status, body-read, and malformed-JSON failures receive bounded retries; `Retry-After` is bounded.

### Pricing

Pay per event: **$0.0001 per start + $0.002 per dataset item**. The default returns one paid row, so its maximum first-run charge is **$0.0021**. An Apify maximum-total-charge limit reduces output before the source request; writes are batched.

### Important limits

This directory is a CMS participation and reported-supplies snapshot—not proof of current stock, coverage for a specific beneficiary or item, licensure/accreditation, service quality, assignment for every claim, competitive-bidding eligibility everywhere, ownership, sanctions clearance, or payment/utilization volume. Missing values are not negative evidence. Confirm consequential decisions with CMS, the supplier, and applicable program/licensing sources.

# Actor input Schema

## `providerId` (type: `string`):

Exact 8-digit CMS supplier provider ID.

## `query` (type: `string`):

Case-insensitive keyword rechecked across business and practice names.

## `state` (type: `string`):

Two-letter state abbreviation.

## `city` (type: `string`):

Case-insensitive city keyword.

## `zipCode` (type: `string`):

Five- or nine-digit ZIP.

## `specialty` (type: `string`):

Matches a source-reported specialty, such as Pharmacy.

## `providerType` (type: `string`):

Matches a source-reported provider type.

## `supplyCategory` (type: `string`):

Matches a reported supply category, such as Infusion Drugs. Does not establish current stock or coverage.

## `acceptsAssignment` (type: `boolean`):

Optional exact filter on source acceptsassignement. Missing is not false.

## `competitiveBiddingContract` (type: `boolean`):

Optional exact source indicator; not eligibility proof everywhere.

## `participationFrom` (type: `string`):

Inclusive YYYY-MM-DD local filter.

## `participationTo` (type: `string`):

Inclusive YYYY-MM-DD local filter.

## `sortBy` (type: `string`):

Sort within the bounded locally matched candidates.

## `sortDirection` (type: `string`):

Ascending or descending.

## `maxCandidates` (type: `integer`):

Total source candidates retrieved before local rechecks.

## `maxResults` (type: `integer`):

Total paid output-row cap. Default fixture returns one row.

## Actor input object example

```json
{
  "providerId": "34362619",
  "sortBy": "businessName",
  "sortDirection": "asc",
  "maxCandidates": 1000,
  "maxResults": 1
}
```

# 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 = {
    "providerId": "34362619",
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/cms-dmepos-supplier-directory").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 = {
    "providerId": "34362619",
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/cms-dmepos-supplier-directory").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 '{
  "providerId": "34362619",
  "maxResults": 1
}' |
apify call pink_comic/cms-dmepos-supplier-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pink_comic/cms-dmepos-supplier-directory"
        }
    }
}

```

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/ImULUSwnyf7E1ayBw/builds/YWQuBL3enFx67lebb/openapi.json
