# Product Price & Catalog Scraper (`popular_denim/product-price-catalog-scraper`) Actor

Extract product pricing and catalog data (title, price, currency, availability, rating, product URL, image) from ecommerce catalog pages. Ideal for competitive pricing research — figuring out how much to price a product by comparing real listings.

- **URL**: https://apify.com/popular\_denim/product-price-catalog-scraper.md
- **Developed by:** [Steve Flores](https://apify.com/popular_denim) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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/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

## Book Price Scraper for Pricing Intelligence

Extract real-time book prices, availability, and ratings from online retailers to benchmark your pricing strategy. Get structured data including currency, stock status, and product URLs to monitor competitor pricing and optimize your product positioning.

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | URLs to start crawling from |
| `maxResults` | integer | Maximum number of result items returned (and charged for) |
| `proxyConfiguration` | object | Apify Proxy settings |

| Parameter | Example | Notes |
|-----------|---------|-------|
| Target URLs | books.toscrape.com | Single domain or list of retailer URLs |
| Fields | price, availability, rating | Customize which data points to extract |
| Pagination | Yes | Automatically handles multiple pages |

### Output example

```json
{
  "title": "A Light in the Attic",
  "price": 51.77,
  "priceText": "£51.77",
  "currency": "GBP",
  "availability": "In stock",
  "inStock": true,
  "rating": 3,
  "productUrl": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
  "imageUrl": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg",
  "sourceUrl": "https://books.toscrape.com/catalogue/page-1.html"
}
```

### Pricing

Pay-per-event: **$0.50 per 1,000 result items**. Costs depend on the number of product pages crawled; expect $0.50–$5 per 1,000 items depending on site complexity.

A typical run of N results costs approximately N × $0.0005.

### FAQ

**Q: Can I scrape multiple book retailers at once?**
A: Yes, provide multiple URLs and the actor will extract consistent price data across sources.

**Q: Does this include historical price tracking?**
A: This actor captures current snapshots; run it periodically and store results to build price history over time.

**Q: Will I get stock status and ratings too?**
A: Yes—availability, stock flags, customer ratings, and product URLs are included in every output.

# Actor input Schema

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

URLs to start crawling from

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

Maximum number of result items to return. The run stops once this many result-item charges have been made.

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

Proxy settings for the crawler

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/catalogue/page-1.html"
    }
  ],
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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://books.toscrape.com/catalogue/page-1.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("popular_denim/product-price-catalog-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://books.toscrape.com/catalogue/page-1.html" }] }

# Run the Actor and wait for it to finish
run = client.actor("popular_denim/product-price-catalog-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://books.toscrape.com/catalogue/page-1.html"
    }
  ]
}' |
apify call popular_denim/product-price-catalog-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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