# Medicare Part D Drug Coverage Lookup by County

> Medicare Part D Drug Coverage Lookup by County is a paid API for AI agents from data.spencermcw.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Returns all Medicare Part D plans (PDP and Medicare Advantage) covering a specific drug in a given county, with tier, prior authorization, step therapy, quantity limit, premium, and copay details for 2026 and 2027.

## Facts

- Endpoint: GET https://data.spencermcw.com/v1/medicare/partd/coverage?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/medicare-part-d-drug-coverage-lookup-by-county-3f0c76d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dxdHPYJYUOHNVpxeqBDZn

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 medicare-part-d-drug-coverage-lookup-by-county-3f0c76d4
```

Example prompt: Which Medicare Part D plans cover Ozempic (NDC 00169430301) in Travis County, Texas for 2026, and what tier and copay does each plan charge?

## When to prefer this

Use this endpoint when you need county-specific Medicare Part D formulary data including real cost-sharing details (copays, premiums, deductibles) for a specific drug across all available plans. It is ideal for benefits counseling agents, Medicare plan comparison tools, and patient cost-estimation workflows. It covers both PDP and Medicare Advantage drug plans for 2026 and 2027 plan years and is updated monthly from CMS formulary files — making it more current and structured than scraping Medicare Plan Finder.

## Known failure modes

- Invalid or unrecognized NDC (11-digit format required) returns empty or error
- Unknown county name or state combination returns no results
- Drug not covered by any plan in the county returns plans_covering=0 with empty plans array
- Invalid plan_year outside supported range returns error
- RxCUI with no matching NDC on file returns null drug record
- Rate limit exceeded beyond 3 free daily calls without payment returns 402 Payment Required

## How this service works

Which Medicare Part D plans in this county cover this drug, at what tier and cost? Every PDP and Medicare Advantage drug plan with tier, prior authorization, step therapy, quantity limit, premium and copay, plan years 2026 and 2027, computed by Distill from CMS’s monthly formulary files. Updated monthly. $0.02 per call (x402, USDC on Base); 3 free calls a day.

## Output

A JSON object listing the drug identifiers (RxCUI, NDC), location details, total plans in the area, how many plans cover the drug, and an array of matching plans each with: plan ID, plan name, contract name, plan type (PDP or MA), SNP status, monthly premium, deductible, and drug-specific details (formulary tier, prior authorization flag, step therapy flag, quantity limit, whether it is a negotiated drug, and 30-day cost sharing amounts).

## 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": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "ndc": {
       "type": "string",
       "pattern": "^\\d{11}$"
      },
      "kind": {
       "enum": [
        "pdp",
        "ma",
        "all"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      },
      "rxcui": {
       "type": "string",
       "pattern": "^\\d{1,10}$"
      },
      "state": {
       "type": "string",
       "pattern": "^[A-Za-z]{2}$"
      },
      "county": {
       "type": "string",
       "maxLength": 60,
       "minLength": 2
      },
      "plan_year": {
       "type": "integer",
       "maximum": 2100,
       "minimum": 2000
      },
      "county_code": {
       "type": "string",
       "pattern": "^\\d{5}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "plan_year",
        "file_date",
        "drug",
        "location",
        "plans_in_area",
        "plans_covering",
        "plans"
       ],
       "properties": {
        "drug": {
         "type": "object",
         "required": [
          "rxcui",
          "ndc"
         ],
         "properties": {
          "ndc": {
           "type": [
            "string",
            "null"
           ]
          },
          "rxcui": {
           "type": "string"
          }
         },
         "additionalProperties": false
        },
        "plans": {
         "type": "array",
         "items": {
          "type": "object",
          "required": [
           "plan",
           "plan_name",
           "contract_name",
           "kind",
           "snp",
           "premium",
           "deductible",
           "drug",
           "cost_30_day"
          ],
          "properties": {
           "snp": {
            "type": [
             "string",
             "null"
            ]
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/medicare-part-d-drug-coverage-lookup-by-county-3f0c76d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.spencermcw.com](https://www.zero.xyz/host/data.spencermcw.com/llms.txt)
