# Farmacias Chile Price Scraper (`sheshinmcfly/farmacias-chile-scraper`) Actor

Compare medication and health product prices across Chile's three largest pharmacy chains: Salcobrand, Cruz Verde, and Farmacias Ahumada. Returns internet price, pharmacy price, discount %, brand, category, and product URL. No login required.

- **URL**: https://apify.com/sheshinmcfly/farmacias-chile-scraper.md
- **Developed by:** [Sheshinmcfly](https://apify.com/sheshinmcfly) (community)
- **Categories:** E-commerce, Business, Automation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 1 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

## Farmacias Chile Price Scraper — Salcobrand, Cruz Verde & Farmacias Ahumada

Compare and monitor **medication and health product prices** across Chile's three largest pharmacy chains: **Salcobrand**, **Cruz Verde**, and **Farmacias Ahumada**.

Extract internet prices, pharmacy prices, discounts, brands, and categories — all in one structured dataset.

---

### What data does it extract?

| Field | Description | Example |
|---|---|---|
| `name` | Product name | "Paracetamol 500mg 24 comprimidos" |
| `store` | Pharmacy chain | `Salcobrand` / `Cruz Verde` / `Farmacias Ahumada` |
| `sku` | Product code | `123456` |
| `priceInternet` | Online price (CLP) | `2990` |
| `pricePharmacy` | In-store price (CLP) | `4190` |
| `priceFormatted` | Formatted online price | `"$2.990"` |
| `discountPercent` | Internet vs pharmacy discount % | `29` |
| `brand` | Laboratory / brand | `"Laboratorio Chile"` |
| `category` | Product category | `"Analgésicos"` |
| `imageUrl` | Product image URL | `"https://..."` |
| `url` | Product URL | `"https://salcobrand.cl/products/..."` |
| `searchTerm` | Search term used | `"paracetamol"` |
| `extractedAt` | Extraction timestamp | `"2026-04-21T12:00:00Z"` |

---

### Use cases

- **Price comparison**: Find the cheapest pharmacy for any medication in Chile
- **Discount monitoring**: Track which products have the biggest internet vs. pharmacy price gap
- **Market research**: Analyze pricing strategies across pharmacy chains
- **Healthcare cost analysis**: Monitor medication price trends over time
- **Procurement**: Find the best prices for corporate health plans or clinic supplies
- **Consumer intelligence**: Build price comparison tools for Chilean healthcare consumers

---

### How to use

1. Open the actor and click **Try for free**
2. Configure the inputs:
   - **Modo**: `search` (by keywords) or `urls` (specific product URLs)
   - **Términos de búsqueda**: e.g., `paracetamol`, `ibuprofeno`, `vitamina c`, `omeprazol`
   - **Farmacias**: Salcobrand only, Cruz Verde only, Farmacias Ahumada only, or all three
   - **Máximo resultados por término**: How many products to extract per search term
   - **Solo ofertas**: Extract only products with an internet price lower than pharmacy price
3. Click **Start** and wait for the run to complete
4. Download results as JSON, CSV, Excel, or XML from the **Dataset** tab

---

### Example output (JSON)

```json
{
  "name": "Paracetamol 500mg 24 comprimidos",
  "store": "Salcobrand",
  "sku": "paracetamol-500mg-24-comprimidos",
  "priceInternet": 2990,
  "pricePharmacy": 4190,
  "priceFormatted": "$2.990",
  "discountPercent": 29,
  "brand": "Laboratorio Chile",
  "category": "Analgésicos",
  "imageUrl": "https://cdn.salcobrand.cl/products/paracetamol.jpg",
  "url": "https://salcobrand.cl/products/paracetamol-500mg-24-comprimidos",
  "searchTerm": "paracetamol",
  "extractedAt": "2026-04-21T12:00:00.000Z"
}
````

***

### Supported pharmacies

| Pharmacy | Website | Search URL pattern |
|---|---|---|
| Salcobrand | salcobrand.cl | `/search?q={term}&type=product` |
| Cruz Verde | cruzverde.cl | `/buscador?query={term}` |
| Farmacias Ahumada | farmaciasahumada.cl | `/search?q={term}` |

***

### Pricing

This actor charges **$0.002 USD per result** (pay-per-result model). You only pay for successfully extracted products. A run extracting 100 products costs approximately $0.20 USD.

***

### Keywords

farmacias Chile scraper, Salcobrand price scraper, Cruz Verde data extraction, Farmacias Ahumada scraper, medicamentos precios Chile, pharmacy price comparison Chile, medication prices scraper, precios farmacia Chile, health products Chile data

***

### Legal Disclaimer

This actor is designed to extract **publicly available commercial data only** from Salcobrand (salcobrand.cl), Cruz Verde (cruzverde.cl), and Farmacias Ahumada (farmaciasahumada.cl), in full compliance with Chilean Law 19.628 on the Protection of Private Life (*Ley 19.628 sobre Protección de la Vida Privada*).

**What this actor does NOT collect:**

- Names of natural persons (private individuals)
- National ID numbers (RUT)
- Personal email addresses or private phone numbers
- Prescription data or any sensitive health/patient information
- Any data that could identify or profile a specific private individual

**What this actor collects:**

- Product names, prices, and SKUs (commercial data)
- Internet prices vs. pharmacy prices and discount percentages
- Brand/laboratory names (commercial entities)
- Product categories and image URLs (public commercial metadata)

The data extracted is identical to what any user can view freely by browsing the websites without logging in. Users of this actor are solely responsible for ensuring their own use of the extracted data complies with applicable laws and regulations in their jurisdiction.

# Actor input Schema

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

search: buscar por términos. urls: extraer desde URLs específicas.

## `searchTerms` (type: `array`):

Lista de medicamentos o productos a buscar. Ej: paracetamol, ibuprofeno, vitamina c

## `productUrls` (type: `array`):

URLs directas de productos de Salcobrand, Cruz Verde o Farmacias Ahumada (modo urls)

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

Selecciona una o varias farmacias

## `maxResultsPerTerm` (type: `integer`):

Cuántos productos extraer por cada término de búsqueda

## `onlyDiscounts` (type: `boolean`):

Filtrar solo productos que tengan precio internet menor al precio farmacia

## Actor input object example

```json
{
  "mode": "search",
  "searchTerms": [
    "paracetamol",
    "ibuprofeno"
  ],
  "stores": "all",
  "maxResultsPerTerm": 30,
  "onlyDiscounts": false
}
```

# Actor output Schema

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

All scraped pharmacy products stored in the default dataset.

# 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("sheshinmcfly/farmacias-chile-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("sheshinmcfly/farmacias-chile-scraper").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 sheshinmcfly/farmacias-chile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sheshinmcfly/farmacias-chile-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Farmacias Chile Price Scraper",
        "description": "Compare medication and health product prices across Chile's three largest pharmacy chains: Salcobrand, Cruz Verde, and Farmacias Ahumada. Returns internet price, pharmacy price, discount %, brand, category, and product URL. No login required.",
        "version": "1.0",
        "x-build-id": "6wcMemZLfRbOkgWBk"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sheshinmcfly~farmacias-chile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sheshinmcfly-farmacias-chile-scraper",
                "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/sheshinmcfly~farmacias-chile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-sheshinmcfly-farmacias-chile-scraper",
                "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/sheshinmcfly~farmacias-chile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-sheshinmcfly-farmacias-chile-scraper",
                "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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Modo",
                        "enum": [
                            "search",
                            "urls"
                        ],
                        "type": "string",
                        "description": "search: buscar por términos. urls: extraer desde URLs específicas.",
                        "default": "search"
                    },
                    "searchTerms": {
                        "title": "Términos de búsqueda",
                        "type": "array",
                        "description": "Lista de medicamentos o productos a buscar. Ej: paracetamol, ibuprofeno, vitamina c",
                        "default": [
                            "paracetamol",
                            "ibuprofeno"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "productUrls": {
                        "title": "URLs de productos",
                        "type": "array",
                        "description": "URLs directas de productos de Salcobrand, Cruz Verde o Farmacias Ahumada (modo urls)",
                        "items": {
                            "type": "string"
                        }
                    },
                    "stores": {
                        "title": "Farmacias a monitorear",
                        "enum": [
                            "salcobrand",
                            "cruzverde",
                            "ahumada",
                            "all"
                        ],
                        "type": "string",
                        "description": "Selecciona una o varias farmacias",
                        "default": "all"
                    },
                    "maxResultsPerTerm": {
                        "title": "Máximo resultados por término",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Cuántos productos extraer por cada término de búsqueda",
                        "default": 30
                    },
                    "onlyDiscounts": {
                        "title": "Solo productos en oferta",
                        "type": "boolean",
                        "description": "Filtrar solo productos que tengan precio internet menor al precio farmacia",
                        "default": false
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
