Skip to content
GET /api/procedures

Finds procedure codes, most-performed first. Use it to turn “knee replacement” into the code you pass to /api/providers?hcpcs=. Costs 1 credit.

Name Type Description
q string Matches codes that start with it, or descriptions that contain it.
limit number 1 to 100. Default 25.
Terminal window
curl "$OPH_API/api/procedures?q=knee&limit=2" -H "Authorization: Bearer $OPH_KEY"
{
"rows": [
{
"code": "27447",
"description": "Total knee arthroplasty",
"is_drug": false,
"providers": 9120,
"tot_srvcs": 231400
}
],
"sql": "SELECT code, description, is_drug, providers, tot_srvcs FROM hcpcs WHERE (code ILIKE $1 OR description ILIKE $2) ORDER BY tot_srvcs DESC NULLS LAST LIMIT 2",
"params": ["knee%", "%knee%"],
"sources": ["hcpcs"],
"ms": 1,
"usage": { "credits": 1, "creditsUsed": 10, "creditsLimit": 100, "txid": "81248" }
}
Field Meaning
is_drug true for drug codes (mostly J-codes)
providers Clinicians who billed the code
tot_srvcs Services billed to Medicare nationally in the data year

The dictionary holds the 6,471 codes that appear in the Medicare data, not the full HCPCS code set.