GET api/portaldrugsearch?drugName={drugName}

Searches for drugs by name and retrieves matching results for autocomplete functionality.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
drugName

The name of the drug to search for (at least 2 characters).

string

Required

Body Parameters

None.

Response Information

Resource Description

A list of drugs matching the specified name, limited to 20 results.

Collection of PortalDrugModel
NameDescriptionTypeAdditional information
ID

The MedispanDrugDescriptor Identifier for this drug

integer

None.

DrugName

Gets or sets the primary name of the drug.

string

None.

DrugIdentifier

Gets or sets the NDC for the drug. This NDC can be passed to the PortalDrugSelect endpoint to get detailed drug information for display before a PortalPriceCheck call.

string

None.

DrugIdentifierAlt

Gets or sets an alternate identifier for the drug, if applicable.

string

None.

Response Formats

application/json, text/json, application/json-patch+json

Sample:
[
  {
    "id": 1,
    "drugName": "sample string 2",
    "drugIdentifier": "sample string 3",
    "drugIdentifierAlt": "sample string 4"
  },
  {
    "id": 1,
    "drugName": "sample string 2",
    "drugIdentifier": "sample string 3",
    "drugIdentifierAlt": "sample string 4"
  }
]