# SingleCare Prescription Drug Prices by ZIP

> SingleCare Prescription Drug Prices by ZIP is a paid API for AI agents from api.shopsocial-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns SingleCare coupon prices for a drug at nearby pharmacies (CVS, Walgreens, Walmart, Kroger, etc.) including per-pharmacy pricing, lowest price, form/strength/quantity, retail cash price, and monthly price history, looked up by ZIP code.

## Facts

- Endpoint: GET https://api.shopsocial-api.workers.dev/api/ecommerce/singlecare?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/singlecare-prescription-drug-prices-by-zip-d0d694c3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tz9wFxYUrffiCX_GuZcyW

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability singlecare-prescription-drug-prices-by-zip-d0d694c3
```

Example prompt: What are the SingleCare coupon prices for atorvastatin at pharmacies near ZIP 60614 — show me the price at each pharmacy, the lowest overall price, and whether there's a generic option?

## When to prefer this

Use this endpoint when you need SingleCare-specific coupon prices across multiple pharmacy chains for a US prescription drug, especially when comparing per-pharmacy prices, checking distance from a ZIP code, or tracking historical price trends. Prefer this over Cost Plus Drugs endpoint when the user needs retail pharmacy options (Walgreens, CVS, Walmart) rather than mail-order prices.

## Known failure modes

- Drug name not recognized or misspelled — returns empty or error response
- ZIP code not found or out of service area — empty pharmacy list returned
- No pharmacies found near specified ZIP — empty list
- SingleCare page structure changed — scraper may return partial or malformed data
- Residential proxy unavailable — timeout or connection error
- Invalid or missing required 'drug' parameter — validation error

## How this service works

Pay-per-call e-commerce, product, price and social media data tools for AI agents, from public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

Returns a list of nearby pharmacies (e.g. CVS, Walgreens, Walmart, Kroger) each with their SingleCare coupon price, loyalty price, and distance from the given ZIP. Also includes the overall lowest available price, the drug's form, strength, and quantity priced, the usual retail cash price, a generic/brand flag, and a monthly price history chart.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "drug"
     ],
     "properties": {
      "zip": {
       "type": "string",
       "description": "Optional 5-digit US ZIP code for nearby pharmacies"
      },
      "drug": {
       "type": "string",
       "description": "Drug name as in singlecare.com/prescription/<name>, e.g. lipitor, atorvastatin-calcium, amoxicillin"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/singlecare-prescription-drug-prices-by-zip-d0d694c3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.shopsocial-api.workers.dev](https://www.zero.xyz/host/api.shopsocial-api.workers.dev/llms.txt)
