# US B2B Leads: SEC Form D, NPI-2 & FDA Registries (`rar_888/us-federal-b2b-leads`) Actor

Find organizations in SEC Form D filings, CMS NPI organization records and FDA device establishment registrations. Export structured records with source attribution from US federal APIs.

- **URL**: https://apify.com/rar_888/us-federal-b2b-leads.md
- **Developed by:** [Rardiel Andrés Ceballo Salas](https://apify.com/rar_888) (community)
- **Categories:** Lead generation, Business, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 us federal corporate organization records

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

## US Federal B2B Leads: SEC Form D, NPI Clinics & FDA

Extract newly funded private companies (**U.S. SEC EDGAR Form D**), corporate healthcare clinics and multi-specialty organizations (**CMS NPPES `NPI-2`**), and registered medical device establishments (**U.S. FDA openFDA**) into a single normalized B2B corporate dataset — **100% from official public-domain U.S. federal APIs** (`17 U.S.C. § 105` and `Creative Commons CC0 1.0`), with **no API keys required** and **zero individual PII**.

> **Privacy, Licensing & Medical Disclaimer:**
>
> - **Corporate Entities Only (Zero PII):** Queries and emits corporate legal entities exclusively (`SEC Form D` issuers, `CMS NPI-2` organizations, and `FDA` device establishments). Never queries `NPI-1` individuals and never reads or emits `authorized_official_*`, `us_agent`, `official_correspondent`, `contact_address`, personal emails, or phone/fax numbers.
> - **GMDN Exclusion:** Never reads or emits licensed `gmdn*` nomenclature fields (`open.fda.gov/license/`), ensuring 100% public-domain commercial clarity.
> - **openFDA Clinical Disclaimer:** Do not rely on openFDA to make decisions regarding medical or clinical care. While data is retrieved directly from official federal endpoints, assume all openFDA results are unvalidated for clinical decision-making.

***

### Key Features

1. **Three Official U.S. Federal Corporate Registries in One Unified Schema:**
   - **`sec_form_d` (U.S. SEC EDGAR Form D):** Startups, operating companies, and private funds filing Regulation D private placement notices (`efts.sec.gov/LATEST/search-index`).
   - **`cms_npi_org` (CMS NPPES `NPI-2`):** Corporate clinics, laboratories, group practices, imaging centers, and hospital organizations (`npiregistry.cms.hhs.gov/api/?version=2.1&enumeration_type=NPI-2`).
   - **`fda_establishments` (U.S. FDA openFDA):** Active registered medical device manufacturers, specification developers, contract sterilizers, and importers (`api.fda.gov/device/registrationlisting.json`).
2. **State & Sector Filtering (`query` + `state`):**
   - Filter corporate leads by 2-letter U.S. postal state code (`"TX"`, `"CA"`, `"NY"`, `"MA"`, or `""` for nationwide) and keyword/prefix (`"health"`, `"clinic"`, `"bio"`, `"surgical"`).
   - Automatically formats CMS NPPES prefix wildcards (`"health*"`) and safeguards lone-state NPPES queries (`"clinic*"` fallback when `query` is empty).
3. **Incremental Monitoring (`updatedSince`):**
   - Accepts `"YYYY-MM-DD"`, ISO-8601 UTC timestamps, or relative windows (`"1d"`, `"7d"`, `"30d"`, `"24h"`).
   - Filters `sec_form_d` by `file_date`, `cms_npi_org` by `last_updated`/`enumeration_date`, and `fda_establishments` by active status (`status_code == "1"`) with `reg_expiry_date_year` at or after the cutoff year.
4. **Fair Use, Deduplication & Operational Resilience:**
   - Sends a declared SEC Fair Access `User-Agent` header, enforces a `1.0 s` per-host `Crawl-delay`, deduplicates by `(registry, recordId)`, treats `HTTP 404` (`No matches found!`) as a clean empty result (`0` retries, `$0.00` charge), retries transient `429`/`5xx` errors with backoff, and opens a safety circuit breaker after `3` consecutive failures.
   - Supports Apify Proxy (`DATACENTER` and `RESIDENTIAL`) on port `8000` with automatic fallback to direct connections in local environments.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `registries` | `array<string>` | `["sec_form_d", "cms_npi_org", "fda_establishments"]` | Official federal registries to query. |
| `query` | `string` | `"health"` | Sector keyword or organization prefix (`"health"`, `"clinic"`, `"surgical"`, or `""`). |
| `state` | `string` | `"TX"` | Optional 2-letter U.S. postal state code (`"TX"`, `"CA"`, `"NY"`, or `""` nationwide). |
| `updatedSince` | `string` | `""` | Optional UTC cutoff (`"YYYY-MM-DD"`, ISO-8601 timestamp, or `"1d"`, `"7d"`, `"30d"`, `"24h"`). |
| `maxItems` | `integer` | `15` | Global maximum number of corporate organization records emitted across the run (`1–1000`). |
| `maxItemsPerRegistry` | `integer` | `5` | Maximum number of corporate organization records emitted per registry (`1–500`). |
| `proxyGroup` | `string` | `"DATACENTER"` | Apify Proxy group: `"DATACENTER"` (default) or `"RESIDENTIAL"`. |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Apify Proxy configuration (cleanly falls back to direct connection locally). |

#### Example Input (`INPUT.example.json`)

```json
{
  "registries": [
    "sec_form_d",
    "cms_npi_org",
    "fda_establishments"
  ],
  "query": "health",
  "state": "TX",
  "updatedSince": "",
  "maxItems": 15,
  "maxItemsPerRegistry": 5,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Output Schema

Each dataset item contains 14 normalized corporate B2B fields with mandatory official source attribution:

```json
{
  "registry": "fda_establishments",
  "recordId": "1644408",
  "organizationName": "ENCORE MEDICAL, L.P.",
  "entityType": "Medical Device Establishment (FDA)",
  "city": "AUSTIN",
  "state": "TX",
  "country": "US",
  "filingOrRegistrationDate": "2027",
  "categoryOrForm": "File, Surgical, General & Plastic Surgery",
  "status": "ACTIVE",
  "summary": "ENCORE MEDICAL, L.P. (FDA Registration 1644408, FEI 1000116912) is a registered medical device establishment in AUSTIN, TX. Establishment activities: Manufacture Medical Device. Listed FDA device categories: File, Surgical, General & Plastic Surgery. Proprietary names: Surgical File/Planer/Rasp. Registration expiration year: 2027.",
  "url": "https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfRL/rl.cfm?rid=1644408",
  "sourceUrl": "https://api.fda.gov/device/registrationlisting.json",
  "attribution": "Data provided by the U.S. Food and Drug Administration (https://open.fda.gov) — CC0 1.0 Public Domain"
}
```

***

### Pricing (Pay-Per-Event)

You pay only for **successfully extracted corporate organization records** (`apify-default-dataset-item`). Actor startup (`apify-actor-start`), `HTTP 404` (`No matches found!`) checks, and runs returning `0` matching organizations cost **`$0.00`**:

- **Price per record (`apify-default-dataset-item`):** **`$0.002` USD per organization record** (`$2.00` per `1,000` records), all-inclusive of platform compute (`256 MB`) and proxy usage.

| Scenario | Organization Records (`maxItems`) | Total User Cost (`$0.002/record`) |
|---|---:|---:|
| Single organization check | 1 | **$0.002** |
| Balanced 3-registry sample (`5 + 5 + 5`) | 15 | **$0.03** |
| Regional B2B territory batch | 100 | **$0.20** |
| Full multi-state corporate feed | 1,000 | **$2.00** |

***

### Official Public-Domain GET Endpoints & Attribution

1. **U.S. SEC EDGAR (`sec_form_d`):**
   - Endpoint: `GET https://efts.sec.gov/LATEST/search-index?forms=D`
   - Attribution: `"U.S. Public Domain — U.S. Securities and Exchange Commission (SEC EDGAR)"`
2. **CMS NPPES NPI Registry (`cms_npi_org`):**
   - Endpoint: `GET https://npiregistry.cms.hhs.gov/api/?version=2.1&enumeration_type=NPI-2`
   - Attribution: `"U.S. Public Domain — CMS National Plan and Provider Enumeration System (NPPES)"`
3. **U.S. FDA openFDA (`fda_establishments`):**
   - Endpoint: `GET https://api.fda.gov/device/registrationlisting.json`
   - Attribution: `"Data provided by the U.S. Food and Drug Administration (https://open.fda.gov) — CC0 1.0 Public Domain"`

***

### Frequently Asked Questions (FAQ)

#### 1. What does this Actor cost to run?

It uses Apify's **Pay-Per-Event (PPE)** model at **`$0.002` USD per returned organization record** (`$2.00` per `1,000` records) and **`$0.00` for Actor start**. Runs returning zero matching records cost `$0.00`.

#### 2. Does this Actor require any API keys or accounts?

No. All three U.S. federal endpoints are unauthenticated public `GET` JSON APIs. No API keys, logins, or cookies are needed.

#### 3. Does this Actor emit personal data (PII) or individual healthcare providers (`NPI-1`)?

No. `enumeration_type=NPI-2` (corporate organizations) is hardcoded for CMS NPPES, `NPI-1` records are rejected, and individual contact fields (`authorized_official_*`, `us_agent`, `official_correspondent`, `contact_address`, personal emails, phones, and faxes) are strictly ignored.

#### 4. Can openFDA or NPPES records be used for medical or clinical decisions?

No. Per U.S. FDA openFDA Terms of Service, do not rely on openFDA to make decisions regarding medical care; all results should be assumed unvalidated for clinical purposes and used strictly for B2B organization intelligence.

#### 5. Why are `GMDN` fields omitted from FDA establishment items?

OpenFDA dedicates its own data to the public domain under `CC0 1.0`, whereas third-party `GMDN` nomenclature terms require a separate license from The GMDN Agency for commercial or AI applications. Omitting all `gmdn*` fields ensures every output item is 100% public-domain clear.

#### 6. How can I schedule daily or weekly monitoring for new corporate filings?

Set `updatedSince` to `"1d"` (daily) or `"7d"` (weekly). SEC Form D records filter by `file_date`, CMS NPI-2 clinics filter by `last_updated`/`enumeration_date`, and FDA establishments retain active (`status_code="1"`) registrations whose expiration year is at or after the cutoff year.

# Actor input Schema

## `registries` (type: `array`):

Official U.S. federal corporate registries to query: 'sec_form_d' (SEC EDGAR Form D private placement issuers), 'cms_npi_org' (CMS NPPES NPI-2 corporate clinics and healthcare organizations), and/or 'fda_establishments' (U.S. FDA openFDA registered medical device establishments).

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

Optional organization name prefix or sector keyword (e.g. 'health', 'clinic', 'surgical'). In CMS NPPES NPI-2, queries of 2+ characters automatically use a prefix wildcard ('health\*') to satisfy NPPES search rules; when left empty, CMS defaults to 'clinic\*' while SEC and FDA return general corporate records.

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

Optional 2-letter U.S. postal state code (e.g. 'TX', 'CA', 'NY', 'MA') or empty '' for nationwide U.S. search.

## `updatedSince` (type: `string`):

Optional cutoff for scheduled B2B lead monitoring. Accepts '', 'YYYY-MM-DD', an ISO-8601 UTC timestamp, or a relative window ('1d', '7d', '30d', '24h'). Filters SEC Form D by file_date and CMS NPI-2 by last_updated/enumeration_date; for FDA establishments (which publish reg_expiry_date_year), retains active status_code='1' registrations whose expiration year is at or after the cutoff year.

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

Maximum total number of corporate organization records to emit across the entire run (1 to 1000). Use 15 with maxItemsPerRegistry=5 to collect 5 + 5 + 5 across all three registries.

## `maxItemsPerRegistry` (type: `integer`):

Maximum number of corporate organization records to emit per selected federal registry (1 to 500).

## `proxyGroup` (type: `string`):

Apify Proxy group to route requests through when proxy is enabled: 'DATACENTER' (default, fast and cost-effective) or 'RESIDENTIAL'.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings for reliable rotation across requests (falls back cleanly to direct connection when running locally without proxy credentials).

## Actor input object example

```json
{
  "registries": [
    "sec_form_d",
    "cms_npi_org",
    "fda_establishments"
  ],
  "query": "health",
  "state": "TX",
  "updatedSince": "",
  "maxItems": 15,
  "maxItemsPerRegistry": 5,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "registries": [
        "sec_form_d",
        "cms_npi_org",
        "fda_establishments"
    ],
    "query": "health",
    "state": "TX",
    "updatedSince": "",
    "maxItems": 15,
    "maxItemsPerRegistry": 5,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rar_888/us-federal-b2b-leads").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 = {
    "registries": [
        "sec_form_d",
        "cms_npi_org",
        "fda_establishments",
    ],
    "query": "health",
    "state": "TX",
    "updatedSince": "",
    "maxItems": 15,
    "maxItemsPerRegistry": 5,
    "proxyGroup": "DATACENTER",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rar_888/us-federal-b2b-leads").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 '{
  "registries": [
    "sec_form_d",
    "cms_npi_org",
    "fda_establishments"
  ],
  "query": "health",
  "state": "TX",
  "updatedSince": "",
  "maxItems": 15,
  "maxItemsPerRegistry": 5,
  "proxyGroup": "DATACENTER",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rar_888/us-federal-b2b-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rar_888/us-federal-b2b-leads"
        }
    }
}
```

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/kgProguNeFAbLCYLx/builds/XdhEGTi5IFj0uq0ve/openapi.json
