LitescrapeDatos web y SEOSEO/AEO

Fetch rendered web content

litescrape.web.fetch

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

Price
$0.00015/successAl precio del proveedor
Success rate
73,1 %Last 30 days · 21.047 calls
Latency p50
7.8 sp95 28 s
Last verified
29 sept 2026Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdownPreview
Try onlinePróximamenteProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parámetros

ParámetroTipoObligatorioDescripciónEjemplo
Parámetros de consulta
urlcadenaObligatorioPublic 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
basecadenaOpcionalResolve relative links against the requested URL (initial, default) or the final URL after redirects (final).
enginecadenaOpcionalauto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).
localecadenaOpcionalBrowser locale as a language tag, 2-64 characters. Defaults to the browser's own.en-US
no_gfmcadenaOpcionaltrue, false or table: disable GitHub-flavored Markdown, or only its tables.
presetcadenaOpcionalOption preset. Fills only the options the request leaves unset.
referercadenaOpcionalHTTP(S) URL sent as the Referer.https://example.com
timeoutnúmeroOpcionalOptional 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_tokensenteroOpcionalInteger 500-10,000,000. Trim content to this many tokens.
robots_txtcadenaOpcionalUser agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.MyBot
user_agentcadenaOpcionalUser-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.
with_iframecadenaOpcionaltrue, false or quoted: include iframe content before extraction.
page_timeoutenteroOpcionalSeconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.30
respond_withcadenaOpcionalOutput 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_linkscadenaOpcionalLinks to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).
retain_mediacadenaOpcionalHow video, audio and embedded video appear: none, text, link (default), image or html.
token_budgetenteroOpcionalInteger 1-10,000,000. Reject the page when its token count exceeds the budget.
retain_imagescadenaOpcionalImages to keep: all (default), alt (alt text only) or none.alt
remove_overlaybooleanoOpcionalRemove modal and cookie-banner overlays from the page.
respond_timingcadenaOpcionalPage readiness condition to reach before responding.network-idle
remove_selectorcadenaOpcionalCSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.nav, footer
target_selectorcadenaOpcionalCSS 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_dombooleanoOpcionalInclude open shadow DOM content before extraction.
detach_invisiblesbooleanoOpcionalDrop display:none elements from the page.
keep_img_data_urlbooleanoOpcionalKeep inline data: images in Markdown.
markdown_chunkingcadenaOpcionaltrue, h1-h5, structured or s1-s5: split the Markdown and return chunks.
wait_for_selectorcadenaOpcionalCSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.main
assert_status_codeenteroOpcionalExpected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.200
with_links_summarycadenaOpcionaltrue, false or all: add a links list to the response.
with_images_summarybooleanoOpcionalAdd an images list to the response.
  • Parámetros de consulta
  • urlcadenaObligatorio

    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.

    Ejemplo: https://example.com

  • basecadenaOpcional

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

  • enginecadenaOpcional

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

  • localecadenaOpcional

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

    Ejemplo: en-US

  • no_gfmcadenaOpcional

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

  • presetcadenaOpcional

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

  • referercadenaOpcional

    HTTP(S) URL sent as the Referer.

    Ejemplo: https://example.com

  • timeoutnúmeroOpcional

    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_tokensenteroOpcional

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

  • robots_txtcadenaOpcional

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

    Ejemplo: MyBot

  • user_agentcadenaOpcional

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

  • with_iframecadenaOpcional

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

  • page_timeoutenteroOpcional

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

    Ejemplo: 30

  • respond_withcadenaOpcional

    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.

    Ejemplo: markdown

  • retain_linkscadenaOpcional

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

  • retain_mediacadenaOpcional

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

  • token_budgetenteroOpcional

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

  • retain_imagescadenaOpcional

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

    Ejemplo: alt

  • remove_overlaybooleanoOpcional

    Remove modal and cookie-banner overlays from the page.

  • respond_timingcadenaOpcional

    Page readiness condition to reach before responding.

    Ejemplo: network-idle

  • remove_selectorcadenaOpcional

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

    Ejemplo: nav, footer

  • target_selectorcadenaOpcional

    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.

    Ejemplo: article

  • with_shadow_dombooleanoOpcional

    Include open shadow DOM content before extraction.

  • detach_invisiblesbooleanoOpcional

    Drop display:none elements from the page.

  • keep_img_data_urlbooleanoOpcional

    Keep inline data: images in Markdown.

  • markdown_chunkingcadenaOpcional

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

  • wait_for_selectorcadenaOpcional

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

    Ejemplo: main

  • assert_status_codeenteroOpcional

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

    Ejemplo: 200

  • with_links_summarycadenaOpcional

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

  • with_images_summarybooleanoOpcional

    Add an images list to the response.

Ejemplos de código

Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.

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"

La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.00015/success, incluida la tarifa de servicio.