curl -X POST "https://api.primaryapi.com/v1/run/npi.lookup" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"npi":"1003000126"}'{
"output": {
"found": true,
"data": {
"name": "<string | null>",
"matchCount": "<integer>",
"isActive": "<boolean | null>",
"soleProprietor": "<boolean | null>", …
}
},
"credits": 1
}Input and output
5 fields
1003000126.23 fields
Good to know
A name search returns the best match (active records first) flattened. Plus up to 9 further matches. Add state and firstName to narrow it.
Not found is free. A miss is an answer, not an error.
Pair with an exclusion check for credentialing. An NPI is not proof of licensure or good standing.
Terms of use. An NPI does not prove licensure or good standing.
The same key and credits work for every API.