Playground

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

The API Playground is an interactive environment for testing MrScraper APIs directly from your browser.

You can build requests, experiment with settings, preview responses, and generate code snippets without writing any code. It is the fastest way to learn how the API works before integrating it into your application.

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 is divided into four main sections:

1. Request Builder

The Request Builder is where you configure the page you want to scrape.

Here you can:

  • Enter a target URL
  • Choose the extraction mode
  • Select the data type
  • Provide extraction instructions
  • Enable AI-powered extraction
  • Run or save requests

This section controls what data MrScraper extracts from the page.

2. Response Viewer

The Response Viewer displays the extracted data returned by the API.

You can switch between multiple formats:

  • JSON
  • HTML
  • Table View

This helps you inspect the output and verify that the extracted data matches your requirements.

3. Code Generator

The Code Generator automatically creates API requests based on your current configuration.

Supported languages include:

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

Copy the generated code and use it directly in your application.

4. Settings Panel

The Settings Panel gives you more control over how MrScraper loads and processes a website.

These settings are useful when a website is slow to load, uses JavaScript heavily, or has location-based content.

Note

These settings are optional. Most websites can be scraped using the default configuration. Enable them only when a specific website requires additional handling.

AI Parser

SettingDescriptionCommon Use Case
Super ModeUses additional resources to improve extraction success and accuracy on complex websites.Websites with anti-bot protection or dynamic content.
Geo TargetingLoads the page from a specific country or region to access location-based content.Region-specific pricing, products, or search results.
JavaScript RenderingExecutes the page's JavaScript before extraction so dynamically loaded content can be captured.React, Vue, Angular, and other modern web applications.
Resource BlockingBlocks non-essential resources such as images and fonts to improve scraping speed.Large pages where only text or structured data is needed.
Wait for SelectorWaits for a specific page element to appear before starting the extraction process.Content that loads after the initial page load.
Custom ProxyRoutes requests through your own proxy server instead of MrScraper's default infrastructure.Using dedicated or third-party proxy providers.
Return CookiesIncludes cookies generated during the request in the API response.Session management and debugging workflows.

Raw HTML

Note

These settings only available for Raw HTML.

SettingDescriptionCommon Use Case
PaginationAutomatically follows pagination links or buttons to scrape data across multiple pages.Scraping product listings, search results, or article archives.
Get CookiesReturns cookies generated during the browsing session in the API response.Capturing session data for debugging or follow-up requests.
Set CookiesSends custom cookies with the request to maintain sessions or access personalized content.Accessing logged-in areas or preserving user preferences.
Custom HeadersAdds custom HTTP headers to requests, such as authentication tokens or custom user agents.Calling protected endpoints or mimicking browser requests.
Interaction StepsSimulates user actions before extraction, including clicking elements, entering text, scrolling, waiting, and running custom JavaScript.Revealing hidden content, handling infinite scroll, submitting forms, or interacting with dynamic websites.

On this page