# GLP-1 Pharmacy Price and Availability Tracker (`george.the.developer/glp1-pharmacy-availability-tracker`) Actor

Normalized GLP-1 pharmacy data feed with Cost Plus pricing, NovoCare pharmacy pricing, and FDA shortage status.

- **URL**: https://apify.com/george.the.developer/glp1-pharmacy-availability-tracker.md
- **Developed by:** [George Kioko](https://apify.com/george.the.developer) (community)
- **Categories:** Business, Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## GLP-1 Pharmacy Price and Availability Tracker

GLP-1 prices vary 5-10x across pharmacies. Tracking it by hand is a Tuesday-morning ritual nobody wants to maintain.

This actor provides a normalized GLP-1 pharmacy data feed for cost transparency platforms, telehealth operations teams, employer benefit analysts, and pharmacy benchmark workflows. It collects public pricing and availability signals for GLP-1 products, normalizes each result into a stable JSON schema, and adds FDA shortage status from openFDA.

The v1 source mix is intentionally conservative. Cost Plus Drugs is checked first because it exposes a public JSON formulary API with NDC and unit price fields. NovoCare Pharmacy public pages are used for semaglutide pharmacy pricing when Cost Plus does not list a matching product. The actor does not collect compounded GLP-1 offers and does not frame results as consumer treatment guidance.

### Quick Start

Run as a Standby API:

```bash
curl "https://api.apify.com/v2/acts/george.the.developer~glp1-pharmacy-availability-tracker/runs?token=$APIFY_TOKEN"
````

Query current semaglutide prices:

```bash
curl "https://glp1-pharmacy-availability-tracker.apify.actor/prices?drug=semaglutide&limit=5"
```

Query FDA shortage status:

```bash
curl "https://glp1-pharmacy-availability-tracker.apify.actor/shortage?drug=semaglutide"
```

### Endpoints

| Endpoint | Purpose | Billing |
| --- | --- | --- |
| `GET /` | Service info and supported routes | none |
| `GET /health` | Health response for platform probes | none |
| `GET /prices?drug=<name|NDC>&pharmacy=<>&limit=<N>` | Current normalized price rows | `pharmacy-price` per row |
| `GET /shortage?drug=<name>` | openFDA shortage status and history | `pharmacy-price` x 1 |
| `GET /alerts?since=<ISO>&drug=<>&type=<>` | Price, stock, or shortage deltas | `availability-alert` per alert |
| `GET /watchlist?drugs=<list>&max_price=<>` | Rows matching a price ceiling | `pharmacy-price` per row |

Healthcheck values such as `test`, `ping`, `example.com`, and `https://apify.com` short circuit to a mock response. Mock responses use the production shape: `{ ok, mocked, input, prices, alerts }`.

### Price Row Schema

| Field | Type | Notes |
| --- | --- | --- |
| `row_id` | string | Hash of drug, pharmacy, NDC or dosage, and check time |
| `drug_name` | string | Generic name such as `semaglutide` |
| `brand_name` | string or null | Brand name such as `Ozempic` |
| `ndc` | string or null | National Drug Code when the source publishes it |
| `dosage` | string | Strength or dose group |
| `package_size` | string | Pens, vials, count, or package text |
| `pharmacy_name` | string | Source pharmacy or pharmacy program |
| `pharmacy_type` | string | `retail-chain`, `mail-order`, `specialty`, or `cost-plus` |
| `list_price_usd` | number | Published list or program price |
| `cash_price_usd` | number or null | Cash price when available |
| `in_stock` | boolean or null | Source level availability signal |
| `shortage_status` | string or null | `no-shortage`, `on-shortage-list`, or `resolved` |
| `shortage_reason` | string or null | openFDA reason or related note |
| `source_url` | string | Public source URL |
| `checked_at` | ISO8601 | Fetch timestamp |

### Alert Schema

| Field | Type | Notes |
| --- | --- | --- |
| `alert_id` | string | Hash of drug, pharmacy, alert type, and observed time |
| `drug_name` | string | Generic name |
| `brand_name` | string or null | Brand name |
| `pharmacy_name` | string | Pharmacy or program |
| `alert_type` | string | `price-drop`, `price-rise`, `restock`, `stockout`, `shortage-listed`, or `shortage-resolved` |
| `previous_value` | number, string, or null | Prior state |
| `current_value` | number or string | Current state |
| `delta_percent` | number or null | Price change percentage |
| `observed_at` | ISO8601 | Detection time |
| `source_url` | string | Public source URL |

### Pipeline

```mermaid
flowchart LR
  A[Input drug or NDC] --> B[Cost Plus API]
  A --> C[NovoCare pharmacy pages]
  A --> D[openFDA shortage API]
  B --> E[Normalize price rows]
  C --> E
  D --> E
  E --> F[Optional alert detection]
  F --> G[Dataset and API response]
```

### Pricing

| Event | Price | When charged |
| --- | ---: | --- |
| `actor-start` | $0.50 | Once per paid Standby request or batch run |
| `pharmacy-price` | $0.05 | Per normalized pharmacy and drug price row returned |
| `availability-alert` | $0.25 | Per restock, price drop, or shortage state change alert returned |

### GoodRx Compared With This Actor

GoodRx is a consumer UI. It is useful for one off pharmacy shopping, but it is not designed as a normalized API feed for builders. This actor is the API layer for teams that need machine readable GLP-1 pharmacy data in their own product, dashboard, or reporting pipeline.

### Use Cases

Cost transparency platform integrations can use the feed to populate drug price comparison surfaces. Telehealth operations teams can monitor approved pharmacy program prices and shortage status. Employer benefit teams can create GLP-1 access reports by drug and source. Pharmacy benefit manager analysts can benchmark public program pricing against internal plan data.

### FAQ

**Which drugs are covered?**\
The config starts with semaglutide, tirzepatide, and liraglutide brands: Ozempic, Wegovy, Mounjaro, Zepbound, and Saxenda.

**How often is the data refreshed?**\
Each API request fetches current public source data. Batch users can schedule recurring runs in Apify.

**How current is FDA shortage data?**\
The shortage layer comes from openFDA and includes the API metadata date in each response. FDA updates can lag real pharmacy inventory.

**What happens if a source blocks a request?**\
The actor returns a clear error for that request. It does not silently swallow source failures.

**Is this FDA compliance advice?**\
No. This is a public data feed. It does not provide medical, legal, regulatory, or prescribing advice.

**How do I request a refund?**\
Open an Apify issue with the run ID and the endpoint used. Refunds are reviewed when source failures or actor errors caused unusable output.

Questions or enterprise data requests: contact George Kioko on Apify at `george.the.developer`.

# Actor input Schema

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

Run mode for batch execution.

## `drug` (type: `string`):

Drug generic name, brand name, or NDC.

## `pharmacy` (type: `string`):

Optional pharmacy name filter.

## `limit` (type: `integer`):

Maximum rows to return.

## `since` (type: `string`):

ISO timestamp for alert filtering.

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

Optional alert type filter.

## `drugs` (type: `string`):

Comma separated drug list for watchlist mode.

## `max_price` (type: `number`):

Maximum cash price for watchlist filtering.

## Actor input object example

```json
{
  "mode": "prices",
  "drug": "semaglutide",
  "limit": 25,
  "drugs": "semaglutide,liraglutide"
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("george.the.developer/glp1-pharmacy-availability-tracker").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("george.the.developer/glp1-pharmacy-availability-tracker").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call george.the.developer/glp1-pharmacy-availability-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=george.the.developer/glp1-pharmacy-availability-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GLP-1 Pharmacy Price and Availability Tracker",
        "description": "Normalized GLP-1 pharmacy data feed with Cost Plus pricing, NovoCare pharmacy pricing, and FDA shortage status.",
        "version": "1.0",
        "x-build-id": "FXLIWtz3pewmhlyld"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/george.the.developer~glp1-pharmacy-availability-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-george.the.developer-glp1-pharmacy-availability-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/george.the.developer~glp1-pharmacy-availability-tracker/runs": {
            "post": {
                "operationId": "runs-sync-george.the.developer-glp1-pharmacy-availability-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/george.the.developer~glp1-pharmacy-availability-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-george.the.developer-glp1-pharmacy-availability-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "prices",
                            "shortage",
                            "alerts",
                            "watchlist"
                        ],
                        "type": "string",
                        "description": "Run mode for batch execution.",
                        "default": "prices"
                    },
                    "drug": {
                        "title": "Drug",
                        "type": "string",
                        "description": "Drug generic name, brand name, or NDC.",
                        "default": "semaglutide"
                    },
                    "pharmacy": {
                        "title": "Pharmacy",
                        "type": "string",
                        "description": "Optional pharmacy name filter."
                    },
                    "limit": {
                        "title": "Limit",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum rows to return.",
                        "default": 25
                    },
                    "since": {
                        "title": "Since",
                        "type": "string",
                        "description": "ISO timestamp for alert filtering."
                    },
                    "type": {
                        "title": "Alert Type",
                        "enum": [
                            "price-drop",
                            "price-rise",
                            "restock",
                            "stockout",
                            "shortage-listed",
                            "shortage-resolved"
                        ],
                        "type": "string",
                        "description": "Optional alert type filter."
                    },
                    "drugs": {
                        "title": "Watchlist Drugs",
                        "type": "string",
                        "description": "Comma separated drug list for watchlist mode.",
                        "default": "semaglutide,liraglutide"
                    },
                    "max_price": {
                        "title": "Maximum Price",
                        "type": "number",
                        "description": "Maximum cash price for watchlist filtering."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
