Skip to content

pharmacies

Fetch an array of pharmacies given search parameters. One of zip, ncpdp_id, or phone_or_fax is required

Arguments

address · String · requires at least 3 characters
city · String · requires at least 3 characters
name · String · keywords for name of pharmacy, requires at least 3 characters
ncpdp_id · ID · NCPDP ID assigned to the pharmacy
phone_or_fax · String · phone or fax number of the pharmacy, requires at least 3 characters
specialties · [PharmacySpecialty] · Array of pharmacy specialties
state · States · two letter abbreviation (e.g., NY, CA, MD)
zip · String · requires at least 3 numeric characters

Returns

PharmacyConnection

Example

query pharmacies(
$address: String
$city: String
$name: String
$ncpdp_id: ID
$phone_or_fax: String
$specialties: [PharmacySpecialty]
$state: States
$zip: String
$after: Cursor
$before: Cursor
) {
pharmacies(
address: $address
city: $city
name: $name
ncpdp_id: $ncpdp_id
phone_or_fax: $phone_or_fax
specialties: $specialties
state: $state
zip: $zip
after: $after
before: $before
) {
edges
nodes
page_info
total_count
}
}