# Any Website Unblocker (`mrscrapercom/mrscraper-unblocker`) Actor

Unblock websites and retrieve HTML content from any page. It is stealth, reliable, and scalable. Powered by the MrScraperengine to bypass anti-bot protection and access geo-restricted content.

- **URL**: https://apify.com/mrscrapercom/mrscraper-unblocker.md
- **Developed by:** [MrScraper](https://apify.com/mrscrapercom) (community)
- **Categories:** Automation, Integrations, Developer tools
- **Stats:** 210 total users, 1 monthly users, 22.6% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 standard requests

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/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 Website Unblocker - Access Any Page!

Unblock websites and retrieve HTML content from any page. It is stealth, reliable, and scalable. Powered by the [MrScraper](https://mrscraper.com) engine to bypass anti-bot protection and access geo-restricted content.

### Features

- **Universal Website Unblocking** - Access and retrieve HTML from any website, even those with anti-bot protection
- **Pay-per-event Pricing** - Only pay for what you use with transparent event-based pricing
- **Flexible Rendering** - Choose between fast HTTP requests or full browser rendering for JavaScript-heavy pages
- **Proxy Support** - Residential & mobile proxy support with geo-targeting for accessing geo-restricted content
- **Resource Optimization** - Option to block images, fonts, and stylesheets for faster scraping and reduced bandwidth

### How It Works

1. The Actor receives input with URLs to unblock and configuration preferences
2. It validates the input and charges based on selected options (pay-per-event model)
3. MrScraper engine fetches the pages using your configuration (proxy, browser rendering, etc.)
4. Returns the unblocked HTML content for each URL

### Input Parameters

#### Required Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | List of URLs to unblock and retrieve HTML from |

#### Browser Rendering

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `browser_rendering_enabled` | boolean | `false` | Enable browser rendering for JavaScript-heavy pages (adds costs) |
| `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

The Actor stores the unblocked HTML content in the dataset. The output structure includes:

```json
{
  "html": "<!-- Raw HTML content from the unblocked page -->"
}
```

### 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 |
| `time-based-cost` | Charged based on time taken to unblock (per 30-second interval) |
| `bandwidth-cost` | Charged based on bandwidth used (per MB) |

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

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

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

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

## Actor input object example

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

# 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-unblocker").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-unblocker").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-unblocker --silent --output-dataset

```

## MCP server setup

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

```

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/xKn7RumIGRSzwIch8/builds/cgAGdMPUnTN7buBkX/openapi.json
