API referenceDrugs
Find Medicare Part B drug payment limits
GET /v1/drugs/asp
GET https://api.healthcare.dev/v1/drugs/aspFind 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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
q | string | no | Code or code prefix, CMS short descriptor or product name (fuzzy) | pembrolizumab |
ndc | string | no | Product, package or 11-digit NDC | 0006-3026-02 |
include_retired | "true" | "false" | no | Also return codes missing from the newest quarter's file | true |
limit | integer | no | Page size (max 100) | 25 |
cursor | string | no | Opaque cursor from links.next | |
view | "compact" | "standard" | "full" | no | How 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 |
fields | string | no | Comma-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
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
| Field | Type | Always present | Description |
|---|---|---|---|
hcpcs | string | yes | Billing code: HCPCS Level II (e.g. J9271), or a CPT code number for vaccines |
code_system | "hcpcs" | "cpt" | yes | cpt for CPT code numbers (vaccines, immune globulins): their descriptors are © AMA and never included |
short_description | string | null | yes | CMS's HCPCS Level II short descriptor; always null for CPT codes |
quarter | string | yes | Calendar quarter, as its first month (2026-10 = October to December 2026) |
effective_from | string (date) | yes | First day the payment limit applies |
effective_through | string (date) | yes | Last day the payment limit applies (inclusive) |
payment_limit | number | null | yes | Medicare Part B payment allowance limit, USD per dosage_descriptor unit (generally 106% of ASP); null where CMS lists none (N/A) |
dosage_descriptor | string | null | yes | The billing unit the limit is per, as CMS lists it, e.g. 10 MG, 1 ML |
coinsurance_percentage | number | null | yes | Beneficiary coinsurance, percent (20 unless reduced, e.g. inflation-adjusted coinsurance) |
vaccine_awp_percent | number | null | yes | Vaccines priced at a percent of AWP |
vaccine_limit | number | null | yes | |
blood_awp_percent | number | null | yes | Blood products priced at a percent of AWP |
blood_limit | number | null | yes | |
clotting_factor | boolean | yes | Clotting factor: the separate furnishing fee applies on top of the limit |
notes | string | null | yes | CMS's note, e.g. Added October 2026 |
status | "active" | "retired" | "replaced" | yes | |
effective_start | string (date) | yes | |
effective_end | string | null (date) | yes | |
replaced_by | string[] | no | |
ndc_count | integer | yes | NDCs crosswalked to the code (look it up for the list) |
matched_ndcs | AspNdc[] | yes | With ndc: the crosswalk entries for that product; otherwise empty |
match_score | number | yes | How 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.
| Status | type | When |
|---|---|---|
| 400 | invalid-request | A parameter or the body failed validation; errors lists each field. |
| 401 | unauthorized | Missing, malformed or revoked API key. |
| 404 | not-found | No record with that id (retired records are still returned). |
| 429 | rate-limited / quota-exceeded | Too many requests per second (retry after Retry-After), or the monthly quota is used up. |
| 503 | dataset-unavailable / unavailable | The dataset has no published version yet, or the service is degraded. |