# GoodRx prices API

Compare GoodRx pharmacy prices by drug and US ZIP via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by Apish, pass parameters such as drug, output, zip, and retrieve structured data including selected formulation quantity, source pharmacy name, source selected price kind, individual price-option kind, and price-option currency for price comparison, and option display.

Documentation: https://openany.si/market/apis/goodrx/goodrx-prices-api/?offering=ab545ce4-465c-4f31-a323-357f01496b66
API ID: ab545ce4-465c-4f31-a323-357f01496b66
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/goodrx/v1/prices
Page update time: 2026-12-03T02:46:32.593Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:46:31.035Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GoodRx prices API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "drug": {
          "type": "string",
          "description": "Drug slug from search, or a goodrx.com drug link."
        },
        "zip": {
          "type": "string",
          "description": "5-digit US ZIP code."
        },
        "label": {
          "type": "string",
          "description": "Brand or generic label slug, e.g. zestril or lisinopril."
        },
        "form": {
          "type": "string",
          "description": "Form slug, e.g. tablet."
        },
        "dosage": {
          "type": "string",
          "description": "Strength slug, e.g. 20mg."
        },
        "quantity": {
          "type": "integer",
          "description": "Quantity (default: the version's default quantity)."
        },
        "sort": {
          "type": "string",
          "description": "price (default).",
          "enum": [
            "price"
          ]
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "drug",
        "zip"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "average_retail_price": {
      "type": "number"
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "drug": {
      "type": "string"
    },
    "drug_id": {
      "type": "string"
    },
    "drug_slug": {
      "type": "string"
    },
    "estimated_cash_price": {
      "type": "number"
    },
    "location": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string"
        },
        "county": {
          "type": "string"
        },
        "latitude": {
          "type": "number"
        },
        "longitude": {
          "type": "number"
        },
        "state": {
          "type": "string"
        },
        "zip_code": {
          "type": "string"
        }
      }
    },
    "lowest_price": {
      "type": "number"
    },
    "pharmacies": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "coupon_price": {
                "type": "number"
              },
              "logo": {
                "type": "string"
              },
              "member_price": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              "options": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "campaign": {
                      "type": "null"
                    },
                    "campaign_label": {
                      "type": "null"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "payment_options": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "percent_off_retail": {
                      "anyOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "price": {
                      "type": "number"
                    },
                    "retail_price": {
                      "type": "number"
                    }
                  }
                }
              },
              "pharmacy": {
                "type": "string"
              },
              "pharmacy_id": {
                "type": "string"
              },
              "prescription": {
                "type": "object",
                "properties": {
                  "dosage": {
                    "type": "string"
                  },
                  "form": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "quantity": {
                    "type": "integer"
                  },
                  "summary": {
                    "type": "string"
                  }
                }
              },
              "price": {
                "type": "number"
              },
              "price_kind": {
                "type": "string"
              },
              "retail_price": {
                "type": "number"
              },
              "seller_type": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "sort": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "version": {
      "type": "object",
      "properties": {
        "dosage": {
          "type": "string"
        },
        "form": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "label_type": {
          "type": "string"
        },
        "quantities": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "quantity": {
          "type": "integer"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/goodrx/v1/prices?drug=lisinopril&output=json&zip=10001' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "average_retail_price": 30.19,
  "cached": false,
  "count": 11,
  "credits_used": 1,
  "drug": "Lisinopril",
  "drug_id": "193",
  "drug_slug": "lisinopril",
  "estimated_cash_price": 40.91,
  "location": {
    "city": "New York",
    "county": "New York",
    "latitude": 40.752,
    "longitude": -73.995,
    "state": "NY",
    "zip_code": "10001"
  },
  "lowest_price": 16.24,
  "pharmacies": [
    {
      "coupon_price": 16.24,
      "logo": "https://www.grxstatic.com/pharmacy_logos/circle_icon/23355.png",
      "member_price": null,
      "options": [
        {
          "campaign": null,
          "campaign_label": null,
          "currency": "USD",
          "kind": "coupon",
          "name": "GoodRx Coupon",
          "payment_options": [],
          "percent_off_retail": null,
          "price": 16.24,
          "retail_price": 62.35
        }
      ],
      "pharmacy": "Stop n Shop",
      "pharmacy_id": "23355",
      "prescription": {
        "dosage": "20mg",
        "form": "tablet",
        "label": "Lisinopril",
        "quantity": 90,
        "summary": "20mg 90 tablets"
      },
      "price": 16.24,
      "price_kind": "coupon",
      "retail_price": 62.35,
      "seller_type": "PharmacyChain"
    },
    {
      "coupon_price": 17.99,
      "logo": "https://www.grxstatic.com/pharmacy_logos/circle_icon/23356.png",
      "member_price": 11.74,
      "options": [
        {
          "campaign": null,
          "campaign_label": null,
          "currency": "USD",
          "kind": "gold",
          "name": "Gold member price",
          "payment_options": [],
          "percent_off_retail": "84%",
          "price": 11.74,
          "retail_price": 72
        },
        {
          "campaign": null,
          "campaign_label": null,
          "currency": "USD",
          "kind": "coupon",
          "name": "GoodRx Coupon",
          "payment_options": [
            "STRIPE"
          ],
          "percent_off_retail": null,
          "price": 17.99,
          "retail_price": 72
        }
      ],
      "pharmacy": "ShopRite",
      "pharmacy_id": "23356",
      "prescription": {
        "dosage": "20mg",
        "form": "tablet",
        "label": "Lisinopril",
        "quantity": 90,
        "summary": "20mg 90 tablets"
      },
      "price": 17.99,
      "price_kind": "coupon",
      "retail_price": 72,
      "seller_type": "PharmacyChain"
    },
    "… 9 more"
  ],
  "sort": "price",
  "url": "https://www.goodrx.com/lisinopril?form=tablet&dosage=20mg&quantity=90",
  "version": {
    "dosage": "20mg",
    "form": "tablet",
    "label": "lisinopril",
    "label_type": "GENERIC",
    "quantities": [
      30,
      60,
      "… 3 more"
    ],
    "quantity": 90
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/goodrx/goodrx-prices-api/?offering=ab545ce4-465c-4f31-a323-357f01496b66

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
