# SingleCare Drug Price Scraper (`parseforge/singlecare-scraper`) Actor

Scrapes prescription drug prices from SingleCare by browsing all listings or searching specific drug names. Returns each price with the drug name, strength, form, pharmacy, and cash discount amount as a flat row.

- **URL**: https://apify.com/parseforge/singlecare-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 8 total users, 1 monthly users, 96.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### SingleCare Drug Price Scraper

**Scrape prescription drug prices from SingleCare for any medication, up to a million per run.** Each result includes the drug name, strength, form, pharmacy, and cash discount price. No login or API key. Export to CSV, JSON, Excel, or XML.

SingleCare lists cash discount prices for thousands of prescription drugs, but browsing manually across pharmacies and dosages is slow. This Actor reads the public drug listings and search results directly, filtered by drug name or keyword, and returns each price in one fixed schema.

| Who uses it | What they scrape SingleCare for |
|---|---|
| Healthcare analysts | Compare cash prices for common medications across pharmacy chains. |
| Pharmacy benefit managers | Monitor competitor discount card pricing for formulary drugs. |
| Patient advocacy groups | Find the lowest available price for a specific drug in a given ZIP code. |
| Health-tech developers | Populate a drug price transparency tool with real-time cash rates. |

### What it does

This Actor collects SingleCare drug prices by browsing all listings or searching specific drug names, and returns each price as a flat row.

- 📋 **Browse All Drugs:** scrape every available drug listing on SingleCare, over 4,700 medications.
- 🔍 **Search Specific Drugs:** provide a list of drug names like metformin or atorvastatin and get only those prices.
- 🏷️ **Keyword filter:** in listings mode, narrow results by drug name keyword such as 'insulin' or 'statin'.
- ⚙️ **Flexible volume:** set a maximum number of prices to collect, from a single test row up to one million.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with SingleCare data

**💊 Build a drug price comparison tool.**

A health-tech startup scrapes all SingleCare prices daily to power a patient-facing app that shows the cheapest pharmacy for each prescription.

**📉 Monitor competitor discount cards.**

A pharmacy benefit manager runs weekly scrapes of top-selling drugs to track how SingleCare's cash prices compare to their own network rates.

**🧪 Research medication affordability.**

A university researcher collects prices for a list of chronic-disease drugs across multiple discount programs to study out-of-pocket cost variations.

**🏥 Find the lowest local price for a patient.**

A patient advocate enters a single drug name, scrapes all available pharmacy prices, and tells the patient exactly where to fill it for the least cash.

### Why choose this scraper

|  | What you get |
|---|---|
| **Cash discount price** | The price a patient pays without insurance at the pharmacy |
| **Pharmacy name** | Which chain or independent pharmacy offers this price |
| **Drug details** | Name, strength, and form of the medication |
| **No API limits** | Reads the public website directly with no registration or rate limits |

### How it compares

No other Store actor targets SingleCare the same way, so the honest comparison is with the alternatives teams actually weigh.

| | SingleCare Drug Price Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When SingleCare changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Drive the Actor from a full catalog browse or a list of specific drug names, and filters run as each price is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "mode": "listings",
  "maxItems": 10,
  "drugs": [
    "metformin",
    "lisinopril",
    "atorvastatin"
  ]
}
```

A larger pull:

```json
{
  "mode": "listings",
  "maxItems": 200,
  "drugs": [
    "metformin",
    "lisinopril",
    "atorvastatin"
  ]
}
```

### Pricing

Pay-per-result: **$0.0065 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.65 |
| 1,000 results | $6.50 |
| 10,000 results | $65.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [SingleCare Drug Price Scraper](https://apify.com/parseforge/singlecare-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to SingleCare through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/singlecare-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results for my drug search?**

Check the spelling of the drug name. SingleCare's search expects the exact generic or brand name. Try the 'Browse All Drugs' mode with a keyword filter to see how the drug is listed.

**The run stopped before collecting all the prices I requested.**

Your maxItems setting controls the cutoff. Increase it if you want more rows. Also check the run log for any network errors that may have interrupted the scrape.

**Some drugs show fewer pharmacies than I expected.**

SingleCare's pharmacy network varies by drug and location. The Actor returns exactly what the public website shows for each medication.

**I see a price of zero or a missing price for some rows.**

SingleCare may not display a cash price for every drug-pharmacy combination. The Actor records whatever value is shown on the page, which can be empty if no price is listed.

**The Actor is running slowly on the full catalog.**

Scraping all 4,700+ drugs takes time because each drug page must load. Use the 'Search Specific Drugs' mode with a targeted list for faster runs, or increase the run timeout in your Apify settings.

### FAQ

| Question | Answer |
|---|---|
| Does this scraper need a SingleCare account or API key? | No. It reads the public SingleCare website directly, so no login, account, or API key is required. |
| Can I search for a specific drug by name? | Yes. Switch to 'Search Specific Drugs' mode and provide a list of drug names. The Actor will look up each one and return its prices. |
| How many drug prices can I collect in one run? | You set the maximum. The input accepts any number from 1 to 1,000,000, so you can test with a few rows or pull the entire catalog. |
| What information comes back for each price? | Each row includes the drug name, strength, form, pharmacy name, and the cash discount price, along with any other fields SingleCare displays. |
| Does this include insurance copay prices? | No. SingleCare shows cash discount prices for patients paying without insurance. It does not display insured copay amounts. |
| Can I filter by pharmacy chain or location? | The Actor returns all pharmacies that appear for a given drug. You can filter the results after export by pharmacy name or use the data as-is. |
| Is this legal to scrape? | SingleCare's drug prices are publicly visible without a login. You are responsible for complying with their terms of service and applicable laws. |
| How often is the pricing data updated? | SingleCare updates its prices regularly. Run the Actor on a schedule to keep your dataset current with the latest cash rates. |
| What export formats are supported? | You can export your results to CSV, JSON, Excel, or XML directly from the Apify dataset. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by SingleCare Services, LLC. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

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

Choose how to search. 'listings' scrapes all available drugs (4,700+). 'search' looks up specific drug names you provide.

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

Maximum number of drug prices to collect per run.

## `searchQuery` (type: `string`):

In 'listings' mode, filter drugs by name (e.g., 'insulin', 'statin'). Leave empty for all drugs.

## `drugs` (type: `array`):

In 'search' mode, provide specific drug names to look up (e.g., metformin, lisinopril, atorvastatin).

## Actor input object example

```json
{
  "mode": "search",
  "maxItems": 3,
  "drugs": [
    "metformin",
    "lisinopril",
    "atorvastatin"
  ]
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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",
    "maxItems": 3,
    "drugs": [
        "metformin",
        "lisinopril",
        "atorvastatin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/singlecare-scraper").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",
    "maxItems": 3,
    "drugs": [
        "metformin",
        "lisinopril",
        "atorvastatin",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/singlecare-scraper").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",
  "maxItems": 3,
  "drugs": [
    "metformin",
    "lisinopril",
    "atorvastatin"
  ]
}' |
apify call parseforge/singlecare-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/singlecare-scraper"
        }
    }
}

```

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/LGykks3e8AWxUAw0a/builds/X64o2MAQbNDZo8uRb/openapi.json
