Playground

Test API requests, explore features, and generate code without writing code.

The Playground lets you build, test, and validate scraping requests without writing any code. It provides an interactive interface for configuring requests, previewing results, and generating production-ready API code.

Scraper Types

The Playground runs one of three scraper types. MrScraper selects the type automatically based on your extraction mode and the options you enable:

  • Unblocker: Raw HTML mode with no Screenshot, Markdown, or automation. Returns the page's raw HTML.
  • Manual Scraper: Raw HTML mode with Screenshot, Markdown, or automation (interaction steps) enabled.
  • AI Scraper: AI Parser mode. Uses AI to return structured data and supports all available settings.

Each type consumes tokens differently. See Token Plan to learn how token usage is calculated for each one.

What You Can Do

Test Requests

Send API requests and view results instantly.

Adjust Parameters

Experiment with extraction settings and options.

Generate Code

Generate ready-to-use code snippets in multiple languages.

Preview Responses

Inspect the returned data before building your integration.

Playground Overview

The Playground has these main panels:

  • Target URL: Configure and run the request.
  • Data Extraction: Choose how MrScraper returns the content.
  • Extracted Data: View the response.
  • API Token: See the token used to authenticate requests.
  • Example Code: Copy generated request code.
  • Settings: Adjust optional loading, rendering, and extraction options (Basic Settings, Advanced Settings, and Automation).
  • Alert Settings: Get notified when a scrape returns errors or incomplete data.

Target URL

In the Target URL panel, you configure and run the request:

  • Enter the target URL.
  • Select the HTTP method.
  • Enable Screenshot or Markdown output.
  • Select Run to send the request, or Reset to clear the current configuration.

Data Extraction

The Data Extraction panel controls how MrScraper returns the page content. Choose one of two modes:

  • Raw HTML: Returns the page's HTML.
  • AI Parser: Uses AI to return structured data instead of raw HTML.

Your choice here, along with the options you enable, determines the scraper type and how tokens are counted.

Extracted Data

The Extracted Data panel displays the response MrScraper returns after a request completes. Depending on the extraction mode, the response may include:

  • Raw HTML
  • Markdown
  • AI-generated structured data (JSON)

Use this panel to confirm the extracted content matches your requirements before you integrate the request into your application.

API Token

MrScraper creates an API token when you sign up. The API Token panel displays the token used to authenticate your requests.

If you create additional tokens, the Playground shows your most recently created token. All generated code and requests use the displayed token for authentication.

Tip

Use the copy button to quickly copy the API token for use in your applications or API requests.

Example Code

The Example Code panel builds an API request from your current configuration and updates it automatically as you make changes. Copy the code and use it directly in your application.

Supported languages:

  • cURL
  • Python
  • JavaScript
  • PHP
  • Go
  • Java
  • Ruby
  • C#

Settings

The settings panels contain optional features that control how MrScraper loads, renders, and extracts content. Most websites work with the default settings. Enable these options only when a website needs extra handling, such as JavaScript rendering, geographic targeting, or user interactions.

Note

These settings are optional. In most cases, the default configuration is enough. The available settings may vary depending on the selected extraction mode.

Basic Settings

SettingDescriptionCommon Use Case
SuperUses additional resources to improve extraction accuracy on complex websites.Websites protected by anti-bot systems or containing heavily dynamic content.
Geo targetingLoads the page from a specific country or region.Accessing region-specific products, pricing, or search results.
RetryAutomatically retries a failed scrape.Unreliable pages or requests that fail intermittently.
Max retriesMaximum number of retry attempts. Available when Retry is enabled.Limiting how many times a scrape retries.
Token capMaximum total tokens the scrape and its retries can use. Available when Retry is enabled.Controlling token usage during testing. See Token Cap.

Token Cap

The Token Cap limits how many tokens a single scrape and its retries can use in the Playground. It applies to Unblocker and Manual Scraper only.

Use the token cap to keep your costs predictable. Automatic retries are bounded by the cap, so the total tokens for a single run stay at or below the value you set. This makes it easier to estimate and budget token usage while testing.

For how the cap works with retries and how tokens are counted, see Playground Token Cap in Token Plan.

Advanced Settings

SettingDescriptionCommon Use Case
Render JavaScriptRuns JavaScript before extracting content. When enabled, you can also set Wait Until (which page load event to wait for, such as DOM Content Loaded) and Timeout (maximum seconds to wait for the page to load).React, Vue, Angular, or other single-page applications.
Block resourcesSkips non-essential assets such as images and fonts to improve performance.Text-only or structured data extraction.
Wait for selectorWaits until a specific element appears before starting extraction.Content that loads asynchronously after the initial page load.
Custom ProxySends requests through your own proxy server.Using dedicated or third-party proxy infrastructure.
Return cookiesReturns cookies generated during the request.Debugging sessions or reusing authenticated requests.

Automation

Select Add interaction steps to simulate browser actions such as clicking, typing, scrolling, waiting, or running JavaScript before extraction. Use automation for infinite scrolling, form submissions, expanding hidden content, or interacting with dynamic websites.

Note

Automation is available in Raw HTML mode only (Unblocker and Manual Scraper). It doesn't apply to AI Scraper.

Alert Settings

The Alert Settings panel notifies you when a scrape returns errors or incomplete data. Configure where alerts go, what triggers them, and how often they're sent.

Channel

Choose where MrScraper sends alerts. Set one or both.

FieldDescription
EmailSends alerts to this email address.
Slack Webhook URLSends alerts to a Slack channel using an incoming webhook URL.

Flag

Set the conditions that trigger an alert. Type a value and press Enter to add it.

FieldDescriptionExamples
Error FlagsTriggers an alert when the response contains one of these errors.captcha, security, 404, 500
Data Incomplete FlagsTriggers an alert when the extracted data is missing one of these fields.title, price, url

Notification Rate

The Identifier sets the key MrScraper uses to group alerts, so the same alert isn't sent repeatedly. Rate Limit and TTL apply separately to each group.

FieldDescription
IdentifierThe key used to group alerts: Domain or URL. Each group is rate-limited on its own.
Rate LimitMaximum number of alerts sent per group within the TTL period.
TTL (seconds)Time to Live — the length of the rate-limit period, in seconds (for example, 3600 = 1 hour).

Example

With a rate limit of 3 and errors on example.com and shopee.com:

  • Domain: Grouped by domain. Once example.com hits the limit, its alerts pause for the TTL period, while shopee.com keeps its own separate count.
  • URL: Grouped by full URL. example.com/path1 and example.com/path2 are tracked separately, so each can send its own alert.

On this page