# Wells.pt Scraper — Portuguese Drugstore Products & Prices (`studio-amba/wells-pt-scraper`) Actor

Scrape product data from wells.pt, Sonae's Portuguese drugstore chain. Extract names, brands, prices, and stock levels for health, beauty, and personal care products.

- **URL**: https://apify.com/studio-amba/wells-pt-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Wells.pt Scraper

Collect product data from wells.pt, Sonae's Portuguese drugstore chain. Covers health, beauty, personal care, and vitamin/supplement products across Wells' national store network.

### How to use it

Point the scraper at wells.pt with a search keyword (Portuguese works best). It calls the site's own lightweight search-grid fragment endpoint directly and paginates automatically — no full-page rendering needed.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Product keyword, e.g. `"vitamina"`, `"creme"`, `"shampoo"` |
| `maxResults` | Integer | No | Result limit (default: 100) |
| `proxyConfiguration` | Object | No | Proxy settings for better reliability |

Defaults to searching `"vitamina"` if nothing is provided.

### Output

| Field | Type | Example |
|-------|------|---------|
| `name` | String | `"ErgyCebe Multivitaminas Zinco e Crómio"` |
| `brand` | String | `"Nutergia"` |
| `price` | Number | `27.32` |
| `currency` | String | `"EUR"` |
| `sku` | String | `"8311962"` |
| `inStock` | Boolean | `true` |
| `stockLevel` | Integer | `49` |
| `productDescription` | String | `"Multivitamínico 12 Vitaminas"` |

```json
{
    "name": "ErgyCebe Multivitaminas Zinco e Crómio",
    "brand": "Nutergia",
    "price": 27.32,
    "currency": "EUR",
    "url": "https://wells.pt/ergycebe-multivitaminas-zinco-e-cromio-8311962.html",
    "sku": "8311962",
    "inStock": true,
    "stockLevel": 49,
    "productDescription": "Multivitamínico 12 Vitaminas",
    "scrapedAt": "2026-08-07T09:39:52.526Z"
}
```

### Cost

CheerioCrawler hitting the site's own lightweight grid-fragment endpoint (no full-page rendering). Cost estimate: roughly **$0.0005 per result** (about $0.50 per 1,000 products) including default Apify proxy usage. Usage cost only settles once a run reports SUCCEEDED — reading the dataset mid-run will undercount cost, so check the final run status before comparing spend.

### Things to keep in mind

- Portuguese-language content throughout
- Prices are in EUR
- `stockLevel` and `inStock` are omitted when the site doesn't expose stock data for a product (not all products carry it)
- Pagination follows the site's own search-grid endpoint, up to 50 pages per run

### How to scrape Wells.pt data

1. Go to this actor's page on the [Apify Store](https://apify.com/store).
2. Click **Try for free** to open it in Apify Console.
3. Configure your search query and set the maximum number of results.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or connect it to your workflow via API.

You can also schedule regular runs, set up webhooks for real-time notifications, or integrate the results directly into your application using the [Apify API](https://docs.apify.com/api).

### Tips and tricks

- **Start small**: test with `maxResults: 5` before running large scrapes.
- **Use native Portuguese keywords**: search results are far more relevant than translated English terms.
- **Schedule runs**: set up recurring runs to keep your pricing and stock data fresh automatically.
- **Integrate via API**: use the [Apify API](https://docs.apify.com/api) or [client libraries](https://docs.apify.com/api/client) to fetch results programmatically.
- **No login required**: this actor scrapes publicly available data without needing an account.

### Limitations

- Data is scraped from the public website and may change without notice.
- Stock level data is only present when the site exposes it for a given product.
- Very large scraping jobs may be slower due to pagination limits.
- Respect the website's terms of service and use responsibly.

### Features

- **No login required** — scrapes publicly available data from Wells.pt without needing credentials or cookies.
- **Structured output** — results are returned as clean JSON objects, ready for processing.
- **Pagination handling** — automatically follows multiple pages of results.
- **Proxy support** — configurable proxy settings for reliable, large-scale scraping.
- **Flexible input** — search by keyword.
- **Scheduled runs** — run on a schedule to keep your dataset up to date automatically.
- **API access** — integrate results into your workflow using the Apify API or webhooks.

### Related Scrapers

- [DocMorris Scraper](https://apify.com/studio-amba/docmorris-scraper) — European online pharmacy
- [Aponeo Scraper](https://apify.com/studio-amba/aponeo-scraper) — German online pharmacy
- [Mifarma Scraper](https://apify.com/studio-amba/mifarma-scraper) — Spanish online pharmacy
- [Atida Scraper](https://apify.com/studio-amba/atida-pt-scraper) — Pan-European pharmacy, Portugal
- [Continente Scraper](https://apify.com/studio-amba/continente-pt-scraper) — Portuguese grocery/retail chain

### FAQ

**Is it legal to scrape Wells.pt?**
Web scraping of publicly available data is generally permitted. This actor only accesses information that is publicly visible to any website visitor. Always review the website's terms of service before scraping.

**How often should I run this scraper?**
For price monitoring or competitive intelligence, daily or weekly runs are common. Set up a [schedule](https://docs.apify.com/schedules) in Apify Console to automate this.

**Can I export the data to Google Sheets or Excel?**
Yes. After each run, you can download results in CSV, JSON, or Excel format directly from Apify Console. You can also connect results to Google Sheets using Apify integrations.

**What if the scraper stops working?**
Websites change their structure occasionally. If you notice issues, please open an issue on the actor's page. We actively maintain this scraper and fix issues promptly.

# Actor input Schema

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

Search term to find products on wells.pt (Portuguese keywords work best)

## `maxResults` (type: `integer`):

Maximum number of products to scrape

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

Apify proxy configuration

## Actor input object example

```json
{
  "searchQuery": "vitamina",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchQuery": "vitamina",
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/wells-pt-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 = {
    "searchQuery": "vitamina",
    "maxResults": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/wells-pt-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchQuery": "vitamina",
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/wells-pt-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/wells-pt-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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