# ScriptMasterLabs NPI Lookup API

> ScriptMasterLabs NPI Lookup API is a paid API for AI agents from mcp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Look up National Provider Identifier (NPI) records for healthcare providers by name, specialty, state, or organization via a pay-per-call x402 API.

## Facts

- Endpoint: GET https://mcp-x402-discovery.onrender.com/x402/npi
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-npi-lookup-api-82dd7b71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8E4PQ2SJuB2WriVeWzgv2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability scriptmasterlabs-npi-lookup-api-82dd7b71
```

Example prompt: Can you look up the NPI number for Dr. Sarah Johnson, a cardiologist in Texas? Return up to 5 results.

## When to prefer this

Use this endpoint when you need to programmatically look up NPI records from the NPPES registry by provider name, specialty, or state for healthcare credentialing, compliance checks, or provider directory enrichment. Prefer this over manual CMS lookups when integrating NPI data into an automated agent workflow and you are already using the x402 payment protocol with USDC on Base.

## Known failure modes

- No matching providers found for given name/specialty/state combination
- Invalid state code returns validation error
- Limit parameter out of range (must be 1-20) causes rejection
- Payment not provided or insufficient results in HTTP 402 response
- API may be unavailable on free hosting tier (Render cold starts causing timeouts)

## How this service works

Pay-per-call crypto, RWA, federal, SEC, Section 8/HUD housing, and compliance APIs via x402. Primary: USDC on Base (eip155:8453). Also accepts Global Dollar (USDG) on Robinhood Chain (eip155:4663) via sovereign X-PAYMENT-TX. Hyphen routes only (e.g. /x402/gas-tracker, /x402/pha-lookup, /x402/sec-8k). MARKETPLACE REVIEW: use free /x402/playground/* (no key, no payment). Production /x402/* returns 402 unless paid via x402 or X-Api-Market-Key / X-API-Key from seller dashboard.

## Output

Returns a list of NPI registry records matching the search criteria, including provider NPI number, name, specialty taxonomy, organization affiliation, state, and provider type (individual or organization), up to the requested limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 20,
       "minimum": 1
      },
      "state": {
       "type": "string",
       "description": "2-letter state code."
      },
      "last_name": {
       "type": "string"
      },
      "specialty": {
       "type": "string",
       "description": "Taxonomy description, e.g. Cardiology."
      },
      "first_name": {
       "type": "string"
      },
      "organization_name": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-npi-lookup-api-82dd7b71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp-x402-discovery.onrender.com](https://www.zero.xyz/host/mcp-x402-discovery.onrender.com/llms.txt)
