# Amazon Pharmacy Prescription Price & Prime Discount Lookup (`crawlyth-forge/amazon-pharmacy-price-lookup`) Actor

Look up Amazon Pharmacy cash, Prime and average insurance prices for US prescriptions by drug name, product URL or a bulk drug/strength/quantity list. Rows include retail price, Prime discount, supply, form, strength, Rx flag and RxPass eligibility.

- **URL**: https://apify.com/crawlyth-forge/amazon-pharmacy-price-lookup.md
- **Developed by:** [crawlyth forge](https://apify.com/crawlyth-forge) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amazon Pharmacy Prescription Price & Prime Discount Lookup

Pricing research for US prescription medications sold through Amazon Pharmacy. Give it a drug name,
a product link, or a list of drug/strength/quantity combinations and it returns every public price
option it finds: retail price, Prime-member price and discount, average-with-insurance estimate,
manufacturer-coupon savings, supply length, dosage form, strength, RxPass eligibility and medication
summary headings.

No Amazon account, prescription number, insurance card, cookie or API key is needed. The actor reads
the same logged-out pages and public price requests a shopper sees.

### What you can do

- **Search by drug name** — generic (`atorvastatin`, `metformin ER`) or brand (`Lipitor`, `Mounjaro`).
  Every query is searched across Amazon Pharmacy's result pages.
- **Look up products directly** — paste `pharmacy.amazon.com` links, `amazon.com/dp/...` links, or
  list bare ASINs.
- **Resolve a bulk list** — one JSON entry per medication with an optional strength, dosage form,
  quantity and days supply.
- **Filter the option matrix** — keep only a strength, form, days supply, daily dose, exact quantity,
  generics or brands, and stop at a row budget.
- **Check savings programs** — flag products on the public RxPass medication list and include the
  Prime prescription savings benefit shown for each option.

### Output

One row is one price option: a product, strength and form with a specific daily dose and days
supply. The same product appears once per available option, so 30-day and 90-day fills and 1–5
units-per-day schedules are separate rows.

| Field | Meaning |
|---|---|
| `drugName` | Medication name |
| `productTitle` | Product heading as Amazon displays it |
| `productType` | `generic` or `brand` when Amazon states the mapping |
| `genericFor` / `brandFor` | Brand that a generic replaces, or generic behind a brand |
| `asin` | Amazon ASIN |
| `drugId` | Amazon Pharmacy drug identifier |
| `url` | Canonical product page |
| `strength` | Strength, including combination strengths |
| `dosageForm` | Dosage form |
| `dailyDose` | Units per day for this option, when Amazon offers a daily schedule |
| `daysSupply` | Days of supply |
| `quantity` / `quantityLabel` | Unit count and Amazon's own quantity label |
| `supplyLabel` | Supply description, e.g. `30 days (30 tablets)` |
| `retailPrice` | Retail price without insurance |
| `primePrice` | Price with the Prime prescription savings benefit |
| `primeDiscountPercent` | Prime discount against retail |
| `averageWithInsurancePrice` | Amazon's average insurance estimate, when shown |
| `averageWithInsuranceNote` | Context for the insurance estimate, or why it is absent |
| `withInsuranceStartingPrice` | "With insurance, starting at" figure when Amazon shows one |
| `withInsuranceCouponSavings` | Manufacturer-coupon amount on the insurance offer |
| `cashStartingPrice` | "Without insurance, starting at" figure when Amazon shows one |
| `cashCouponSavings` | Manufacturer-coupon amount on the cash offer |
| `manufacturerCouponSavings` / `manufacturerCouponNote` | Coupon amount and eligibility note |
| `deliveryNote` | Delivery promise shown for the option |
| `rxRequired` | Prescription-required flag |
| `rxPassEligible` | Product's medication is on the public RxPass list |
| `availableStrengths` / `availableForms` | Other options Amazon lists for the same drug |
| `availableQuantities` | Quantity labels available for the product |
| `medicationSummaryHeadings` | Headings from the product's medication summary |
| `imageUrl` | Product image |
| `priceCurrency` | `USD` |
| `scrapedAt` | UTC collection time |

Rows with `recordType: "status"` appear only for a bulk or URL entry that could not be resolved
(not found, currently unavailable, or no option matching the filters). They carry `statusReason` and
a plain-language `message` so a large batch is easy to audit.

### Input

| Name | Type | Default | Notes |
|---|---|---|---|
| `mode` | select | `search` | `search`, `byUrl` or `bulk` |
| `searchQueries` | string list | `["atorvastatin"]` | Drug names, one per entry (mode `search`) |
| `sortBy` | select | `relevance` | Search order: relevance, price low/high, reviews, newest |
| `startUrls` | URL list | – | Product URLs or product links (mode `byUrl`) |
| `asins` | string list | – | Bare ASINs such as `B0846GFL6G` (mode `byUrl`) |
| `bulkDrugs` | JSON array | – | Objects with `drugName` plus optional `strength`, `dosageForm`, `quantity`, `daysSupply` (mode `bulk`) |
| `strength` | text | – | Keep options whose strength contains this text, e.g. `80 MG` |
| `dosageForm` | select | `any` | Tablet, capsule, cream, solution, inhaler, injector, patch and more |
| `daysSupply` | integer | – | Exact days of supply, e.g. `30` or `90` |
| `dailyDose` | select | `any` | 1–5 units per day |
| `quantity` | integer | – | Exact unit count |
| `drugType` | select | `any` | Generics only, brands only, or both |
| `includeRxPass` | boolean | `true` | Read the public RxPass medication list |
| `includeMedicationSummary` | boolean | `true` | Add medication summary headings |
| `maxSearchPages` | integer | `3` | Search pages per drug name (about 16 products each) |
| `maxItems` | integer | `100` | Row budget; one row per price option |

#### Search example

```json
{
  "mode": "search",
  "searchQueries": ["atorvastatin", "metformin"],
  "drugType": "generic",
  "daysSupply": 30,
  "dailyDose": "1",
  "maxItems": 25
}
```

#### Direct URL example

```json
{
  "mode": "byUrl",
  "startUrls": [
    { "url": "https://pharmacy.amazon.com/dp/B0846GFL6G" }
  ],
  "asins": ["B0845R2H4L"]
}
```

#### Bulk example

```json
{
  "mode": "bulk",
  "bulkDrugs": [
    { "drugName": "atorvastatin", "strength": "80 MG", "quantity": 30 },
    { "drugName": "metformin", "strength": "850 MG", "daysSupply": 90 },
    { "drugName": "Mounjaro", "strength": "2.5 MG/0.5 ML" }
  ]
}
```

### Who it is for

- Price-transparency and patient-access teams comparing Amazon Pharmacy's cash and Prime prices.
- Health-tech and benefits tools that need a public price snapshot without an insurance integration.
- Market researchers tracking GLP-1, generic and brand prescription pricing over time.
- Data teams exporting pharmacy prices to Sheets, BI tools, JSON or CSV through the Apify API.

### Data source and method

Amazon Pharmacy publishes a logged-out US price page for each medication. The actor reads the
public product page and its public logged-out pricing response, then converts the supply/frequency
matrix into flat rows. It also reads the public RxPass medication list to flag eligibility.

Prices are public US prices. Insurance copays tied to a person's plan require signing in and are
outside this actor; only Amazon's public average-with-insurance figure is reported.

### FAQ

**Do I need an Amazon account or Prime membership?** No. The actor reads prices shown to a logged-out
visitor. Prime prices are the member prices Amazon publishes publicly, not a personalized checkout
price.

**Why does a product have no row?** Amazon may mark it "Currently unavailable", or your filters may
remove every option. Bulk and URL runs emit a status row explaining which case applied.

**Why is there no average-with-insurance number for some options?** Amazon only shows an average when
it has enough recent claims for that exact supply and dose. The actor reports the estimate when it is
there and omits it otherwise.

**Can I get my own insurance copay?** No. That price depends on your plan and requires a signed-in
Amazon Pharmacy account. Use the public average figure as a reference only.

**Can I get delivery dates for my ZIP?** Not from the logged-out price interface. Amazon promises
delivery at checkout after a ZIP and prescription are on file; the actor reports the public delivery
note it can see.

**Can I track price history?** Amazon does not publish historical prices. Schedule the actor and
compare datasets over time.

**Which market is covered?** The United States (USD).

**Why do some brand medications show manufacturer-coupon figures instead of Prime prices?** Amazon
shows coupon offers for some brand drugs, and coupons cannot be combined with the Prime prescription
savings benefit. The actor reports exactly the offers Amazon displays.

**How many products can one search return?** Amazon Pharmacy usually fills its first results page with
up to about 25 products, and later pages are often empty. Use several specific drug names, or the
bulk and URL modes, when you need an exhaustive list.

**Why does the result count vary between runs?** Search ranking and inventory change frequently.
Amazon can also index a listing that no longer resolves; the actor skips that card and keeps going.
Use `maxSearchPages` to widen a search and re-run for a fresh snapshot.

# Actor input Schema

## `mode` (type: `string`):

How to find the medications to price.

## `searchQueries` (type: `array`):

One or more generic or brand drug names, e.g. `atorvastatin`, `Lipitor`, `metformin ER`. Every query is searched and all matching products are priced.

## `sortBy` (type: `string`):

Order of the Amazon search result pages (mode=search).

## `startUrls` (type: `array`):

Amazon Pharmacy product URLs, `pharmacy.amazon.com/dp/...` links or `amazon.com/dp/...` links (mode=byUrl). Use `asins` for bare IDs.

## `asins` (type: `array`):

Bare Amazon ASINs such as `B0846GFL6G` (mode=byUrl). Combine with product URLs if you like.

## `bulkDrugs` (type: `array`):

Each entry is a drug to resolve and price. Optional per-entry strength, form, quantity and days supply narrow the matching options. Example: `[{"drugName": "atorvastatin", "strength": "80 MG", "quantity": 30}]`.

## `strength` (type: `string`):

Only keep options whose strength contains this text, e.g. `80 MG`. Leave empty for all strengths.

## `dosageForm` (type: `string`):

Only keep options in this dosage form. Leave on Any for all forms.

## `daysSupply` (type: `integer`):

Only keep options for exactly this many days of supply, e.g. `30` or `90`. Leave empty for all supply lengths.

## `dailyDose` (type: `string`):

Only keep options for this many units per day.

## `quantity` (type: `integer`):

Only keep options with exactly this many units. Leave empty for all quantities.

## `drugType` (type: `string`):

Keep only generic products, only brand products, or both.

## `includeRxPass` (type: `boolean`):

Check Amazon's RxPass medication list and flag products included in the $5/month RxPass subscription.

## `includeMedicationSummary` (type: `boolean`):

Add the headings from the product page's medication summary (about, usage, side effects, interactions).

## `maxSearchPages` (type: `integer`):

How many Amazon search result pages to read per drug name (16 results per page).

## `maxItems` (type: `integer`):

Maximum number of price-option rows to emit. Each row is one daily-dose and supply combination for one product.

## Actor input object example

```json
{
  "mode": "search",
  "searchQueries": [
    "atorvastatin"
  ],
  "sortBy": "relevance",
  "startUrls": [],
  "asins": [],
  "bulkDrugs": [],
  "dosageForm": "any",
  "dailyDose": "any",
  "drugType": "any",
  "includeRxPass": false,
  "includeMedicationSummary": true,
  "maxSearchPages": 1,
  "maxItems": 2
}
```

# Actor output Schema

## `priceOptions` (type: `string`):

Dataset containing every scraped Amazon Pharmacy medication price option.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQueries": [
        "atorvastatin"
    ],
    "startUrls": [],
    "asins": [],
    "bulkDrugs": [],
    "includeRxPass": false,
    "includeMedicationSummary": true,
    "maxSearchPages": 1,
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlyth-forge/amazon-pharmacy-price-lookup").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQueries": ["atorvastatin"],
    "startUrls": [],
    "asins": [],
    "bulkDrugs": [],
    "includeRxPass": False,
    "includeMedicationSummary": True,
    "maxSearchPages": 1,
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlyth-forge/amazon-pharmacy-price-lookup").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQueries": [
    "atorvastatin"
  ],
  "startUrls": [],
  "asins": [],
  "bulkDrugs": [],
  "includeRxPass": false,
  "includeMedicationSummary": true,
  "maxSearchPages": 1,
  "maxItems": 2
}' |
apify call crawlyth-forge/amazon-pharmacy-price-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlyth-forge/amazon-pharmacy-price-lookup"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8c5LwBG3Er8xc8lud/builds/MtN1ggZTfrecAe9pM/openapi.json
