AlterLab icon

AlterLab

Scrape any website with anti-bot bypass, JS rendering, structured extraction, OCR, and more

Actions2

Scrape → Scrape

AI-generated

Summary

Scrape the content of a specified URL using various methods including HTTP-only, JavaScript rendering, PDF text extraction, or OCR on images, with advanced options for request customization, output formatting, and structured data extraction.

Inputs

  • URL (required) — The URL to scrape.
  • Mode (required) — Scraping mode to use: Auto, HTML, JavaScript rendering, PDF text extraction, or OCR.
  • HTTP Method (required) — HTTP method to use for the request: GET (default) or POST (for form submissions, REST APIs, GraphQL). POST requests cost 1.5× the base tier price.
  • Request Body — Request body string for POST requests. For GraphQL: JSON with query and variables; for REST or forms: JSON payload or URL-encoded string.
  • Output Options — Options for output format (multiple formats supported like markdown, JSON, content for AI pipelines, etc.), inclusion of raw HTML, request timeout, and maximum response body size.
  • Execution Mode — Enable response caching and specify cache TTL in seconds.
  • Advanced Options — Advanced scraping options including JavaScript rendering, full-page screenshots, PDF generation, scrolling to load lazy content, OCR extraction, proxy usage, preferred proxy country, readiness wait conditions for JavaScript rendering, removing cookie banners, inline cookies or stored session for authenticated scraping, and section filtering for JSON outputs.
  • Extraction — Structured data extraction settings including pre-defined extraction profiles (e.g. product, article, FAQ), natural language extraction prompts, JSON schema for filtering, LLM model and provider overrides, promoting Schema.org data, and inclusion of extraction provenance evidence.
  • Cost Controls — Limits and preferences for spending, forcing or capping pricing tiers, preference for cost or speed, and fail-fast error handling without automatic escalation.

Output shape

A single JSON object containing the scraped content and metadata.

The output includes fields such as the URL, HTTP status code, title, author, publication date, cached response indicator, response time, size in bytes, and multiple content formats (markdown, text, JSON variants, RAG chunked, HTML) as available. It also contains advanced outputs like screenshot and PDF URLs, OCR results, raw HTML if requested, and billing details (cost, tier used, savings, and optimization suggestions). When structured extraction schema is provided, JSON content is replaced with filtered extraction results. Errors from the API are returned as n8n NodeApiError with descriptive messages.

Links

Discussion