API Reference & Drop-in SDKs

The Parse Everything API provides single and batch HTTP extraction endpoints designed to solve Cloudflare Turnstile, Akamai Bot Manager, and DataDome protections automatically.

Open Source SDKs, LangChain Loader & Examples: zenkdom/parse-everything-global →

Authentication

Pass your API Key in the HTTP Authorization header using the Bearer scheme:

Authorization: Bearer pe_live_YOUR_API_KEY_HERE

Single URL Extraction API (GET & POST /v1/extract)

Send any protected URL to extract its full HTML or structured elements. You can call the endpoint via GET (using simple query parameters like ScrapingBee) or via POST with a JSON payload. The engine automatically identifies and bypasses anti-bot protections (Cloudflare Turnstile, Cloudflare WAF, Akamai Bot Manager, DataDome, PerimeterX / HUMAN, Imperva, Kasada, AWS WAF, etc.).

🛡️ Zero-Risk Credit Policy: Failed, blocked, or unreachable requests cost 0 credits. You are only charged when extraction succeeds (HTTP 200–399).

Request Parameters

Parameter Type Default Description
target_url string (required) — Full HTTP/HTTPS URL of the target web page (alias: url).
method string "GET" HTTP method forwarded to the target website ("GET", "POST", "PUT", "DELETE").
body object | string null Request body/payload forwarded to target website for POST/PUT requests (alias: post_data).
auto_detect boolean true Autonomously detects anti-bot challenge type and routes through the optimal TLS JA3 / Stealth solver.
selectors array<string> | object {} CSS selectors to extract specific elements (e.g. {"title": "h1", "price": ".price"}).
clean_text boolean false Strips HTML tags, scripts, and styles, returning clean sanitized plain text (alias: extract_text).
render_js boolean false Forces headless browser execution for client-side JavaScript / Single Page Applications (SPA).
country_code string "us" Two-letter ISO country code for geo-targeted proxy routing (e.g. "us", "gb", "de").
wait_for integer 0 Wait time in milliseconds after page load before capturing DOM content.

Code Examples (SDK & Raw HTTP)

cURL Python (requests) Python SDK (pip) Node.js (fetch) Node.js SDK (npm) PHP (composer)
# 1. Quick GET Query-Param Style (ScrapingBee compatible):
curl "https://parse-everything.com/api/v1/extract?target_url=https://target-website.com&render_js=false" \
  -H "Authorization: Bearer pe_live_YOUR_API_KEY_HERE"

# 2. JSON Body POST (Extract Selectors):
curl -X POST https://parse-everything.com/api/v1/extract \
  -H "Authorization: Bearer pe_live_YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "target_url": "https://target-website.com/product",
    "country_code": "us",
    "selectors": {
      "title": "h1",
      "price": ".price"
    }
  }'

# 3. Target POST / Internal API Scraping:
curl -X POST https://parse-everything.com/api/v1/extract \
  -H "Authorization: Bearer pe_live_YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "target_url": "https://target-website.com/api/search",
    "method": "POST",
    "body": {"category": "laptops", "in_stock": true}
  }'

Example JSON Response

{
  "status": "success",
  "is_live": true,
  "http_status": 200,
  "target_url": "https://target-website.com/product",
  "engine_used": "curl_cffi_tls_chrome120",
  "data": {
    "http_status": 200,
    "page_title": "Example Product Page",
    "content_length": 48200,
    "execution_time_seconds": 0.42,
    "protection_bypassed": "Cloudflare Turnstile Managed Challenge",
    "metadata": {
      "title": "Example Product Page",
      "description": "High quality product description",
      "canonical": "https://target-website.com/product"
    },
    "selectors_data": [
      { "selector": "h1", "matches": ["Product Title"] },
      { "selector": ".price", "matches": ["$49.99"] }
    ],
    "html_sample": "<!DOCTYPE html><html>...</html>"
  }
}

Batch Extraction API (POST /v1/batch)

Extract up to 50 URLs in parallel in a single HTTP request payload or poll progress asynchronously.

cURL Python SDK (pip) Node.js SDK (npm) Python (requests)
curl -X POST https://parse-everything.com/api/v1/batch \
  -H "Authorization: Bearer pe_live_YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "target_urls": [
      "https://example.com/product/1",
      "https://example.com/product/2",
      "https://example.com/product/3"
    ]
  }'

Official Python SDK (pip install parse-everything)

Lightweight official Python client with zero heavy binary dependencies (uses standard library urllib). Provides automatic retries, error wrappers, and full batch polling support. View repository & tests on GitHub.

1. Installation

pip install parse-everything

2. Full Extraction & Selectors Example

scraper.py
from parse_everything import ParseEverything, ParseEverythingError

client = ParseEverything(api_key="pe_live_YOUR_API_KEY")

try:
    # 1. Scrape with automated Cloudflare/Akamai/DataDome bypass
    result = client.scrape(
        target_url="https://parse-everything.com/demo/cloudflare",
        auto_detect=True,
        country_code="US",
        render_js=False,  # Ultra-fast TLS impersonation in ~300ms
        selectors={
            "heading": "h1",
            "paragraphs": "p"
        }
    )

    print("HTTP Status:", result["data"]["http_status"])
    print("Protection Bypassed:", result["data"]["protection_bypassed"])
    print("Selectors Data:", result["data"]["selectors_data"])

    # 2. Asynchronous Batch Scraping (up to 100 URLs)
    batch = client.batch([
        "https://example.com/catalog/item1",
        "https://example.com/catalog/item2"
    ])
    print("Batch Job ID:", batch["batch_id"])

except ParseEverythingError as e:
    print(f"Extraction error ({e.status_code}): {e}")

Official Node.js & TypeScript SDK (npm i parse-everything)

Works natively in Node.js 18+ and TypeScript out of the box with zero external dependencies (powered by native fetch). Full TypeScript type definitions (index.d.ts) included. View package source on GitHub.

1. Installation

npm install parse-everything

2. Node.js & TypeScript Example

index.js
// ES Modules / TypeScript:
// import { ParseEverything } from 'parse-everything';

// CommonJS:
const { ParseEverything } = require('parse-everything');

const client = new ParseEverything('pe_live_YOUR_API_KEY');

async function scrapeProtectedSite() {
    try {
        const response = await client.scrape({
            target_url: 'https://parse-everything.com/demo/cloudflare',
            auto_detect: true,
            selectors: {
                title: 'h1',
                links: 'a'
            }
        });

        console.log('Page Title:', response.data.page_title);
        console.log('Engine Used:', response.engine_used);
        console.log('Extracted Data:', response.data.selectors_data);
    } catch (err) {
        console.error('Scraping error:', err.message);
    }
}

scrapeProtectedSite();

Official PHP Client (composer require parse-everything/client)

PSR-4 compliant PHP client library supporting PHP 7.4 through 8.3+.

1. Installation

composer require parse-everything/client

2. Usage Example

scraper.php
<?php
require_once 'vendor/autoload.php';

use ParseEverything\Client;

$client = new Client('pe_live_YOUR_API_KEY');

$result = $client->scrape([
    'target_url' => 'https://target-ecommerce.com/catalog',
    'country_code' => 'US',
    'selectors' => ['title' => 'h1', 'price' => '.price']
]);

echo "Status: " . $result['data']['http_status'] . PHP_EOL;
print_r($result['data']['selectors_data']);

Direct HTTP Integration (Zero SDK / No Packages)

If you don't want to install any SDK packages or want to integrate into an existing pipeline (Scrapy, Puppeteer, aiohttp, etc.), simply make standard HTTP requests to our REST endpoints.

Python (requests) Node.js (native fetch) cURL
import requests

url = "https://parse-everything.com/api/v1/extract"
payload = {
    "target_url": "https://protected-site.com",
    "country_code": "US",
    "render_js": False
}
headers = {
    "Authorization": "Bearer pe_live_YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())

Cloud Browser & CDP WebSocket (browser.parse-everything.com)

Connect Playwright, Puppeteer, or AI browser agents directly to pre-warmed Headless Chromium instances at wss://browser.parse-everything.com/connect using your same Parse Everything API key. Your saved browser defaults (stealth, viewport, proxy, TTL) apply automatically.

import { chromium } from 'playwright';

const browser = await chromium.connectOverCDP(
  'wss://browser.parse-everything.com/connect?token=pe_live_YOUR_API_KEY'
);
const page = await browser.newPage();
await page.goto('https://example.com');
console.log(await page.title());
await browser.close();
Explore Full Cloud Browser & CDP Docs →