# Avril Products Scraper — Quebec Health Grocery Catalog (`ocrad/avril-products-scraper`) Actor

Scrape Avril Supermarché Santé (avril.ca, Quebec health grocery) products from any category or search URL: name, brand, price, sale price, format, category, ingredients, features, description and store availability. Export JSON/CSV/Excel.

- **URL**: https://apify.com/ocrad/avril-products-scraper.md
- **Developed by:** [Ocrad](https://apify.com/ocrad) (community)
- **Categories:** E-commerce, Automation, Agents
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 records

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Avril Products Scraper

***

Quebec Health Grocery Catalog. Provide any Avril Supermarché Santé (avril.ca) category or search URL and get the product catalog as structured data: name, brand, price and sale price, format, category and image — plus description, ingredients, features (organic, gluten-free, vegan…), online availability and per-store stock when detail pages are enabled.

***

#### **📋 Example Output**

```json
{
  "id": "204415",
  "sku": "55642-1",
  "productNumber": "55642",
  "url": "https://avril.ca/fr/reglisse-tendre-saveur-originale-55642-1.html",
  "title": "Barre de réglisse végétalienne Originale",
  "brand": "Panda",
  "price": 0.99,
  "currency": "CAD",
  "regularPrice": 1.59,
  "isOnSale": true,
  "unit": "32 g",
  "category": "Épicerie > Garde-manger",
  "label": null,
  "availability": null,
  "imageUrl": "https://avril.ca/media/catalog/product/cache/67ee89799642c567a71fc92f3699d937/5/5/55642_barre_de_reglisse_noire_32gr_web.jpg",
  "description": null,
  "ingredients": null,
  "features": null,
  "storeAvailability": null,
  "language": "fr",
  "scrapedAt": "2026-10-29T16:43:42.208Z"
}
```

#### ⚙️ **Configuration**

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `url` | String | *(required)* | avril.ca category or search URL, e.g. `https://avril.ca/fr/epicerie/garde-manger.html` or `https://avril.ca/fr/catalogsearch/result/?q=lait`. |
| `maxItems` | Integer | `100` | Maximum number of products to return (0 = whole category/search; the site serves 24 products per page). |
| `detailedInfo` | Boolean | `false` | Also visit each product page for the SKU, description, ingredients, features, online availability and per-store stock. One extra request per product. |
| `proxyConfiguration` | Object | Apify Proxy (auto) | Proxy settings; switch to RESIDENTIAL only if results are empty. |

##### Example Input

```json
{
  "url": "https://avril.ca/fr/epicerie/garde-manger.html",
  "maxItems": 200,
  "detailedInfo": true
}
```

##### Getting your category or search URL

1. Open avril.ca (French or English) and browse to a category (Épicerie, Garde-manger, Produits biologiques…) or type a search keyword
2. Copy the full URL from your browser address bar (e.g. `https://avril.ca/fr/epicerie/garde-manger.html`)
3. Paste it as the `url` input — sorting and filters in the URL are kept, pagination is handled by the Actor

`id` is Avril's internal product id (always present). The `sku` (e.g. `30168-1`) is read from the product URL when it contains it and from the product page with `detailedInfo`. `category` is the breadcrumb of the category page you started from (null for search pages; the product's own category with `detailedInfo`).

***

#### 💬 **Support and Feedback**

Reach out via Apify support channels or leave feedback on the Actor's page.

#### **Is it legal to scrape avril.ca data?**

It is legal to scrape publicly available data such as product names, prices and ingredients. The results do not contain personal data. Respect Avril's terms of use and your local regulations — consult your legal advisor if unsure.

# Actor input Schema

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

An avril.ca category or search URL (French /fr/ or English /en/), e.g. https://avril.ca/fr/epicerie/garde-manger.html or https://avril.ca/fr/catalogsearch/result/?q=lait.

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

Maximum number of products to return (0 = the whole category/search; the site serves 24 products per page).

## `detailedInfo` (type: `boolean`):

Also visit each product page for the description, ingredients, features (organic, gluten-free…), product number and per-store availability. Slower, one extra request per product.

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

Proxy settings. Defaults to Apify Proxy (auto). Switch to RESIDENTIAL only if results are empty.

## Actor input object example

```json
{
  "url": "https://avril.ca/fr/epicerie/garde-manger.html",
  "maxItems": 40,
  "detailedInfo": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Avril (Magento) product id, unique per product

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

Product SKU, e.g. 30168-1 (from the URL slug or the product page)

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

Avril product number (SKU without the variant suffix)

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

Product page URL

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

Product name

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

Brand name

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

Current price (number, CAD)

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

Currency (CAD)

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

Regular price before discount (number, CAD)

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

true when the current price is below the regular price

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

Format / weight / volume, e.g. 100 g, 1,75 L

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

Category path, e.g. Épicerie > Garde-manger > Croustilles et craquelins

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

Promotional label shown on the tile, e.g. Nouveauté

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

Online availability: In stock / Out of stock (detail page)

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

Main product image URL

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

Product description (detail page)

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

Ingredients list (detail page)

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

Features and badges, e.g. Biologique, Sans gluten, Végétalien (detail page)

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

Number of stores with the product in stock, e.g. 12/14 stores (detail page)

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

Language of the labels: fr or en

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

ISO 8601 timestamp when the record was scraped

# 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 = {
    "url": "https://avril.ca/fr/epicerie/garde-manger.html",
    "maxItems": 40,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ocrad/avril-products-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 = {
    "url": "https://avril.ca/fr/epicerie/garde-manger.html",
    "maxItems": 40,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("ocrad/avril-products-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 '{
  "url": "https://avril.ca/fr/epicerie/garde-manger.html",
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call ocrad/avril-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ocrad/avril-products-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/ZjgdbmteW12SiH2Ix/builds/9sgKoUKLn9iDKRdON/openapi.json
