Expanded Limits, Across all tiers - Our Gift to you! Learn more →

AlterLab
SearchResearchPricingComparePlaygroundBlogDocsChangelog
    AlterLabAlterLab
    PricingComparePlaygroundBlogDocsChangelog
    IntroductionQuickstartInstallationYour First Request
    REST APICrawl APIMap APISearch APIResearch APINewSERP APINewExtract APIAIJob PollingDomain StatsNewGeocode APINewNews APIBatch ResultsNewAPI KeysSessions APINewEnterprise APIEnterprise
    AccountAutoAI VisibilityAutoAlertsAutoAuthAutoBillingAutoCrawlAutoExtractAutoIntegrationsAutoKeysAutoMapAutoMonitorsAutoOrganizationsAutoResearch SchedulesAutoRunsAutoSchedulesAutoScrapeAutoSearchAutoSearch SchedulesAutoSessionsAutoUser WebhooksAutoV1 EndpointsAutoAffiliatesAutoAgentAutoAgent OnboardingAutoAgent VisibilityAutoAnalyticsAutoApprovalsAutoArtifactsAutoAttributionAutoB2BAutoBatchAutoBeta FeaturesAutoBlogAutoBuyerAutoChatAutoConnectionsAutoConnectorsAutoContact ListsAutoCreatorAutoCross SellAutoDashboardAutoDefaultsAutoDomainsAutoEmail PreferencesAutoFcAutoHandsAutoHealthAutoJobsAutoListingsAutoMaintenanceAutoNewsAutoOauthAutoOauth GrantsAutoPage InspectAutoPlatformAutoPresetsAutoPricingAutoPrivacyAutoPublicAutoPublic PagesAutoReferralAutoReferralsAutoReportsAutoResearchAutoSecretsAutoSerpAutoSSOAutoStorefrontsAutoSupportAutoTemplatesAutoToolsAutoTrackAutoUsageAutoUsage TagsAutoUserAutoWorkflowsAutoWorkspacesAutoWebhooksAuto
    OverviewPythonNode.jsCLI
    Guides OverviewJavaScript RenderingBrowser ActionsOutput FormatsPDF & OCRCachingWebhooksJSON Schema FilteringWebSocket Real-TimeBring Your Own ProxyProSticky SessionsProAuthenticated ScrapingNewHTTP Methods & BodiesNewStructured ExtractionAIWeb SearchAgent and RAG GroundingResearch JobsAgent RunsSite MappingWeb CrawlingBatch ScrapingSchedulerData MarketplaceSelling DataAgent OnboardingEmbeddingsKeyword IdeasAI VisibilityWorkflowsChange DetectionCloud Storage ExportSpend LimitsOrganizations & TeamsScrape TemplatesCustom ConnectorsSecretsContact ListsPlatform Sub-AccountsReferrals & AffiliatesAlerts & NotificationsExtraction ProfilesAIBYOK ExtractionAIOAuth2 Machine-to-MachineSupport & TicketsUnsupported Targets
    Tutorials OverviewStructured ExtractionAIE-commerce ScrapingNews MonitoringPrice MonitoringMulti-Page CrawlingMonitoring DashboardAI Agent / MCPMCPAI Research AgentAISite CrawlingData Pipeline to Cloud
    E-commerceLead GenerationChange MonitoringRAG & AI PipelinesAIResearch
    Reference OverviewPricingRate LimitsReliabilityReliability ContractError CodesChangelogVersioning
    Migrations OverviewFrom FirecrawlFrom ApifyFrom ScrapingBee / ScraperAPIFrom Crawl4AIFrom SpiderSearch to SERPFirecrawl v0 API ReferenceLegacy
    OverviewMCP ServerAIn8n NodeLangChainAICrewAIAILlamaIndexAISupabaseChrome ExtensionSoon
    PlaygroundPricingStatus

    Up to 5,000 free requests · No credit card

    API Reference
    Auto-generated

    Scrape

    API reference for scrape endpoints.

    Auto-generated

    This page was generated from the OpenAPI spec. Runmake generate-docs to refresh after spec changes.

    POST /api/v1/scrape

    Unified scrape endpoint. The legacy mode-specific routes below are deprecated.

    All request parameters (POST /api/v1/scrape)

    NameTypeDefaultDescription
    tagstringOptional spend-attribution tag (^[a-z0-9][a-z0-9_.-]{0,63}$, max 20 active tags per organization).
    urlstring
    mode"auto" | "html" | "js" | "pdf" | "ocr""auto"Scraping mode
    method"GET" | "POST""GET"HTTP method to use when fetching the target URL.
    bodystringRequest body to send with POST.
    content_type"application/json" | "application/x-www-form-urlencoded" | "text/plain" | "application/graphql"Content-Type header for the request body.
    source"playground" | "api"Request source for tracking.
    headersobjectCustom HTTP headers to include in the request to the target URL.
    syncbooleantrueEnable blocking mode: API polls internally until job completes (up to 85s), then returns 200 with result.
    suggestionsbooleantrueSet false to opt out of the recurring-use `suggestions` item (#40690).
    response"full" | "minimal"Response shape.
    sync_policy"auto" | "wait_until_deadline""auto"Synchronous wait policy.
    advancedobjectAdvanced scraping options with add-on costs (in microcents).
    locationobjectGeo-targeting parameters.
    cost_controlsobject
    cachebooleanfalseEnable caching.
    cache_ttlintegerCache TTL in seconds (60-86400).
    max_ageintegerAccept a stored result up to this many seconds old (0-86400).
    force_refreshbooleanfalseForce fresh fetch even if cache=True.
    include_raw_htmlbooleanfalseReturn the fetched pre-render origin HTML as top-level `raw_html`.
    timeoutinteger90
    max_response_bytesinteger5242880Soft cap on raw response body size in bytes.
    formats"text" | "json" | "json_v2" | "html" | "markdown" | "rag" | "content" | "raw" | "document" | "structured_data"[]Output formats for content transformation.
    agent_profilestringOpt-in output profile for LLM agents.
    max_tokensintegerToken budget for the markdown format when agent_profile='agent'.
    extraction_selectorsobjectDeterministic field extraction: {field: {css|xpath, attr?, multiple?}} evaluated on the fetched HTML.
    extraction_schemaobjectJSON Schema for filtering extracted data.
    extraction_promptstringNatural language instructions for extraction
    extraction_provider"openai" | "anthropic" | "openrouter" | "groq"LLM provider to use for extraction.
    extraction_modelstringPer-request LLM model override in provider-specific format (e.g.
    extraction_profile"auto" | "product" | "article" | "job_posting" | "faq" | "recipe" | "event" | "ecommerce_homepage" | "directory_listing""auto"Pre-defined extraction profile (schema template)
    extraction_template"auto" | "product" | "article" | "job_posting" | "faq" | "recipe" | "event" | "ecommerce_homepage" | "directory_listing"Shorthand for extraction_profile.
    evidencebooleanfalseInclude provenance/evidence for extracted fields
    promote_schema_orgbooleantrueUse Schema.org as primary structure when available
    filter_contentbooleanfalseApply quality filtering to extracted content.
    wait_forstring
    screenshotbooleanfalse
    wait_untilstring"networkidle"
    enable_scrollbooleanForce enable scrolling for lazy-load images.
    pdf_formatstring"markdown"
    ocr_languagestring"eng"
    webhook_urlstringWebhook URL to receive job.completed/job.failed events for this request.
    embeddingsobjectOptional embeddings configuration.

    POST /api/v1/scrape/js

    POST
    /api/v1/scrape/js

    Scrape (JS render mode) [DEPRECATED]

    Parameters

    NameTypeRequiredDescription
    urlstring
    Required
    Url
    methodstringOptionalMethodDefault: GET
    headersobjectOptionalheaders
    timeoutintegerOptionalTimeoutDefault: 90
    follow_redirectsbooleanOptionalFollow RedirectsDefault: True
    wait_forstringOptionalwait_for
    screenshotbooleanOptionalScreenshotDefault: False
    wait_untilstringOptionalWait UntilDefault: networkidle
    force_refreshbooleanOptionalForce RefreshDefault: False
    include_raw_htmlbooleanOptionalInclude Raw HtmlDefault: False

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/scrape/js \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "example_url",
        "method": "example_method",
        "timeout": 90,
        "follow_redirects": false
      }'

    Response Example

    JSON
    {
      "url": "example",
      "status_code": 0,
      "content": "example",
      "title": "example",
      "published_at": "example",
      "author": "example"
    }

    POST /api/v1/scrape/light

    POST
    /api/v1/scrape/light

    Scrape (light mode) [DEPRECATED]

    Parameters

    NameTypeRequiredDescription
    urlstring
    Required
    Url
    methodstringOptionalMethodDefault: GET
    headersobjectOptionalheaders
    timeoutintegerOptionalTimeoutDefault: 90
    follow_redirectsbooleanOptionalFollow RedirectsDefault: True
    force_refreshbooleanOptionalForce RefreshDefault: False
    include_raw_htmlbooleanOptionalInclude Raw HtmlDefault: False

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/scrape/light \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "example_url",
        "method": "example_method",
        "timeout": 90,
        "follow_redirects": false
      }'

    Response Example

    JSON
    {
      "url": "example",
      "status_code": 0,
      "content": "example",
      "title": "example",
      "published_at": "example",
      "author": "example"
    }

    POST /api/v1/scrape/ocr

    POST
    /api/v1/scrape/ocr

    Scrape (OCR mode) [DEPRECATED]

    Parameters

    NameTypeRequiredDescription
    urlstring
    Required
    Url
    languagestringOptionalLanguageDefault: eng
    force_refreshbooleanOptionalForce RefreshDefault: False

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/scrape/ocr \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "example_url",
        "language": "example_language",
        "force_refresh": false
      }'

    Response Example

    JSON
    {
      "url": "example",
      "status_code": 0,
      "content": "example",
      "title": "example",
      "published_at": "example",
      "author": "example"
    }

    POST /api/v1/scrape/pdf

    POST
    /api/v1/scrape/pdf

    Scrape (PDF mode) [DEPRECATED]

    Parameters

    NameTypeRequiredDescription
    urlstring
    Required
    Url
    formatstringOptionalFormatDefault: markdown
    force_refreshbooleanOptionalForce RefreshDefault: False

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/scrape/pdf \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "example_url",
        "format": "example_format",
        "force_refresh": false
      }'

    Response Example

    JSON
    {
      "url": "example",
      "status_code": 0,
      "content": "example",
      "title": "example",
      "published_at": "example",
      "author": "example"
    }

    POST /api/v1/scrape/estimate/public

    POST
    /api/v1/scrape/estimate/public

    Estimate scrape cost without an API key

    Parameters

    NameTypeRequiredDescription
    tagstringOptionaltag
    urlstring
    Required
    Url
    mode"auto" | "html" | "js" | "pdf" | "ocr"OptionalScraping modeDefault: auto
    method"GET" | "POST"OptionalHTTP method to use when fetching the target URL. Default is GET (standard page scrape). Use POST for GraphQL endpoints, REST APIs, and form submissions. POST costs 1.5x the base tier price. Body and Content-Type are optional — some endpoints (e.g. webhook triggers) accept bodyless POST.Default: GET
    bodystringOptionalbody
    content_type"application/json" | "application/x-www-form-urlencoded" | "text/plain" | "application/graphql"Optionalcontent_type
    source"playground" | "api"Optionalsource
    headersobjectOptionalheaders
    syncbooleanOptionalEnable blocking mode: API polls internally until job completes (up to 85s), then returns 200 with result. Simpler than manual polling, but has a safe deadline. Set to False for immediate 202 response with job_id for long-running scrapes (>85s) or when using webhooks/WebSockets. Both modes queue to worker - sync just polls for you.Default: True
    response"full" | "minimal"Optionalresponse
    sync_policy"auto" | "wait_until_deadline"OptionalSynchronous wait policy. 'auto' preserves the normal early 202 response for predicted T3/T4 jobs; 'wait_until_deadline' keeps the connection open until the terminal result or the existing safe sync deadline. Requires sync=true.Default: auto
    advancedobjectOptionalAdvanced scraping options with add-on costs (in microcents). Add-on Costs (see ADDON_MICROCENTS in pricing.py): - render_js: Forces Tier 4 ($0.004) — no extra surcharge - screenshot: +$0.0002 (200 microcents, requires render_js) - generate_pdf: +$0.0004 (400 microcents, requires render_js) - ocr: +$0.001 (1000 microcents) - use_proxy: +$0.0002 (200 microcents) - actions: included in the browser tier price (no per-action fee) - screenshot action: +$0.0002 (200 microcents) per captured image; failed captures are free - markdown: Free - wait_condition: Free
    locationobjectOptionalGeo-targeting parameters for localized content scraping. Controls proxy country routing, Accept-Language header, and browser locale to retrieve content as seen from a specific geographic location.
    cost_controlsobjectOptionalCost control parameters for scraping requests. Tier levels: 1: curl - Direct HTTP, no fingerprinting ($0.0002) 2: http - curl_cffi with TLS fingerprinting ($0.0003) 3: proxied - curl_cffi with proxy ($0.002) 3.5: lightjs - T3 + JSON extraction without browser ($0.0025) 4: browser - Playwright full rendering ($0.004)
    cachebooleanOptionalEnable caching. When True, results may be returned from cache on repeat calls where the full cache key matches: URL, scraping mode, HTTP method, request body, output options (formats, extraction config, render settings, geo-targeting), and user identity — each user's cache is isolated. For GET: standard opt-in caching. For POST: only valid when the endpoint is idempotent (e.g. GraphQL queries, read-only REST POSTs) — caching a mutating POST will cause stale responses to be returned instead of executing the mutation.Default: False
    cache_ttlintegerOptionalcache_ttl
    max_ageintegerOptionalmax_age
    force_refreshbooleanOptionalForce fresh fetch even if cache=True. Deprecated: prefer cache=False.Default: False
    include_raw_htmlbooleanOptionalReturn the fetched pre-render origin HTML as top-level 'raw_html'. 'formats: ["html"]' returns the post-render cleaned HTML in 'content.html'.Default: False
    timeoutintegerOptionalTimeoutDefault: 90
    max_response_bytesintegerOptionalSoft cap on raw response body size in bytes. When the downloaded HTML exceeds this value it is truncated before extraction and content_truncated.truncation_reason is set to 'response_body_cap'. Defaults to 5 MB (5_242_880 bytes). Set to 0 for no limit. Maximum: 50 MB (52_428_800).Default: 5242880
    formatsstring[]Optionalformats
    agent_profilestringOptionalagent_profile
    max_tokensintegerOptionalmax_tokens
    extraction_selectorsobjectOptionalextraction_selectors
    extraction_schemaobjectOptionalextraction_schema
    extraction_promptstringOptionalextraction_prompt
    extraction_provider"openai" | "anthropic" | "openrouter" | "groq"Optionalextraction_provider
    extraction_modelstringOptionalextraction_model
    extraction_profile"auto" | "product" | "article" | "job_posting" | "faq" | "recipe" | "event" | "ecommerce_homepage" | "directory_listing"Optionalextraction_profile
    extraction_template"auto" | "product" | "article" | "job_posting" | "faq" | "recipe" | "event" | "ecommerce_homepage" | "directory_listing"Optionalextraction_template
    evidencebooleanOptionalInclude provenance/evidence for extracted fieldsDefault: False
    promote_schema_orgbooleanOptionalUse Schema.org as primary structure when availableDefault: True
    filter_contentbooleanOptionalApply quality filtering to extracted content. When False (default), returns all parsed content without quality thresholds (lossless mode).Default: False
    wait_forstringOptionalwait_for
    screenshotbooleanOptionalScreenshotDefault: False
    wait_untilstringOptionalWait UntilDefault: networkidle
    enable_scrollbooleanOptionalenable_scroll
    pdf_formatstringOptionalPdf FormatDefault: markdown
    ocr_languagestringOptionalOcr LanguageDefault: eng
    webhook_urlstringOptionalwebhook_url
    embeddingsobjectOptionalConfiguration for optional inline embeddings generation. When enabled, scraped text content is chunked and embedded using OpenAI embedding models. Results are included in the scrape response. A registered OpenAI API key (BYOK, Dashboard > Settings > LLM keys) is required; without one the request is rejected with 400 ''byok_key_required'' before any charge. Add-on cost: +$0.001 per page (1000 microcents).

    Request Example

    Bash
    curl -X POST https://api.alterlab.io/api/v1/scrape/estimate/public \
      -H "X-API-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "example_url",
        "mode": "...",
        "method": "..."
      }'

    Response Example

    JSON
    {
      "url": "example",
      "estimated_tier": "example",
      "estimated_credits": 0,
      "confidence": "example",
      "max_possible_credits": 0,
      "reasoning": "example"
    }
    Last updated: June 2026

    On this page