# ASDA Products Scraper (`powerai/asda-products-scraper`) Actor

Scrape product listings from ASDA.com by providing a search URL, with automatic pagination and comprehensive product information extraction.

- **URL**: https://apify.com/powerai/asda-products-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** E-commerce, Integrations, Other
- **Stats:** 7 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## 🛍️ ASDA Products Scraper

This actor allows you to scrape product listings from ASDA.com by providing a search URL. It automatically handles pagination and extracts comprehensive product information including prices, ratings, images, and product details.

### Features

- **URL-based Scraping:** Extract products by providing a complete ASDA search URL
- **Automatic Pagination:** Automatically navigates through pages until reaching the end or max items limit
- **Comprehensive Product Data:** Extract detailed information about each product including:
  - Product title and ID
  - Product URL and images
  - Current price and unit price
  - Product weight and size
  - Customer ratings and review counts
  - Product badges and promotional offers
- **Rich Media:** Includes product images
- **Customer Reviews:** Track product ratings and review counts

### Input Parameters

| Field      | Type    | Required | Description                                    |
|------------|---------|----------|------------------------------------------------|
| `searchUrl`| string  | Yes      | Complete ASDA search URL to scrape             |
| `maxItems` | integer | No       | Maximum number of products to fetch            |

### Output

The output is a main list of product objects, each containing:

- `searchUrl`: The original search URL used
- `id`: Product ID
- `title`: Product title
- `url`: Full URL to the product page
- `image`: Product image URL
- `price`: Product price
- `unitPrice`: Price per unit of measurement
- `weight`: Product weight or size
- `rating`: Average customer rating
- `reviewsCount`: Number of customer reviews
- `badges`: Array of product badges and promotional offers
- `scrapedAt`: Timestamp of when the product was scraped

Example output:

```json
[
  {
    "searchUrl": "https://www.asda.com/groceries/search/milk",
    "id": "165468",
    "title": "ASDA British Milk Semi Skimmed 4 Pints/2272ml",
    "url": "https://www.asda.com/groceries/product/semi-skimmed-milk/asda-british-milk-semi-skimmed-4-pints-2272ml/165468",
    "image": "https://asdagroceries.scene7.com/is/image/asdagroceries/20337087?$ProdList$",
    "price": "1.65",
    "unitPrice": "(72.6p/lt)",
    "weight": "4 pint",
    "rating": 4.2,
    "reviewsCount": 2034,
    "badges": [
      "Informational roundel",
      "Informational roundel"
    ],
    "scrapedAt": "2025-11-29T11:44:52.852Z"
  },
  ...
]
```

### Use Cases

- Price comparison and monitoring
- Market research and product analysis
- Inventory tracking
- Competitive analysis
- Product catalog building

### Notes

- Results are automatically paginated until reaching the end or max items limit
- All product information is extracted from the search results page
- Ratings and reviews are updated in real-time
- The actor handles product deduplication automatically

# Actor input Schema

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

The complete ASDA search URL to scrape

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

Maximum number of products to fetch

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

Proxy settings for the actor

## Actor input object example

```json
{
  "searchUrl": "https://www.asda.com/groceries/search/milk",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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("powerai/asda-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("powerai/asda-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 '{}' |
apify call powerai/asda-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powerai/asda-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/2wVWgOA3nwPgT7OIO/builds/ununzOTAGEipGLZMY/openapi.json
