
How to Migrate from ProxyCrawl to AlterLab: Step-by-Step Guide (2026)
How to Migrate from ProxyCrawl to AlterLab: StepbyStep Guide 2026 Both APIs are capable — this guide is for developers prioritizing payasyougo pricing and...
AlterLab handles this automatically — scrape any URL with one API call. No infrastructure required.
Try it freeBoth APIs are capable — this guide is for developers prioritizing pay-as-you-go pricing and no subscription requirements.
TL;DR
To migrate from ProxyCrawl to AlterLab, install the AlterLab SDK, replace your ProxyCrawl client with alterlab.Client, and use the same scrape method. Your existing code works with minimal changes because the REST API format is compatible.
Why migrate?
ProxyCrawl requires separate tokens for normal and JavaScript scraping and does not provide a unified SDK. AlterLab offers a single API key that automatically routes requests to the appropriate tier, simplifying token management and removing the need for multiple SDKs.
Prerequisites
- An AlterLab account (free at /signup)
- Your AlterLab API key from the dashboard
- About 5 minutes to update your code
Step 1: Install the AlterLab SDK
You can continue using the raw REST API, but the Python SDK reduces boilerplate. Install it with pip.
pip install alterlabFor full setup details, see the Getting started guide.
Step 2: Replace your API calls
Below is a direct before‑and‑after comparison. The request structure stays the same; only the client initialization and token source change.
import requests
PROXYCRAWL_TOKEN = "your_proxycrawl_token"
target_url = "https://example.com"
response = requests.get(
"https://api.proxycrawl.com/",
params={"token": PROXYCRAWL_TOKEN, "url": target_url}
)
html = response.textfrom alterlab import AlterLabSync
# Initialize the AlterLab client with your API key
client = AlterLabSync("your_alterlab_key")
# The scrape method accepts a URL and optional parameters
response = client.scrape("https://example.com")
html = response["content"] # Same HTML output as ProxyCrawlIf you prefer the REST API directly, replace the ProxyCrawl endpoint with AlterLab’s and keep the same query parameters:
import requests
ALTERLAB_TOKEN = "your_alterlab_key"
target_url = "https://example.com"
response = requests.get(
"https://api.alterlab.io/scrape",
params={"token": ALTERLAB_TOKEN, "url": target_url}
)
html = response.textStep 3: Handle response format differences
AlterLab returns a response object with the same attributes you used with ProxyCrawl: text for HTML, status_code for HTTP status, and headers for response headers. There are no breaking changes in the core payload.
If you accessed nested JSON data via response.json()['body'], note that AlterLab’s JSON output mirrors the HTML string under the text field. For structured data, consider using the Cortex AI extraction feature.
Step 4: Update your error handling
Both services use HTTP status codes to signal issues. AlterLab returns:
200for success429when you exceed your balance‑based rate limit401for invalid or missing API key500for internal errors
Your existing retry logic based on status codes will work unchanged. If you relied on ProxyCrawl’s specific error messages in the JSON body, update them to match AlterLab’s format (see the API reference for details).
Cost comparison
AlterLab’s pricing is pure pay‑as‑you-go with no subscription. Below is a concrete example for 10,000 requests.
For 10,000 requests:
- AlterLab: 10,000 × $0.0002 = $2.00
- ProxyCrawl (typical middle tier): ~$25.00 – $40.00 depending on plan
See the full breakdown on the AlterLab pricing page.
Common issues and fixes
- Missing API key error – Double‑check that you replaced the ProxyCrawl token with your AlterLab key in environment variables or config files.
- Unexpected HTML encoding – AlterLab returns UTF‑8 encoded text by default. If you see garbled characters, ensure your client treats the response as UTF‑8 (most libraries do this automatically).
- Rate limit responses – AlterLab’s
429includes aRetry-Afterheader. Implement a simple back‑off respecting that header if you hit limits. - Cortex AI extraction not returning data – The extraction feature requires adding
extract: trueto the request parameters. Consult the Cortex AI docs for examples.
You’re done
Your migration is complete. Run your test suite to confirm everything works, then deploy. For more advanced features like scheduling, monitoring, or webhooks, see the detailed ProxyCrawl comparison or explore the AlterLab documentation.
Happy scraping!
Hit reply if you have questions.
Was this article helpful?
Frequently Asked Questions
Related Articles

Akamai Bot Manager Sensor Checks: Technical Guide
Learn how Akamai Bot Manager sensor checks work, why requests fail, and how ethical scraping pipelines use browser execution, sessions, and tiered requests.
Herald Blog Service

Scheduling Recurring Scrapes with Python and Cron
Learn how to schedule recurring scrapes with Python and cron, choose safe intervals, prevent duplicate runs, handle failures, and build reliable data pipelines.
Herald Blog Service

Job Listing Aggregation with Web Scraping
Build job listing aggregation with web scraping. Learn source discovery, extraction, normalization, deduplication, and refresh design for data engineers.
Herald Blog Service
Popular Posts
Recommended

Selenium Bot Detection: Why You Get Flagged and How to Fix It

Understanding Anti-Bot Detection: Fingerprinting and Rate Limits

Why Your Headless Browser Gets Detected (and How to Fix It)

Mastering Playwright Stealth for Agentic Web Workflows

Playwright Bot Detection: What Actually Works in 2026
Newsletter
Scraping insights and API tips. No spam.
Recommended Reading

Selenium Bot Detection: Why You Get Flagged and How to Fix It

Understanding Anti-Bot Detection: Fingerprinting and Rate Limits

Why Your Headless Browser Gets Detected (and How to Fix It)

Mastering Playwright Stealth for Agentic Web Workflows

Playwright Bot Detection: What Actually Works in 2026
Stay in the Loop
Get scraping insights, API tips, and platform updates. No spam — we only send when we have something worth reading.
Explore AlterLab
Anti-Bot Handling API
Automatic challenge handling for protected sites — works out of the box.
JavaScript Rendering API
Render SPAs and dynamic content with headless Chromium.
Pricing
5-tier pricing from $0.0002/page. Up to 5,000 free requests to start.
Documentation
API reference, SDKs, quickstart guides, and tutorials.
Web Scraping API Resources
Part of the Web Scraping API Documentation cluster
Complete API reference with 5-tier auto-escalation — Curl to challenge resolution.
Pillar pageConfigure Tier 4 browser rendering for SPAs and dynamic content.
Scrape pages behind login using session management.
Real success rates and cost data across all 5 tiers.
MCP Server, Python SDK, and Firecrawl-compatible API for AI agent workflows.