Api Endpoint

data.spencermcw.com … /partd/coverage

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. Refreshed monthly (live freshness: /status). $0.02 per call (x402, USDC on Base); 3 free calls a day.

Open interactive test console

Offering

Provider
data.spencermcw.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://data.spencermcw.com/v1/medicare/partd/coverage
MIME type
application/json
First seen
2026-10-23T22:25:34.290Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xE6900aE625875b748f56Fb45C3e06a59Be8870DF"
  }
]

Observed health

Status
Healthy
Latest latency
99 ms
Average latency
225 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "rxcui": {
          "type": "string",
          "pattern": "^\\d{1,10}$"
        },
        "ndc": {
          "type": "string",
          "pattern": "^\\d{11}$"
        },
        "county_code": {
          "type": "string",
          "pattern": "^\\d{5}$"
        },
        "state": {
          "type": "string",
          "pattern": "^[A-Za-z]{2}$"
        },
        "county": {
          "type": "string",
          "minLength": 2,
          "maxLength": 60
        },
        "plan_year": {
          "type": "integer",
          "minimum": 2000,
          "maximum": 2100
        },
        "kind": {
          "type": "string",
          "enum": [
            "pdp",
            "ma",
            "all"
          ]
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      }
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "county": {
              "maxLength": 60,
              "minLength": 2,
              "type": "string"
            },
            "county_code": {
              "pattern": "^\\d{5}$",
              "type": "string"
            },
            "kind": {
              "enum": [
                "pdp",
                "ma",
                "all"
              ],
              "type": "string"
            },
            "limit": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "ndc": {
              "pattern": "^\\d{11}$",
              "type": "string"
            },
            "plan_year": {
              "maximum": 2100,
              "minimum": 2000,
              "type": "integer"
            },
            "rxcui": {
              "pattern": "^\\d{1,10}$",
              "type": "string"
            },
            "state": {
              "pattern": "^[A-Za-z]{2}$",
              "type": "string"
            }
          },
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "drug": {
                  "additionalProperties": false,
                  "properties": {
                    "ndc": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "rxcui": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "rxcui",
                    "ndc"
                  ],
                  "type": "object"
                },
                "file_date": {
                  "type": "string"
                },
                "location": {
                  "additionalProperties": false,
                  "properties": {
                    "county": {
                      "type": "string"
                    },
                    "county_code": {
                      "type": "string"
                    },
                    "ma_region": {
                      "type": "string"
                    },
                    "pdp_region": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "county_code",
                    "state",
                    "county",
                    "ma_region",
                    "pdp_region"
                  ],
                  "type": "object"
                },
                "plan_year": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "plans": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contract_name": {
                        "type": "string"
                      },
                      "cost_30_day": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "deductible_applies": {
                                "type": "boolean"
                              },
                              "preferred_mail": {
                                "type": "object"
                              },
                              "preferred_retail": {
                                "type": "object"
                              },
                              "specialty": {
                                "type": "boolean"
                              },
                              "standard_mail": {
                                "type": "object"
                              },
                              "standard_retail": {
                                "type": "object"
                              },
                              "tier": {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "tier",
                              "specialty",
                              "deductible_applies",
                              "preferred_retail",
                              "standard_retail",
                              "preferred_mail",
                              "standard_mail"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "deductible": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "drug": {
                        "additionalProperties": false,
                        "properties": {
                          "negotiated_drug": {
                            "type": "boolean"
                          },
                          "prior_authorization": {
                            "type": "boolean"
                          },
                          "quantity_limit": {
                            "anyOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "step_therapy": {
                            "type": "boolean"
                          },
                          "terms_vary_by_ndc": {
                            "type": "boolean"
                          },
                          "tier": {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "tier",
                          "prior_authorization",
                          "step_therapy",
                          "quantity_limit",
                          "negotiated_drug",
                          "terms_vary_by_ndc"
                        ],
                        "type": "object"
                      },
                      "kind": {
                        "type": "string"
                      },
                      "plan": {
                        "type": "string"
                      },
                      "plan_name": {
                        "type": "string"
                      },
                      "premium": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "snp": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "plan",
                      "plan_name",
                      "contract_name",
                      "kind",
                      "snp",
                      "premium",
                      "deductible",
                      "drug",
                      "cost_30_day"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "plans_covering": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "plans_in_area": {
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "plan_year",
                "file_date",
                "drug",
                "location",
                "plans_in_area",
                "plans_covering",
                "plans"
              ],
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}