healthcare.dev docs
API referenceDrugs

Look up a Medicare Part B drug payment limit

GET /v1/drugs/asp/{hcpcs}

GET https://api.healthcare.dev/v1/drugs/asp/{hcpcs}

CMS Medicare Part B drug payment allowance limit (from the quarterly ASP pricing files, generally 106% of average sales price) for one billing code: the newest quarter's limit per dosage_descriptor unit, history of every quarter loaded (about two years, newest first), in_effect (the quarter that applies on date, default today), and ndcs, the products CMS's NDC-HCPCS crosswalk assigns to the code with billing units per package. CPT codes (vaccines) carry no descriptor (© AMA). A payment limit is not a coverage decision or what a patient pays.

Requires an API key: Authorization: Bearer hdev_live_.... See Authentication.

Path parameters

NameTypeRequiredDescriptionExample
hcpcsstringyesHCPCS Level II code, or a CPT code numberJ9271

Query parameters

NameTypeRequiredDescriptionExample
datestring (date)noAnswer in_effect for this date (YYYY-MM-DD; default today)2026-08-15
view"compact" | "standard" | "full"noHow much of each record to return (default full). compact: hcpcs, short_description, quarter, payment_limit, dosage_descriptor, in_effect, status, on_date, in_effect, ndc_count, matched_ndcs, match_score (search results) (fewest tokens, for agents). standard: every field except history, ndcs. full: every field.compact
fieldsstringnoComma-separated fields to return instead of a view. Valid fields: hcpcs, code_system, short_description, quarter, effective_from, effective_through, payment_limit, dosage_descriptor, coinsurance_percentage, vaccine_awp_percent, vaccine_limit, blood_awp_percent, blood_limit, clotting_factor, notes, history, ndcs, status, effective_start, effective_end, replaced_by, on_date, in_effect, ndc_count, matched_ndcs, match_score (search results).hcpcs,short_description,quarter

Examples

curl

curl "https://api.healthcare.dev/v1/drugs/asp/J9271" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/drugs/asp/J9271", {
  headers: { Authorization: `Bearer ${process.env.HDEV_API_KEY}` },
});
const { data, meta } = await res.json();

Python

import os
import requests

res = requests.get("https://api.healthcare.dev/v1/drugs/asp/J9271", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/drugs/asp/J9271?date=2026-08-15&view=compact&fields=hcpcs%2Cshort_description%2Cquarter
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/drugs/asp/J9271?date=2026-08-15&view=compact&fields=hcpcs%2Cshort_description%2Cquarter" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

The payment limit, its history and crosswalked NDCs

{
  "data": {
    "hcpcs": "string",
    "code_system": "hcpcs",
    "short_description": "string",
    "quarter": "string",
    "effective_from": "2026-10-01",
    "effective_through": "2026-10-01",
    "payment_limit": 0,
    "dosage_descriptor": "string",
    "coinsurance_percentage": 0,
    "vaccine_awp_percent": 1,
    "vaccine_limit": 0,
    "blood_awp_percent": 1,
    "blood_limit": 0,
    "clotting_factor": true,
    "notes": "string",
    "history": [
      {
        "quarter": "string",
        "effective_from": "2026-10-01",
        "effective_through": "2026-10-01",
        "payment_limit": 0,
        "dosage_descriptor": "string",
        "coinsurance_percentage": 0,
        "vaccine_awp_percent": 1,
        "vaccine_limit": 0,
        "blood_awp_percent": 1,
        "blood_limit": 0,
        "clotting_factor": true,
        "notes": "string"
      }
    ],
    "ndcs": [
      {
        "ndc": "string",
        "ndc11": "string",
        "labeler": "string",
        "drug_name": "string",
        "hcpcs_dosage": "string",
        "package_size": 1,
        "package_quantity": 1,
        "billing_units": 1,
        "billing_units_per_package": 1,
        "quarters": [
          null
        ]
      }
    ],
    "status": "active",
    "effective_start": "2026-10-01",
    "effective_end": "2026-10-01",
    "replaced_by": [
      "string"
    ],
    "on_date": "2026-10-01",
    "in_effect": {
      "quarter": "string",
      "effective_from": "2026-10-01",
      "effective_through": "2026-10-01",
      "payment_limit": 0,
      "dosage_descriptor": "string",
      "coinsurance_percentage": 0,
      "vaccine_awp_percent": 1,
      "vaccine_limit": 0,
      "blood_awp_percent": 1,
      "blood_limit": 0,
      "clotting_factor": true,
      "notes": "string"
    }
  },
  "meta": {
    "source": "cms-icd10",
    "data_version": "2026.1",
    "retrieved_at": "2026-10-24T12:00:00Z",
    "license": "Public domain (CMS). Reference data, not medical advice."
  },
  "links": {
    "self": "/v1/drugs/asp/J9271",
    "next": null
  }
}

Fields

FieldTypeAlways presentDescription
hcpcsstringyesBilling code: HCPCS Level II (e.g. J9271), or a CPT code number for vaccines
code_system"hcpcs" | "cpt"yescpt for CPT code numbers (vaccines, immune globulins): their descriptors are © AMA and never included
short_descriptionstring | nullyesCMS's HCPCS Level II short descriptor; always null for CPT codes
quarterstringyesCalendar quarter, as its first month (2026-10 = October to December 2026)
effective_fromstring (date)yesFirst day the payment limit applies
effective_throughstring (date)yesLast day the payment limit applies (inclusive)
payment_limitnumber | nullyesMedicare Part B payment allowance limit, USD per dosage_descriptor unit (generally 106% of ASP); null where CMS lists none (N/A)
dosage_descriptorstring | nullyesThe billing unit the limit is per, as CMS lists it, e.g. 10 MG, 1 ML
coinsurance_percentagenumber | nullyesBeneficiary coinsurance, percent (20 unless reduced, e.g. inflation-adjusted coinsurance)
vaccine_awp_percentnumber | nullyesVaccines priced at a percent of AWP
vaccine_limitnumber | nullyes
blood_awp_percentnumber | nullyesBlood products priced at a percent of AWP
blood_limitnumber | nullyes
clotting_factorbooleanyesClotting factor: the separate furnishing fee applies on top of the limit
notesstring | nullyesCMS's note, e.g. Added October 2026
historyAspQuarter[]yesEvery quarter in the files loaded (about two years), newest first; the newest is also flattened above. The limit in effect on a date is the entry whose effective_from..effective_through contains it.
ndcsAspNdc[]yesNDCs the ASP NDC-HCPCS crosswalk assigns to this code in any quarter loaded
status"active" | "retired" | "replaced"yes
effective_startstring (date)yes
effective_endstring | null (date)yes
replaced_bystring[]no
on_datestring (date)yesThe date in_effect answers for (?date=, default today, UTC)
in_effectobject | nullyesThe quarter whose payment limit applies on on_date, or null when no loaded quarter covers it (a future date before CMS posts that quarter, or a date older than the history kept)

Errors

Errors are application/problem+json (RFC 9457). Branch on type, not on title. See Errors.

StatustypeWhen
400invalid-requestA parameter or the body failed validation; errors lists each field.
401unauthorizedMissing, malformed or revoked API key.
404not-foundNo record with that id (retired records are still returned).
429rate-limited / quota-exceededToo many requests per second (retry after Retry-After), or the monthly quota is used up.
503dataset-unavailable / unavailableThe dataset has no published version yet, or the service is degraded.

On this page