healthcare.dev docs
API referenceDrugs

Find Medicare Part B drug payment limits

GET /v1/drugs/asp

GET https://api.healthcare.dev/v1/drugs/asp

Find ASP payment limits by NDC (product, package or 11-digit, through CMS's NDC-HCPCS crosswalk, matching any package of the product) and/or by code or description (q, e.g. J9271 or pembrolizumab). Results carry the newest quarter's limit, not history or the full crosswalk: look the code up for those. Codes CMS no longer lists are excluded unless include_retired=true. Without q, ordered by code (match_score: 1).

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

Query parameters

NameTypeRequiredDescriptionExample
qstringnoCode or code prefix, CMS short descriptor or product name (fuzzy)pembrolizumab
ndcstringnoProduct, package or 11-digit NDC0006-3026-02
include_retired"true" | "false"noAlso return codes missing from the newest quarter's filetrue
limitintegernoPage size (max 100)25
cursorstringnoOpaque cursor from links.next
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?q=pembrolizumab&limit=25" \
  -H "Authorization: Bearer $HDEV_API_KEY"

TypeScript

const res = await fetch("https://api.healthcare.dev/v1/drugs/asp?q=pembrolizumab&limit=25", {
  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?q=pembrolizumab&limit=25", headers={"Authorization": f"Bearer {os.environ['HDEV_API_KEY']}"})
body = res.json()

Try it

GEThttps://api.healthcare.dev/v1/drugs/asp?q=pembrolizumab&ndc=0006-3026-02&include_retired=true&limit=25&view=compact&fields=hcpcs%2Cshort_description%2Cquarter
Get a free key
Copy as curl
curl "https://api.healthcare.dev/v1/drugs/asp?q=pembrolizumab&ndc=0006-3026-02&include_retired=true&limit=25&view=compact&fields=hcpcs%2Cshort_description%2Cquarter" \
  -H "Authorization: Bearer $HDEV_API_KEY"

Response

Matching codes

{
  "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",
      "status": "active",
      "effective_start": "2026-10-01",
      "effective_end": "2026-10-01",
      "replaced_by": [
        "string"
      ],
      "ndc_count": 1,
      "matched_ndcs": [
        {
          "ndc": null,
          "ndc11": null,
          "labeler": null,
          "drug_name": null,
          "hcpcs_dosage": null,
          "package_size": null,
          "package_quantity": null,
          "billing_units": null,
          "billing_units_per_package": null,
          "quarters": null
        }
      ],
      "match_score": 0
    }
  ],
  "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?q=pembrolizumab&limit=25",
    "next": "/v1/drugs/asp?q=pembrolizumab&limit=25&cursor=eyJrIjoiRTExLjkifQ"
  }
}

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
status"active" | "retired" | "replaced"yes
effective_startstring (date)yes
effective_endstring | null (date)yes
replaced_bystring[]no
ndc_countintegeryesNDCs crosswalked to the code (look it up for the list)
matched_ndcsAspNdc[]yesWith ndc: the crosswalk entries for that product; otherwise empty
match_scorenumberyesHow well this result matches the query: 1 exact code or id, 0.9 code prefix, 0.5 to 0.9 every query word in the text (higher is closer), under 0.5 a fuzzy (typo-tolerant) match. Below 0.5, check the result before relying on it.

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