# Farmacias Guadalajara Scraper (`rastriq/farmacias-guadalajara-scraper`) Actor

Scrape products and prices from Farmacias Guadalajara Mexico. Extract product names, prices, categories, descriptions, and availability.

- **URL**: https://apify.com/rastriq/farmacias-guadalajara-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce
- **Stats:** 4 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

### What data can you scrape from Farmacias Guadalajara?

- Scrapes **category pages**, **search results** and **direct product URLs**
- Returns: product name, brand, SKU, price (MXN), original/list price, discount %, stock status, image URLs, category path and more
- Uses VTEX Catalog API when available for fast bulk extraction
- Falls back gracefully to XHR interception → JSON-LD → DOM parsing

***

### Output: Farmacias Guadalajara data structure

| Field | Label | Format |
|-------|-------|--------|
| `name` | Product | text |
| `brand` | Brand | text |
| `price` | Price (MXN) | number |
| `original_price` | List price | number |
| `discount_percent` | Discount % | number |
| `stock_status` | Stock | text |
| `category` | Category | text |
| `url` | URL | link |

#### Example output (one record)

```json
{
    "sku": "1234567",
    "name": "Aspirina 500mg 20 Tabletas",
    "brand": "Bayer",
    "price": 45.90,
    "original_price": 59.00,
    "currency": "MXN",
    "discount_percent": 22,
    "description": "Analgésico y antipirético...",
    "stock_status": "in_stock",
    "quantity_available": 100,
    "image_url": "https://imgfg.vtexassets.com/...aspirin.jpg",
    "images": ["https://imgfg.vtexassets.com/...aspirin.jpg"],
    "category": ["Medicamentos", "Analgésicos"],
    "url": "https://www.farmaciasguadalajara.com/aspirina-500mg-20-tabletas/p",
    "scraped_at": "2026-04-29T12:00:00.000Z"
}
```

***

### 🚀 Quick start

1. Click **Start** with the default input to test with a small sample.
2. Open the **Output** tab to preview results.
3. Export as CSV / Excel / JSON, or connect via API.

***

### How to scrape Farmacias Guadalajara — input options

| Field | Description | Default |
|-------|-------------|---------|
| **URLs de categoria o producto** | Una o mas URLs de farmaciasguadalajara.com. Acepta paginas de categoria, resultados de busqueda y URLs de producto in... | `[{"url": "https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos"}]` |
| **Busqueda por texto** | Busca productos por nombre, marca o principio activo. Alternativa a proporcionar URLs manualmente.Ejemplos: omeprazol... | — |
| **Maximo de productos** | Numero maximo de productos a extraer. Usa un valor bajo (5-10) para la primera prueba. | `200` |
| **Concurrencia** | Paginas procesadas en paralelo. 5 es un buen equilibrio velocidad/estabilidad. | `5` |
| **Proxy configuration** | Optional. Residential proxies recommended for best results. | Apify auto |
| **Timeout de pagina (s)** | Segundos maximos de espera para cargar una pagina antes de saltarla. | `45` |

***

### 🔍 How it works

This Actor uses **Playwright (headless browser)** to extract data from Farmacias Guadalajara. It navigates search results or catalog pages, extracts structured data from each listing, and normalizes the output into a consistent schema.

***

### How much does it cost to scrape Farmacias Guadalajara?

This Actor uses **Pay-Per-Event** pricing — you pay only for results delivered, not for compute time.

| Plan | What you get |
|------|-------------|
| **Free tier** | $5/month of platform credits — enough for thousands of results |
| **Paid plans** | Scale to tens of thousands of results per run |

***

### 🔄 Integrations & scheduling

- **Schedule** daily/weekly runs from the Apify Console for automated data collection.
- Push results to **Google Sheets, Slack, Zapier, Make, webhooks** or any database.
- Fetch datasets via the **Apify REST API** or the official JavaScript/Python clients.

***

### Is it legal to scrape Farmacias Guadalajara?

This Actor collects only **publicly available** data. It does not log in, bypass paywalls, or access private information. You are responsible for using the extracted data in compliance with the site's Terms of Service and applicable data protection laws (including GDPR where relevant).

***

### ❓ FAQ

**Can I access the data via API?**
Yes. Every run stores its dataset on Apify. Fetch it via REST API or use the official JavaScript/Python clients.

**What export formats are supported?**
JSON, CSV, Excel (XLSX), XML, and HTML table. You can also push data directly to Google Sheets or any webhook endpoint.

**Do I need proxies?**
Residential proxies are recommended for best results. The default proxy configuration is pre-set.

### Related Actors from Rastriq

- [Amazon Reviews Scraper](https://apify.com/rastriq/amazon-reviews-scraper)
- [Made In China Scraper](https://apify.com/rastriq/made-in-china-scraper)
- [Pccomponentes Scraper](https://apify.com/rastriq/pccomponentes-scraper)
- [Vinted Es Scraper](https://apify.com/rastriq/vinted-es-scraper)

# Actor input Schema

## `startUrls` (type: `array`):

Una o mas URLs de <a href='https://www.farmaciasguadalajara.com' target='_blank'>farmaciasguadalajara.com</a>. Acepta paginas de categoria, resultados de busqueda y URLs de producto individual.<br><br>Formatos aceptados:<br><code>https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos</code> (categoria)<br><code>https://www.farmaciasguadalajara.com/buscar?q=omeprazol</code> (busqueda)<br><code>https://www.farmaciasguadalajara.com/.../p</code> (producto)<br><br><b>Nota:</b> Debes proporcionar al menos una URL o un termino de busqueda en el campo siguiente.

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

Busca productos por nombre, marca o principio activo. Alternativa a proporcionar URLs manualmente.<br><br>Ejemplos: <code>omeprazol</code>, <code>paracetamol 500mg</code>, <code>pañales huggies</code>

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

Numero maximo de productos a extraer. Usa un valor bajo (5-10) para la primera prueba.

## `maxConcurrency` (type: `integer`):

Paginas procesadas en paralelo. 5 es un buen equilibrio velocidad/estabilidad.

## `proxyConfiguration` (type: `object`):

<b>Se recomienda proxy residencial MX</b> para evitar bloqueos del sitio. Los proxies datacenter pueden funcionar para volumenes bajos.

## `navigationTimeoutSecs` (type: `integer`):

Segundos maximos de espera para cargar una pagina antes de saltarla.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos"
    }
  ],
  "maxItems": 10,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "MX"
  },
  "navigationTimeoutSecs": 45
}
```

# Actor output Schema

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

All scraped products with prices, stock and images

# 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 = {
    "startUrls": [
        {
            "url": "https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos"
        }
    ],
    "searchQuery": "",
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "MX"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/farmacias-guadalajara-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 = {
    "startUrls": [{ "url": "https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos" }],
    "searchQuery": "",
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "MX",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/farmacias-guadalajara-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 '{
  "startUrls": [
    {
      "url": "https://www.farmaciasguadalajara.com/farmacia/medicina/dolor/analgesicos"
    }
  ],
  "searchQuery": "",
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "MX"
  }
}' |
apify call rastriq/farmacias-guadalajara-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/MGIFC2gk050llNmqz/builds/hmGdmaXK3zGwITeRi/openapi.json
