GoodRx APIs and Widgets

Put GoodRx's Prescription Drug Prices On Your Site!

GoodRx API Overview

Currently, GoodRx offers 5 public APIs as well as additional data feeds:

  1. The Fair Price API
  2. The Low Price API
  3. The Price Comparison API
  4. The Drug Info API
  5. The Drug Search API
  6. Drug Data

The Fair Price API

This price represents the maximum price that a consumer, with or without insurance, should pay for this drug at a local pharmacy.

If you're interested, here's more details. Pharmacies offer a “sticker” (they call them “usual and customary” or “U&C”) prices which an uninsured consumer will pay if they have no other available discounts. They also offer a variety of lower prices for the exact same drug, but to get them, consumers need to have insurance or take advantage of available discounts, membership programs, or price-matching policies. Our “fair price” is a price that you can use as a guide to know the maximum amount you should be paying - meaning, if you're being charged more, you should use GoodRx to search available discounts and lower your price.

The fair price drug API provides high-level cost guidance around a specific prescription drug. At it's most basic, this API provides a single fair price for the most-prescribed form, dosage and quantity of a specific drug.

Use Case:
You want to provide guidance on the approximate cash price of Lipitor. GoodRx knows that the most popular form of Lipitor is 30 tablets of atorvastatin 20mg; thus, the API returns the lowest price for that specific combination.

However, you may also modify your query to ask for a specific prescription drug form, dosage, brand or generic version, and/or quantity.

Use Case:
You want to display the lowest price for brand-name 40mg Lipitor tablets only.

The Low Price API

The Low Price API provides the lowest cash price for a given prescription drug from a basket of nationwide pharmacy chains, including Walmart, CVS, Walgreens, RiteAid, and others. (These chains represent more than 80% of retail drug purchases in America.)

Like the Fair Price API, a request can be made for either the most-prescribed version of that drug, or you may specify the drug form, dosage, brand or generic version, and/or quantity.)


The Price Comparison API

The Price Comparison API provides the 3 lowest cash prices for a given prescription drug from a basket of nationwide pharmacy chains, including Walmart, CVS, Walgreens, RiteAid, and others. (These chains represent more than 80% of retail drug purchases in America.)

Like the other APIs, a request can be made for either the most-prescribed version of that drug, or you may specify the drug form, dosage, brand or generic version, and/or quantity.)


What Is A Cash Price?

The GoodRx “cash price“ is a price that a person without insurance (or choosing not to use their insurance) would receive at the pharmacy. Many of the prices we provide will reflect discounts that a cash-paying consumer can receive through a free drug discount program, a pharmacy discount program/club, a generic drug program or other product. More information on how a consumer can buy at that price can be found on GoodRx, which is why it is imperative that the price include a link back to GoodRx for the consumer to learn how they can actually purchase their prescription for that price at the pharmacy.


The Drug Info API

This service provides form and dosage options for drugs on GoodRx.

For when you need to specify the dosage or form of the drug you want to display low prices for, you can use the Drug Info API to retrieve the available options on GoodRx. Since dosages and forms can be represented in so many ways, this API will take the ambiguity out of guessing what's available and allow you to show all options for easier construction of the price calls available on the GoodRx API.


The Drug Search API

This service queries the GoodRx drug database for the names of drugs 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 GoodRx 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 "Liptor" to "Lipitor".


Drug Data

In addition to the APIs, we sometimes offer access to our data, such as U&C and Medicare pricing. If you would like to learn more, please contact us at info@goodrx.com


OK, I Want To Use Your API.

First, read our API Terms of Service and Branding Requirements. Then, apply for an API key. By applying for an API key, you represent that you have read and agree to comply with the API Terms of Service and Branding Requirements.

You'll find guidance and support in our API Documentation section.

If this all sounds too complicated, check out our widgets or contact us.

Copyright ©2015 GoodRx, Inc.

GoodRx is not sponsored by or affiliated with any of the pharmacies identified in its price comparisons. All trademarks, brands, logos and copyright images are property of their respective owners and rights holders and are used solely to represent the products of these rights holders. This information is for informational purposes only and is not meant to be a substitute for professional medical advice, diagnosis or treatment. GoodRx is not offering advice, recommending or endorsing any specific prescription drug, pharmacy or other information on the site. GoodRx provides no warranty for any of the pricing data or other information. Please seek medical advice before starting, changing or terminating any medical treatment.