USARx API Overview
USARx currently offers the following public APIs.
API access, if approved, will require a refundable deposit OR a monthly data license depending on usage.
The Drug Search API
This service initiates a query to the USARx drug database service for all of the drug names that are available for pricing.
Let's face it, there are sometimes 10 different ways to spell the name of a medication, ranging from the most medically specific to the common abbreviation for generic. The Drug Search API allows you to find the way the USARx API represents/spells the drug. Simply send it a string and the API will return the top five suggestions based on how close the query is to the name we use. You can even use it as a spell checker, for example changing "Zanax" to "Xanax".
You want to provide an autocomplete or type-as-you-go fast search experience to your users which can auto-correct the spelling mistakes and predicts the drug name as the user types.
The Drug Components/Info API
This service provides the drug components such as their forms and strengths for configuring the drug and preparing the input for the pricing API to later retrieve pricing for a specific dose, form or strength. Besides the drug components, this service also yields drug content such as info, side effects, images for each form/dose/strength (when available) and other useful information.
You want to give all drug configuration options to the user e.g. its forms, dosages and strengths (along with their images and most common form). Furthermore, you want to show useful content and information for the drug along with its side effects etc.
The Drug Pricing API
This service takes a configured drug (from drug components API) and takes inputs such as a zip code or a geo location (either of them) to retrieve the pricing for the specified drug's strength, dosage and form. Lowest prices for the drug is revealed in the area specified.
You want to retrieve the lowest pricing for a particular drug (with specific dose, form and strength) around a given zip code.
You want to retrieve the lowest pricing for a particular drug (with specific dose, form and strength) around a given area defined by geo coordinates.