# Any Website Detail Page Scraper (`mrscrapercom/mrscraper-pdp`) Actor

Unblock pages and scrape detail page from any websites. It is stealth, reliable, and scalable. Every action uses the mrscraper.com engine to extract structured product data.

- **URL**: https://apify.com/mrscrapercom/mrscraper-pdp.md
- **Developed by:** [MrScraper](https://apify.com/mrscrapercom) (community)
- **Categories:** AI, E-commerce, Real estate
- **Stats:** 15 total users, 0 monthly users, 78.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 standard requests

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

## MrScraper PDP - Scrape Any Detail Page!

Unblock pages and scrape detail pages from any websites. It is stealth, reliable, and scalable. Every action uses the [MrScraper](https://mrscraper.com) engine to extract structured data from various types of content.

### Features

- **Universal Detail Page Scraping** - Extract structured data from articles, products, hotels, jobs, properties, restaurants, social media profiles, tours/attractions, and more
- **Pay-per-event Pricing** - Only pay for what you use with transparent event-based pricing
- **Flexible Data Fetching** - Choose between HTTP requests or browser rendering
- **Proxy Support** - Residential & mobile proxy support with geo-targeting for accessing geo-restricted content
- **Network Traffic Capture** - Option to listen to network requests during browser rendering
- **Multiple Output Formats** - Get data as JSON, plus optional HTML and Markdown output

### How It Works

1. The Actor receives input with URLs to scrape, content category, and data fetching preferences
2. It validates the input and charges based on selected options (pay-per-event model)
3. MrScraper engine scrapes the provided URLs based on your configuration
4. Returns structured data in JSON format (with optional HTML and Markdown)

### Input Parameters

#### Required Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | List of URLs to scrape (product pages, hotel listings, restaurant pages, etc.) |
| `category` | string | Yes | Select the type of content being scraped (see Available Categories below) |

#### Data Fetching Method

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `browser_rendering_enabled` | boolean | `false` | Enable browser rendering for JavaScript-heavy pages (adds costs) |
| `browser_rendering_listen_network` | boolean | `false` | Capture network requests/responses during page loading - adds costs, but results may be more accurate. Only applicable if browser rendering is enabled |
| `browser_rendering_wait_for_selector` | string | `""` | CSS selector to wait for before extracting data (e.g., `#some_container`, `.container`). Only applicable if browser rendering is enabled |

#### Proxy Configuration

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `proxy_use_proxy` | boolean | `true` | Routes requests through residential & mobile IPs to bypass anti-bot protection. Recommended for heavily protected sites |
| `proxy_proxy_country` | string | `""` | Route the request through a proxy in a specific country to access geo-restricted content. If not set, the request will be routed through a random country. Only applicable if residential & mobile proxy is enabled |
| `proxy_bypass_proxy` | boolean | `true` | Block images, fonts, and stylesheets from loading. Speeds up scraping and reduces bandwidth usage. Only applicable if residential & mobile proxy is enabled |

#### Output Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `html` | boolean | `false` | Include raw HTML in the output |
| `markdown` | boolean | `false` | Include markdown version in the output |

#### Available Categories

- `article` - Article pages
- `post` - Social Media Post
- `hotel` - Hotel listings
- `job posting` - Job postings
- `product` - Product pages (default)
- `property` - Real estate/property listings
- `restaurant` - Restaurant pages
- `social media profile` - Social media profiles
- `tour/attraction` - Tours and attractions

### Output

The Actor stores extracted data in the dataset. The output structure depends on the category selected and typically includes:

```json
{
  "url": "https://example.com/product/123",
  "category": "product",
  "title": "Product Name",
  "description": "Product description...",
  "price": "$99.99",
  "images": ["https://example.com/image1.jpg"],
  "html": "<!-- raw HTML (if enabled) -->",
  "markdown": "<!-- markdown version (if enabled) -->"
}
```

### Pricing Events

This Actor uses pay-per-event pricing. Events are charged as follows:

| Event | Description |
|-------|-------------|
| `standard-request` | Charged per URL processed |
| `browser-rendering` | Charged per URL when browser rendering is enabled |
| `network-listening` | Charged per URL when network listening is enabled (requires browser) |
| `time-based-cost` | Charged based on time taken to scrape (per minute) |
| `bandwidth-cost` | Charged based on bandwidth used (per MB) |
| `ai-token-cost` | Charged based on AI token usage during extraction |

### Contact Us

For enterprise solutions, custom integrations, or high-volume scraping needs, please contact MrScraper directly at <https://www.mrscraper.com> or [book a call here](https://cal.com/cahyo-mrscraper/30min?user=cahyo-mrscraper). We offer tailored solutions to meet your specific business requirements.

# Actor input Schema

## `urls` (type: `array`):

List of URLs to scrape (product pages, hotel listings, restaurant pages, etc.)

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

Select the type of content being scraped

## `browser_rendering_enabled` (type: `boolean`):

Enable browser rendering for JavaScript-heavy pages (add costs)

## `browser_rendering_listen_network` (type: `boolean`):

Capture network requests/responses during page loading - add costs, but results may be more accurate. Only applicable if browser rendering is enabled.

## `browser_rendering_wait_for_selector` (type: `string`):

CSS selector to wait for before extracting data (e.g. #some\_container, .container). Only applicable if browser rendering is enabled.

## `proxy_use_proxy` (type: `boolean`):

Routes requests through residential & mobile IPs to bypass anti-bot protection. Recommended for heavily protected sites.

## `proxy_proxy_country` (type: `string`):

Route the request through a proxy in a specific country to access geo-restricted content. If not set, the request will be routed through a random country. Only applicable if residential & mobile proxy is enabled.

## `proxy_bypass_proxy` (type: `boolean`):

Block images, fonts, and stylesheets from loading. Speeds up scraping and reduces bandwidth usage. Only applicable if residential & mobile proxy is enabled.

## `output_html` (type: `boolean`):

Include raw HTML in the output

## `output_markdown` (type: `boolean`):

Include markdown version in the output

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.ebay.com/itm/236604718789"
    }
  ],
  "category": "product",
  "browser_rendering_enabled": false,
  "browser_rendering_listen_network": false,
  "browser_rendering_wait_for_selector": "",
  "proxy_use_proxy": true,
  "proxy_proxy_country": "",
  "proxy_bypass_proxy": true,
  "output_html": false,
  "output_markdown": false
}
```

# Actor output Schema

## `result` (type: `string`):

Response from MrScraper API

# 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 = {
    "urls": [
        {
            "url": "https://www.ebay.com/itm/236604718789"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrscrapercom/mrscraper-pdp").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 = { "urls": [{ "url": "https://www.ebay.com/itm/236604718789" }] }

# Run the Actor and wait for it to finish
run = client.actor("mrscrapercom/mrscraper-pdp").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 '{
  "urls": [
    {
      "url": "https://www.ebay.com/itm/236604718789"
    }
  ]
}' |
apify call mrscrapercom/mrscraper-pdp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrscrapercom/mrscraper-pdp"
        }
    }
}

```

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/eYJNT4SDeOOyCOgxi/builds/T2sS7QXVm0PAFo69C/openapi.json
