LitescrapeWeb & SEO DataSEO/AEO

Fetch rendered web content

litescrape.web.fetch

Fetch a public HTTP(S) page and return LLM-ready content

Price
$0.00015/successAt provider cost
Success rate
73.1%Last 30 days · 21,047 calls
Latency p50
7.8 sp95 28 s
Last verified
Sep 29, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdownPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Query parameters
urlstringRequiredPublic HTTP(S) URL to capture, 1-8,192 characters. Include http:// or https://; bare domains are rejected. The host must be public, on port 80 or 443, without embedded credentials.https://example.com
basestringOptionalResolve relative links against the requested URL (initial, default) or the final URL after redirects (final).
enginestringOptionalauto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).
localestringOptionalBrowser locale as a language tag, 2-64 characters. Defaults to the browser's own.en-US
no_gfmstringOptionaltrue, false or table: disable GitHub-flavored Markdown, or only its tables.
presetstringOptionalOption preset. Fills only the options the request leaves unset.
refererstringOptionalHTTP(S) URL sent as the Referer.https://example.com
timeoutnumberOptionalOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
max_tokensintegerOptionalInteger 500-10,000,000. Trim content to this many tokens.
robots_txtstringOptionalUser agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.MyBot
user_agentstringOptionalUser-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.
with_iframestringOptionaltrue, false or quoted: include iframe content before extraction.
page_timeoutintegerOptionalSeconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.30
respond_withstringOptionalOutput format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot.markdown
retain_linksstringOptionalLinks to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).
retain_mediastringOptionalHow video, audio and embedded video appear: none, text, link (default), image or html.
token_budgetintegerOptionalInteger 1-10,000,000. Reject the page when its token count exceeds the budget.
retain_imagesstringOptionalImages to keep: all (default), alt (alt text only) or none.alt
remove_overlaybooleanOptionalRemove modal and cookie-banner overlays from the page.
respond_timingstringOptionalPage readiness condition to reach before responding.network-idle
remove_selectorstringOptionalCSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.nav, footer
target_selectorstringOptionalCSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected.article
with_shadow_dombooleanOptionalInclude open shadow DOM content before extraction.
detach_invisiblesbooleanOptionalDrop display:none elements from the page.
keep_img_data_urlbooleanOptionalKeep inline data: images in Markdown.
markdown_chunkingstringOptionaltrue, h1-h5, structured or s1-s5: split the Markdown and return chunks.
wait_for_selectorstringOptionalCSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.main
assert_status_codeintegerOptionalExpected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.200
with_links_summarystringOptionaltrue, false or all: add a links list to the response.
with_images_summarybooleanOptionalAdd an images list to the response.
  • Query parameters
  • urlstringRequired

    Public HTTP(S) URL to capture, 1-8,192 characters. Include http:// or https://; bare domains are rejected. The host must be public, on port 80 or 443, without embedded credentials.

    Example: https://example.com

  • basestringOptional

    Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final).

  • enginestringOptional

    auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).

  • localestringOptional

    Browser locale as a language tag, 2-64 characters. Defaults to the browser's own.

    Example: en-US

  • no_gfmstringOptional

    true, false or table: disable GitHub-flavored Markdown, or only its tables.

  • presetstringOptional

    Option preset. Fills only the options the request leaves unset.

  • refererstringOptional

    HTTP(S) URL sent as the Referer.

    Example: https://example.com

  • timeoutnumberOptional

    Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.

  • max_tokensintegerOptional

    Integer 500-10,000,000. Trim content to this many tokens.

  • robots_txtstringOptional

    User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.

    Example: MyBot

  • user_agentstringOptional

    User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.

  • with_iframestringOptional

    true, false or quoted: include iframe content before extraction.

  • page_timeoutintegerOptional

    Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.

    Example: 30

  • respond_withstringOptional

    Output format: content (default; main content as Markdown, or the whole page when extraction keeps too little), markdown (whole page as Markdown), html, text, frontmatter (content plus front matter), or a '+' combination such as markdown+frontmatter. For screenshots use /api/web/screenshot.

    Example: markdown

  • retain_linksstringOptional

    Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).

  • retain_mediastringOptional

    How video, audio and embedded video appear: none, text, link (default), image or html.

  • token_budgetintegerOptional

    Integer 1-10,000,000. Reject the page when its token count exceeds the budget.

  • retain_imagesstringOptional

    Images to keep: all (default), alt (alt text only) or none.

    Example: alt

  • remove_overlaybooleanOptional

    Remove modal and cookie-banner overlays from the page.

  • respond_timingstringOptional

    Page readiness condition to reach before responding.

    Example: network-idle

  • remove_selectorstringOptional

    CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.

    Example: nav, footer

  • target_selectorstringOptional

    CSS selector to extract, 1-2,048 characters; POST also accepts a list of 1-16 selectors. Implies waiting for the selector. Match-all selectors are rejected.

    Example: article

  • with_shadow_dombooleanOptional

    Include open shadow DOM content before extraction.

  • detach_invisiblesbooleanOptional

    Drop display:none elements from the page.

  • keep_img_data_urlbooleanOptional

    Keep inline data: images in Markdown.

  • markdown_chunkingstringOptional

    true, h1-h5, structured or s1-s5: split the Markdown and return chunks.

  • wait_for_selectorstringOptional

    CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.

    Example: main

  • assert_status_codeintegerOptional

    Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.

    Example: 200

  • with_links_summarystringOptional

    true, false or all: add a links list to the response.

  • with_images_summarybooleanOptional

    Add an images list to the response.

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdown' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00015/success, including the service fee.