# Changelog of NPI Registry Scraper – US Healthcare Provider Data (`neobuster/npi-registry-scraper`) Actor

- **URL**: https://apify.com/neobuster/npi-registry-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/neobuster/npi-registry-scraper.md

## Changelog

Stable build (tag `stable`) before each release is recorded here (ROADMAP 8.5).

### 0.1 — private, not published yet

Builds on Apify (16/11/2026):

| Build | ID | Note |
|---|---|---|
| 0.1.1 | `2v1tTzSpRvCJmloVT` | First build, tag **`stable`** |
| 0.1.2, 0.1.3 | | Deliberately broken (field `name` renamed) to test the monitor's rollback; never tagged |
| 0.1.4 | | Same code as 0.1.1, tag `latest` until the next push |

#### Unreleased (next build)

Fixes from the 16/11/2026 review:

- Billing: count delivered results from what the SDK actually pushed. Before, a run stopped by the user's maximum cost per run could report more results than it delivered (seen locally: "Delivered 20" with 2 items).
- Billing: refuse to run when the synthetic `apify-default-dataset-item` event is priced as well as `provider` (every result would be charged twice).
- Billing: a restarted (migrated) or resurrected run no longer delivers or charges again the providers it already delivered.
- Billing: when more than 5% of records fail validation, stop before delivering and charging more (was: checked only at the end).
- Input: person name and organization name cannot be combined (NPI Registry error "Cannot mix type 1 and type 2 search criteria"); a name search sets the provider type, so query splitting never produces that combination.
- Logs from shared modules (retries, spending-limit stop) now appear in the run log.
- A search that matches nothing now ends as SUCCEEDED with a clear message (was FAILED), says whether the NPI Registry returned records that the Actor's filters removed, and charges nothing.
- README: fair-billing wording matches the actual behaviour; FAQ on former names and on name/organization searches.

#### 0.1.1

- First version: search the NPI Registry by specialty, state, city, ZIP code (or prefix), provider type and name.
- Automatically splits queries above the NPI Registry's 1,200-result cap by ZIP prefix and provider type.
- Deduplicates by NPI; filters on primary specialty and practice address (both optional).
- Flat output with 25 fields, ready for CSV/Excel.
