# CVS Pharmacy — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Find nearby CVS Pharmacy locations and check their hours, then search for products and verify real-time availability at specific stores. Quickly locate what you need and confirm it's in stock before making a trip.

**Category:** Healthcare | **Website:** [cvs.com/](https://cvs.com/) | **Docs:** [parse.bot/marketplace/e24b3c6d-4330-4e08-95bf-c464326f3abc/cvs-com-api](https://parse.bot/marketplace/e24b3c6d-4330-4e08-95bf-c464326f3abc/cvs-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-cvs-com-api-e24b3c6d/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### check_product_availability

Check if a specific retail product is in stock at a specified CVS store. Returns inventory quantities including available on-hand, pick on-hand, and store on-hand amounts. Response times may vary by store.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU/identifier (e.g. '154641') |
| `store_id` | string | Yes | CVS store ID to check availability at (e.g. '9767') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cvs-com-api-e24b3c6d/check_product_availability \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sku":"<string>","store_id":"<string>"}'
```

### get_store_details

Retrieve full details for a specific CVS store by its store ID, including address, phone numbers, full weekly hours for retail and pharmacy departments, and store service indicators.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `store_id` | string | Yes | The CVS store ID (e.g. '9767', '10613') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cvs-com-api-e24b3c6d/get_store_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store_id":"<string>"}'
```

### search_products

Search CVS product catalog via typeahead/autocomplete. Returns product name suggestions with search popularity and filter options, drug/medication matches with NDC codes and brand/generic names, and related MinuteClinic healthcare services. Results are autocomplete-style suggestions, not full product listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query (e.g. 'advil', 'tylenol', 'bandaids') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cvs-com-api-e24b3c6d/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### search_stores

Search for CVS pharmacy locations by ZIP code. Returns a paginated list of stores with addresses, phone numbers, distance, and full weekly hours for both the store and the pharmacy (including lunch breaks). Results are auto-iterated across pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return per page |
| `page` | integer | No | Page number for pagination |
| `query` | string | No | ZIP code to search near (e.g. '90210', '10001'). Only numeric ZIP codes reliably return results. |
| `radius` | integer | No | Search radius in miles |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cvs-com-api-e24b3c6d/search_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>","radius":"<integer>"}'
```
