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
| Setting | Description | Common Use Case |
|---|---|---|
| Super Mode | Uses additional resources to improve extraction success and accuracy on complex websites. | Websites with anti-bot protection or dynamic content. |
| Geo Targeting | Loads the page from a specific country or region to access location-based content. | Region-specific pricing, products, or search results. |
| JavaScript Rendering | Executes the page's JavaScript before extraction so dynamically loaded content can be captured. | React, Vue, Angular, and other modern web applications. |
| Resource Blocking | Blocks non-essential resources such as images and fonts to improve scraping speed. | Large pages where only text or structured data is needed. |
| Wait for Selector | Waits for a specific page element to appear before starting the extraction process. | Content that loads after the initial page load. |
| Custom Proxy | Routes requests through your own proxy server instead of MrScraper's default infrastructure. | Using dedicated or third-party proxy providers. |
| Return Cookies | Includes cookies generated during the request in the API response. | Session management and debugging workflows. |
Raw HTML
Note
These settings only available for Raw HTML.
| Setting | Description | Common Use Case |
|---|---|---|
| Pagination | Automatically follows pagination links or buttons to scrape data across multiple pages. | Scraping product listings, search results, or article archives. |
| Get Cookies | Returns cookies generated during the browsing session in the API response. | Capturing session data for debugging or follow-up requests. |
| Set Cookies | Sends custom cookies with the request to maintain sessions or access personalized content. | Accessing logged-in areas or preserving user preferences. |
| Custom Headers | Adds custom HTTP headers to requests, such as authentication tokens or custom user agents. | Calling protected endpoints or mimicking browser requests. |
| Interaction Steps | Simulates 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. |