Skip to main content
GET
/
gateway
/
Drug
/
FindDrugs
Find Drugs
curl --request GET \
  --url https://api.discountdrugnetwork.com/gateway/Drug/FindDrugs \
  --header 'x-ddn-client-key: <api-key>'
{
  "Drugs": "<array>",
  "Forms": "<array>",
  "Names": "<array>",
  "Quantities": "<array>",
  "Strengths": "<array>"
}

Endpoint

GET https://api.discountdrugnetwork.com/gateway/Drug/FindDrugs

Usage

This endpoint retrieves information about drugs and associated pharmacy details. Use this API to locate drugs by name, GSN, or other identifiers and get information such as drug forms, strengths, quantities, and pricing.

Input Parameters

Query Parameters

ParameterTypeDescriptionRequired
groupIDstringGroup Identifier for authentication.Yes
Address1stringAddress for the search location.No
BrandIndicatorstringBrand or generic indicator.No
CitystringCity of the search location.No
DrugNamestringName of the drug to search.No
GSNstringGCN Sequence Number to filter drugs.No
NDCstringNational Drug Code of the drug.No
IncludeDrugInfobooleanWhether to include detailed drug info in the response.No
LatdoubleLatitude of the search location.No
LongdoubleLongitude of the search location.No
NCPDP_NPIstringPharmacy identifier.No
NumPharmintNumber of pharmacies to return.No
PriceOnlybooleanIf true, returns only price information. Excludes quantities, forms, strengths, or drug info.No
QtydoubleQuantity of the drug.No
ReferencedBNstringReferenced brand name.No
StatestringState of the search location.No
UCdoubleUsual and Customary value.No
UseUCbooleanWhether to use the Usual and Customary value in pricing calculations.No
ZipstringZip code of the search location.No

FindDrugs Response

Returned Parameters

ParameterTypeDescription
DrugsarrayArray of LocatedDrugs matching the FindDrugs request.
FormsarrayArray of LocatedDrugForms matching the FindDrugs request.
NamesarrayArray of LocatedDrugNames matching the FindDrugs request.
QuantitiesarrayArray of LocatedDrugQuantities matching the FindDrugs request.
StrengthsarrayArray of LocatedDrugStrengths matching the FindDrugs request.

Output Details

Pharmacy Information

ParameterDescription
chainCodeUnique code for pharmacy chains.
pharmacyNameName of the pharmacy.
latitudeLatitude of the pharmacy location. Supports map integration.
longitudeLongitude of the pharmacy location. Supports map integration.
addressAddress of the pharmacy location.
phoneContact phone number of the pharmacy.
distanceDistance from the provided location to the pharmacy.
cityCity of the pharmacy location.
stateState abbreviation of the pharmacy location.
zip9-digit zip code of the pharmacy.
hoursOfOperationPublicly posted operating hours of the pharmacy.

Drug Information

ParameterDescription
ndcNational Drug Code (NDC).
lnLabel name of the drug.
qtyPrescription quantity.
priceDiscounted price.
priceBasisBasis for price determination (e.g., AWP, Usual and Customary, or MAC).
ucPriceUsual and Customary price for the drug.
awpPriceAverage Wholesale Price of the drug.
macPriceMaximum Allowable Cost for the drug.
brandGeneric”B” for Brand, “G” for Generic, “A” for Brand or Generic.
quantityLabelType of medication (e.g., capsules, tablets).
isDiscontinuedIndicates whether the medication is discontinued.
discontinuedDateDate the medication was discontinued.
genericNameGeneric name of the medication.
brandNameBrand name of the medication.
descriptionDescription of the medication.

Drug Pricing

ParameterDescription
ddnPharmacyCategoryCategory of the pharmacy chain: 1 = National chains, 2 = Grocery store chains, 0 = Independent pharmacies.

Authorizations

x-ddn-client-key
string
header
required

Query Parameters

groupID
string
required

Group Identifier for authentication.

Address1
string

Address for the search location.

BrandIndicator
string

Brand or generic indicator.

City
string

City of the search location.

DrugName
string

Name of the drug to search.

GSN
string

GCN Sequence Number to filter drugs.

NDC
string

National Drug Code of the drug.

IncludeDrugInfo
boolean

Whether to include detailed drug info in the response.

Lat
number<double>

Latitude of the search location.

Long
number<double>

Longitude of the search location.

NCPDP_NPI
string

Pharmacy identifier.

NumPharm
integer

Number of pharmacies to return.

PriceOnly
boolean

If true, returns only price information.

Qty
number<double>

Quantity of the drug.

ReferencedBN
string

Referenced brand name.

State
string

State of the search location.

UC
number<double>

Usual and Customary value.

UseUC
boolean

Whether to use the Usual and Customary value in pricing calculations.

Zip
string

Zip code of the search location.

Response

Successfully retrieved drug and pharmacy details.

Drugs
array

Array of LocatedDrugs matching the FindDrugs request.

Forms
array

Array of LocatedDrugForms matching the FindDrugs request.

Names
array

Array of LocatedDrugNames matching the FindDrugs request.

Quantities
array

Array of LocatedDrugQuantities matching the FindDrugs request.

Strengths
array

Array of LocatedDrugStrengths matching the FindDrugs request.