Scrapling DynamicFetcher 0.4

scraperouter/scrapling-dynamicfetcher:0.4

This scraper is based on an open-source project. We do not profit from it; you pay only for computation and proxy costs.

https://github.com/D4Vinci/Scrapling/releases/tag/v0.4

Request Cost*
$0.000100
$0.1000/1k
JS Rendering
Yes
Speed
Stealth

*Datacenter proxy transfer is included in the request cost. Additional transfer: Residential +$1.80/GB , Mobile +$4.00/GB

Request Options

Common Fields

Field Type Required Default Description
url string required - Target URL to scrape
scraper string required - Scraper identifier
method string optional GET HTTP method (GET or POST)
headers object optional - HTTP headers dict
cookies array[object] optional - List of cookie dicts
data any optional - Request body data for POST requests
proxy string | object optional datacenter Proxy type (datacenter/residential/mobile) or URL or config object
scraper_options object optional - Scraper-specific options (see below)

Scraper-Specific Options (passed via scraper_options)

Field Type Required Default Description
proxy string | object optional -
timeout integer | number optional -
network_idle boolean optional False
headless boolean optional True
cookies array[any] optional -
page_actions array[any] optional -
disable_resources boolean optional False
useragent string optional -
load_dom boolean optional True
wait integer | number optional 0
wait_selector string optional -
init_script string optional -
stealth boolean optional False
real_chrome boolean optional False
hide_canvas boolean optional False
disable_webgl boolean optional False
allow_webgl boolean optional True
cdp_url string optional -
google_search boolean optional True
extra_headers object optional -
screenshot boolean optional False
network_requests boolean optional False
retries integer optional -
retry_delay integer | number optional -
blocked_domains array[any] optional -
block_images boolean optional False
block_webrtc boolean optional False
mock_human boolean | number optional -
addons array[any] optional -

Response Schema

API Response

The API returns a unified response envelope. The content field contains the raw page HTML.

Field Type Description
id string (uuid) Unique request identifier
status_code integer HTTP status code
url string Final response URL
headers object Response HTTP headers
content string Page content (HTML)
scraper string Scraper identifier used

Universal Response (internal)

Internally, all scrapers normalize their output to a universal format before the API response is built.

Field Type
id string
status_code integer
final_url string
headers object
content string
cookies array | object
errors array[any]
screenshot_url string
scraper_data object
scraperouter ScrapeRouterResponseData

Scraper-Specific Response Fields

The native response from this scraper includes additional fields beyond the universal format.

Field Type Default
status integer -
reason string -
url string -
cookies array | object | object -
headers object -
request_headers object -
history array[string] -
body string -
encoding string -
har_path string -
screenshot_paths array[any] -
error string -

Examples

Simple Request (cURL)

curl -X POST https://www.scraperouter.com/api/v1/scrape/ \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "scraper": "scraperouter/scrapling-dynamicfetcher:0.4"}'

Simple Request (Python)

import requests

response = requests.post(
    "https://www.scraperouter.com/api/v1/scrape/",
    headers={"Authorization": "Api-Key YOUR_API_KEY"},
    json={
        "url": "https://example.com",
        "scraper": "scraperouter/scrapling-dynamicfetcher:0.4",
    },
)

data = response.json()
print(data["content"][:500])

Advanced Request (Python)

import requests

response = requests.post(
    "https://www.scraperouter.com/api/v1/scrape/",
    headers={"Authorization": "Api-Key YOUR_API_KEY"},
    json={
        "url": "https://example.com",
        "scraper": "scraperouter/scrapling-dynamicfetcher:0.4",
        "method": "GET",
        "proxy": "residential",
        "scraper_options": {
            "timeout": 30,
            "headless": true,
            "load_dom": true
    },
    },
)

data = response.json()
print(f"Status: {data['status_code']}")
print(f"URL: {data['url']}")
print(data["content"][:500])

Example Response

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status_code": 200,
  "url": "https://example.com",
  "headers": {
    "content-type": "text/html; charset=utf-8"
  },
  "content": "<!DOCTYPE html><html>...</html>",
  "scraper": "scraperouter/scrapling-dynamicfetcher:0.4"
}