{
"code": "403",
"message": "pro tier required to access this model"
}
{
"code": "429",
"message": "Too Many Requests"
}
{
"code": "500",
"message": "Unexpected server error"
}
Returns nearby practitioners, ranked by how good a fit they are for a given referral target.Each result pairs a practitioner with one of their practice locations:
Practitioner: name, NPI number, and referralScopeMatch, our estimate of whether their billing history fits the referral target
Location: address and coordinates, staleAffiliationRisk, our estimate of whether they are still seeing patients there, and bookability, our estimate of whether an appointment can be booked there
Distance: straight-line (not driving) miles from the coordinates you searched
Score: from 0 to 100, how good a fit this practitioner, at this location, is for the referral you searched; higher is better
score combines fit (referralScopeMatch), distance, and whether an appointment can be booked at the location (bookability). Ties are broken consistently, so repeating a search returns the same order.Results are not filtered by fit: poor fits are still returned, ranked below better ones. Filter on practitioner.referralScopeMatch if you only want likely matches.Scores are on a fixed scale, so they can be compared across searches that report the same servedModels. When servedModels has no practitionerLocationRisk, scores are computed without a bookability adjustment and locations omit both staleAffiliationRisk and bookability. Locations without a bookability label, such as those of practitioners the model does not cover, receive no adjustment.
When more results are available, the response includes nextCursor. To get the next page, repeat the request with cursor set to that value. Stop when nextCursor is absent.A cursor is only valid for the search that produced it: changing any other parameter returns a 400.
A non-match (unlikely_match or very_unlikely_match) means a routine referral target does not fit the provider’s observed billing. It does not mean the service is outside their scope of practice or that they are unqualified; it reflects what they routinely bill, not what they are licensed or trained to do.
The referral target to rank practitioners against, from GET /specializations/{id}/targets. Target ids change between model versions, so look them up rather than storing them.