# Universal E-commerce Scraper (`lofomachines/universal-ecommerce-scraper`) Actor

Turn any e-commerce category or product page into clean, structured data. Paste a category page or product URL.Some sites may block bots, but if reachable, the process is fully automated.

- **URL**: https://apify.com/lofomachines/universal-ecommerce-scraper.md
- **Developed by:** [Lofomachines](https://apify.com/lofomachines) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 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.
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 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

## Universal E-commerce Scraper — Extract Products, Prices & Images From Any Online Store

**Turn any e-commerce category or product page into clean, structured data.** Paste a URL, press start, and get every product with its title, price, discount, images, brand, and more — ready to download as JSON, CSV, or Excel. No code, no setup, no per-site configuration.

Works on virtually any shop: fashion, electronics, beauty, home, food, marketplaces, niche stores — and the big names too.

---

### 💡 Why people use it

- **📊 Price monitoring** — track competitor prices and discounts on a schedule and never miss a price drop.
- **🛍️ Catalog building** — import thousands of products into your own store, feed, or spreadsheet in minutes.
- **🔎 Competitor & market research** — see what's selling, at what price, and how deep the discounts go.
- **📦 Dropshipping & reselling** — pull product titles, images, and prices straight from supplier listings.
- **🤖 Feeding dashboards & AI tools** — get a clean data stream for analytics, Google Sheets, or your own apps.

---

### ✨ What makes it different

- **Native support for Shopify & WooCommerce.** On these platforms it reads the catalogue straight from the store's own data feed — the fastest, most reliable, full-catalogue path, with no page rendering needed.
- **Works on any store, zero configuration.** It automatically understands the page — whether it's a single product or a full category — and pulls the right fields without you mapping anything.
- **Handles modern, protected sites.** Built-in stealth browsing and residential-proxy support let it read stores that block ordinary scrapers, including infinite-scroll and lazy-loading grids.
- **Follows pagination automatically.** Multi-page categories, "load more" buttons, infinite scroll — it keeps going until it has everything.
- **Clean, normalized output.** Prices parsed into real numbers, currencies detected, discounts calculated, images resolved to full URLs — consistent across every site.
- **Fast and affordable.** A typical category of 50 products finishes in well under two minutes.

---

### 🚀 How to use it (3 steps)

1. **Paste one or more URLs** — a category/listing page *or* a single product page. Mix and match as many as you like.
2. **(Optional) Set a limit** — cap the number of products, or leave it at `0` to grab the whole catalog.
3. **Run it** — watch the products roll in, then download your data.

That's the entire workflow.

---

### 📥 Input

```json
{
  "startUrls": [
    { "url": "https://example-shop.com/category/sneakers" }
  ],
  "maxItems": 100,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
````

| Field | What it does |
|---|---|
| **Start URLs** | One or more URLs. Each can be a **category/listing** page or a **single product** page — it's detected automatically. |
| **Max items** | Stop after N products. Leave `0` to extract the entire catalog. |
| **Proxy configuration** | Recommended to keep on **Residential** for the best success rate on protected stores. |

***

### 📤 Output

Every product is a clean, structured record:

```json
{
  "url": "https://example-shop.com/products/blue-sneakers",
  "title": "Premium Blue Sneakers",
  "brand": "Acme Sport",
  "description": "Lightweight running shoes with breathable mesh.",
  "image": "https://cdn.example-shop.com/blue-sneakers/main.jpg",
  "images": [
    "https://cdn.example-shop.com/blue-sneakers/main.jpg",
    "https://cdn.example-shop.com/blue-sneakers/side.jpg"
  ],
  "price": 79.90,
  "originalPrice": 119.90,
  "discountPercent": 33.36,
  "currency": "EUR",
  "availability": "InStock",
  "sku": "AS-SNK-BLU-42",
  "category": "Footwear / Sneakers",
  "rating": 4.7,
  "reviewCount": 312,
  "scrapedAt": "2026-05-28T09:00:00Z"
}
```

Fields are filled whenever the page exposes them. Open the **Overview** tab to browse results visually — thumbnails, prices, and discounts in one table — then export to **JSON, CSV, Excel, XML, or HTML** with a single click, or pull them via API.

***

### 🛍️ Great for stores built on

Shopify · WooCommerce · Magento · PrestaShop · BigCommerce · Salesforce Commerce · custom storefronts · and large branded retailers. If it sells products on the web, this scraper can read it.

***

### 🚀 Examples

**Scrape an entire category**

```json
{ "startUrls": [{ "url": "https://example-shop.com/c/dresses" }], "maxItems": 0 }
```

**Scrape one product**

```json
{ "startUrls": [{ "url": "https://example-shop.com/p/leather-bag" }], "maxItems": 0 }
```

**Scrape several stores in one run**

```json
{
  "startUrls": [
    { "url": "https://shop-a.com/category/shoes" },
    { "url": "https://shop-b.com/collections/all" },
    { "url": "https://shop-c.com/p/headphones" }
  ],
  "maxItems": 500
}
```

***

### 💡 Tips for best results

- **Keep Residential proxy on** for the highest success rate on large or protected stores.
- **Set `maxItems`** on big catalogs to control runtime and cost.
- **Point it at the most specific category** you need — narrower pages run faster and stay on-topic.
- **Schedule it** to monitor prices daily or weekly and build a price-history dataset.

***

### ❓ FAQ

**Which websites does it support?**
Practically any online store. It adapts to each site automatically, so there's no list of "supported" shops to check — just paste a URL and run. **Shopify** and **WooCommerce** stores get an extra-reliable, full-catalogue fast path.

**Do I need to write code or CSS selectors?**
No. There's nothing to configure per site. Paste a URL and you get structured data back.

**Can it scrape a single product page?**
Yes. Submit a product URL directly and you'll get that product's full record. Submit a category URL and you'll get every product on it.

**Does it handle infinite scroll and "load more"?**
Yes — it keeps loading and paginating until the whole catalog is captured.

**Can it get past sites that block scrapers?**
It includes stealth browsing and supports residential proxies, which dramatically improves success on protected stores.

**What can I export?**
JSON, CSV, Excel, XML, and HTML — or fetch results through the API to feed your own apps and dashboards.

**Is the data clean?**
Yes. Prices are normalized to numbers, currencies are detected, discounts are computed, and image links are resolved to full URLs — consistently across every store.

***

#### Built for marketers, analysts, store owners, and developers who need reliable product data from anywhere on the web — without the headache.

# Actor input Schema

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

One or more URLs to scrape. Each can be a product page or a category/listing page — the scraper auto-detects the type.

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

Maximum number of products to extract. Leave 0 to scrape everything.

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

Keep Residential proxy enabled for the best success rate — large and protected stores deliver more complete results this way.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.tuttocialde.it/offerta-macchina-agostani-small-cup-bianca-200-capsule-caffe-agostani-linea-small"
    }
  ],
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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.tuttocialde.it/offerta-macchina-agostani-small-cup-bianca-200-capsule-caffe-agostani-linea-small"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lofomachines/universal-ecommerce-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.tuttocialde.it/offerta-macchina-agostani-small-cup-bianca-200-capsule-caffe-agostani-linea-small" }],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("lofomachines/universal-ecommerce-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.tuttocialde.it/offerta-macchina-agostani-small-cup-bianca-200-capsule-caffe-agostani-linea-small"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call lofomachines/universal-ecommerce-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Universal E-commerce Scraper",
        "description": "Turn any e-commerce category or product page into clean, structured data. Paste a category page or product URL.Some sites may block bots, but if reachable, the process is fully automated.",
        "version": "0.1",
        "x-build-id": "llIUu1s19IvcCvsP1"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lofomachines~universal-ecommerce-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lofomachines-universal-ecommerce-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/lofomachines~universal-ecommerce-scraper/runs": {
            "post": {
                "operationId": "runs-sync-lofomachines-universal-ecommerce-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/lofomachines~universal-ecommerce-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-lofomachines-universal-ecommerce-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": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "One or more URLs to scrape. Each can be a product page or a category/listing page — the scraper auto-detects the type.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of products to extract. Leave 0 to scrape everything.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Keep Residential proxy enabled for the best success rate — large and protected stores deliver more complete results this way."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
