```yaml
product: AlterLab
title: "API Documentation | AlterLab"
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/docs
```

# AlterLab API Documentation

AlterLab is a web scraping API that handles anti-bot protections, CAPTCHAs, and JavaScript challenges in a single API call. It returns clean HTML, LLM-ready markdown, or structured JSON from any URL.

The API uses a 5-tier auto-escalation system: Tier 1 (direct fetch, $0.0002/req) for static sites, Tier 2 (full http client, $0.0003/req) for modern protocol support, Tier 3 (managed sessions, $0.002/req) for multi-step pages, Tier 4 (full browser rendering, $0.004/req) for JavaScript rendering, and Tier 5 (extended browser sessions, $0.02/req) for the most demanding pages. Official SDKs are available for Python and Node.js. Pay-as-you-go pricing with no monthly subscription — balance never expires.

[Try the Playground](https://alterlab.io/playground)[Get API Key — Free](https://alterlab.io/signin)Up to 5,000 free requests · No credit card required

## What does the AlterLab API do?

AlterLab is a web scraping API that converts any public URL into structured data with a single HTTP request. Submit a URL and receive clean markdown, plain text, or typed JSON — depending on the output format requested. AlterLab handles JavaScript rendering (via headless Chromium), website compatibility (via TLS fingerprinting and behavioral signals), and challenge resolution automatically. Pricing starts at $0.0002 per request for static pages and scales to $0.02 per request for challenge-protected targets. There is no monthly subscription and account balance never expires. Official SDKs are available for Python (pip install alterlab) and Node.js (npm install alterlab), with an MCP Server for direct integration with Claude, Cursor, and Windsurf.

The AlterLab dashboard gives you an at-a-glance view of your API usage, recent jobs, and account status.

New to AlterLab?

Start with our [Quickstart Guide](https://alterlab.io/docs/quickstart/installation) to make your first API request in under 5 minutes.

## Using an AI agent? Give it the whole API.

Point Codex, Claude Code, Cursor, or any coding agent at our machine-readable docs and it gets a complete understanding of the AlterLab API in one shot — no snippet-pasting, no protocol confusion.

[llms-full.txtFull spec, written to be read by an AI.Learn more](https://alterlab.io/llms-full.txt)[llms.txtCondensed index for smaller context windows.Learn more](https://alterlab.io/llms.txt)[openapi.jsonMachine-readable OpenAPI spec.Learn more](https://alterlab.io/openapi.json)

Copy this prompt and hand it to your agent:

TEXT

```
Read https://alterlab.io/llms-full.txt and use the AlterLab API to scrape example.com and return clean markdown.
```

### How do I get started with AlterLab?

Install the SDK with pip install alterlab (Python) or npm install alterlab (Node.js). Sign up at alterlab.io to get up to 5,000 free requests — no credit card required. Send a URL to the /scrape endpoint with your API key and receive clean HTML, markdown, or JSON in one call.

### What can AlterLab extract from a website?

AlterLab returns raw HTML, LLM-ready markdown, or structured JSON from any public URL. For structured extraction, define a JSON schema (fields, types) and AlterLab uses AI to populate it automatically. Supports product prices, job listings, real estate data, and any page with structured content.

## How do I get started with AlterLab?

[InstallationInstall the SDK in your preferred language and set up your environment.Learn more](https://alterlab.io/docs/quickstart/installation)[Your First RequestMake your first API call and scrape a web page in under 2 minutes.Learn more](https://alterlab.io/docs/quickstart/first-request)[REST API ReferenceComplete reference for all API endpoints, parameters, and responses.Learn more](https://alterlab.io/docs/api/rest)[Python SDKOfficial Python SDK with async support, batch operations, and type hints.Learn more](https://alterlab.io/docs/sdk/python)

## Guides

[JavaScript RenderingScrape SPAs and dynamic sites with headless browser rendering.Learn more](https://alterlab.io/docs/guides/javascript-rendering)[PDF & OCRExtract text from PDFs and images with multi-language OCR support.Learn more](https://alterlab.io/docs/guides/pdf-ocr)[CachingReduce costs with intelligent caching. Cache hits cost 50%.Learn more](https://alterlab.io/docs/guides/caching)[WebhooksGet notified when async scrapes complete with webhook callbacks.Learn more](https://alterlab.io/docs/guides/webhooks)[JSON Schema FilteringFilter extracted data to match your desired output structure with aliases and type coercion.Learn more](https://alterlab.io/docs/guides/json-schema-filtering)[Batch ScrapingSubmit up to 100 URLs in a single API call with async processing and webhooks.Learn more](https://alterlab.io/docs/guides/batch-scraping)[SchedulerAutomate recurring scrapes with cron expressions and balance-based limits.Learn more](https://alterlab.io/docs/guides/scheduler)[Authenticated ScrapingScrape login-gated content with your own session cookies. Member pricing, paywalled articles, and more.Learn more](https://alterlab.io/docs/guides/authenticated-scraping)

## Tutorials

[Structured ExtractionUse AI to extract structured JSON data from any web page.Learn more](https://alterlab.io/docs/tutorials/structured-extraction)[E-commerce ScrapingScrape product data, monitor prices, and track inventory.Learn more](https://alterlab.io/docs/tutorials/ecommerce-scraping)[News MonitoringBuild news aggregation and brand monitoring systems.Learn more](https://alterlab.io/docs/tutorials/news-monitoring)

## Reference

[PricingTier costs, add-ons, BYOP discounts, and concurrency limits.Learn more](https://alterlab.io/docs/reference/pricing)[Rate LimitsQuotas, payload limits, timeouts, and how to handle 429 errors.Learn more](https://alterlab.io/docs/reference/limits)[Error CodesComplete list of error codes with troubleshooting tips.Learn more](https://alterlab.io/docs/reference/error-codes)[API KeysManage API keys, permissions, and security best practices.Learn more](https://alterlab.io/docs/api/keys)

## Quick Links

[Interactive PlaygroundTest API requests in real-time with our interactive tool](https://alterlab.io/playground)[Bring Your Own ProxyUse your own proxies for up to 20% cost savings](https://alterlab.io/docs/guides/bring-your-own-proxy)[Migrate from FirecrawlSwitch from Firecrawl with our compatibility layer](https://alterlab.io/docs/migrations/firecrawl)[Compare with AlternativesSee how AlterLab compares to ScraperAPI, Firecrawl, and others](https://alterlab.io/vs)

## See Also

[Blog & TutorialsWeb scraping guides, website compatibility techniques, and code examples](https://alterlab.io/blog)[Pricing5-tier pricing from $0.0002/request. Pay-as-you-go, credits never expire](https://alterlab.io/pricing)[Compare Scraping APIsAlterLab vs ScraperAPI, Firecrawl, ScrapingBee, and Bright Data](https://alterlab.io/best-web-scraping-api)[Automatic Website CompatibilityHandles bot-protected websites, CAPTCHAs, and JavaScript challenges automatically](https://alterlab.io/smart-rendering-api)

## Explore the Web Scraping API Cluster

[Web Scraping API Comparison 2026Side-by-side comparison with ScraperAPI, Firecrawl, Bright Data, and Apify.](https://alterlab.io/vs)[Web Scraping API BenchmarksReal success rates, response times, and cost data across all 5 tiers.](https://alterlab.io/benchmark)[AlterLab for AI AgentsUse web scraping in Claude, GPT-4, and LangChain agent workflows.](https://alterlab.io/for-ai-agents)[Automatic Website Compatibility APIHandles bot-protected websites, JavaScript challenges, and complex protections automatically.](https://alterlab.io/smart-rendering-api)[JavaScript Rendering APIFull browser rendering for SPAs, React, and dynamic content.](https://alterlab.io/javascript-rendering-api)[Search, Crawl, and Map PipelineChain Search → Crawl → Map operations in a single API workflow.](https://alterlab.io/platform)[Pay-as-You-Go PricingFrom $0.0002/request. Balance never expires — no monthly subscription.](https://alterlab.io/pricing)

[Quickstart](https://alterlab.io/docs/quickstart)

Last updated: June 2026