GET
Search pharmacies in the credential's group(s)

Authorizations

X-InStockRx-Api-Key
string
header
required

Scoped partner API key. Send the whole key, e.g. ik_live_a1b2c3…, on every request.

Headers

X-Pharmacy-Id
string<uuid>

Which pharmacy in your group you are acting as. Required whenever your group holds more than one pharmacy — omitting it is then 400 missing-pharmacy-context. With exactly one pharmacy it may be omitted, but send it anyway: the call starts failing the day a second pharmacy is added.

Query Parameters

q
string

Free-text search (name, DBA).

npi
string

NPI as a fixed-width 10-digit string. v2 treats an NPI as an opaque identifier rather than a number, consistent with how it handles NDC, GTIN and other healthcare identifiers. CMS-issued NPIs always start with 1 or 2, so leading-zero NPIs do not arise in practice, but string typing rules out the broader class of integer-identifier truncation bugs that v1 was open to.

Pattern: ^\d{10}$
Examples:

"1234567890"

"2987654321"

state
string
Pattern: ^[A-Z]{2}$
postalCode
string
Pattern: ^\d{5}(-\d{4})?$
limit
integer
default:50
Required range: 1 <= x <= 200
cursor
string

Opaque cursor returned in page.nextCursor.

Response

200 - application/json

OK

data
object[]
required
page
object
required