Search Pharmacies

Retrieves a list of pharmacies that match the parameters submitted. Depending on the parameter, at least one of the following location parameters are required: zipcode, city, state, latitude, longitude.

Request

GET /clinical/v1/search/pharmacy

Path Parameters


No parameters

Query Parameters


zipcode string : optional

The 5 digit zip code to search within.


city string : optional

The name of the city to search within. When used, you must also supply the state param.


state string : optional

The 2 character USPS state code.


latitude string : optional

The longitude geo-coordinates to search within. When used, the longitude param is required.


longitude string : optional

The longitude geo-coordinates to search within. When used, the latitude param is required.


distance numeric : optional

The number of miles to search within. The default value is 15.


pharmacyname string : optional

The name of the pharmacy to search for.


partial boolean : optional

Perform a partial search, allowing for searching based on a partial value of the pharmacyname. Great for "search-as-you-type" scenarios. Default value is true.


fuzzy boolean : optional

Perform a fuzzy search, a type of query that compensates for typos and misspelled terms in the input string. Default value is true.


twentyfourhouronly boolean : optional

Specifies if results should only include pharmacies that are open twenty-four hours each day. Default value is false.


count numeric : optional

The maximum number of results to return. Default value is 50.


Example


curl -XGET 'https://platform.wellviasolutions.com/clinical/v1/search/pharmacy' \
    -u 'Bearer:{your_token}'
GET https://platform.wellviasolutions.com/clinical/v1/search/pharmacy?zipcode=75063 HTTP/1.1
using WellViaSDK.Clinical;

const string apiSubscriptionKey = "your_api_subscription_key";
var _clnClient = new WellViaClinicalServiceClient(subscriptionKey: apiSubscriptionKey);

var options = new PharmacySearchOptions();
options.ZipCode = "75063";
options.PharmacyName = "CVS";
options.Count = 50;
options.PartialMatch = true;

var searchResults = await _clnClient.SearchPharmaciesAsync(options: options);

Response

A list of Pharmacy Objects if valid parameters were provided.