Fetch rendered web content
litescrape.web.fetchFetch a public HTTP(S) page and return LLM-ready content
- Price
- $0.00015/success제공업체 원가
- Success rate
- 73.1%Last 30 days · 21,047 calls
- Latency p50
- 7.8 sp95 28 s
- Last verified
- 2026. 9. 29.Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdownPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
url | 문자열 | 필수 | 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. | https://example.com |
base | 문자열 | 선택 | Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final). | |
engine | 문자열 | 선택 | auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript). | |
locale | 문자열 | 선택 | Browser locale as a language tag, 2-64 characters. Defaults to the browser's own. | en-US |
no_gfm | 문자열 | 선택 | true, false or table: disable GitHub-flavored Markdown, or only its tables. | |
preset | 문자열 | 선택 | Option preset. Fills only the options the request leaves unset. | |
referer | 문자열 | 선택 | HTTP(S) URL sent as the Referer. | https://example.com |
timeout | 숫자 | 선택 | 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_tokens | 정수 | 선택 | Integer 500-10,000,000. Trim content to this many tokens. | |
robots_txt | 문자열 | 선택 | User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected. | MyBot |
user_agent | 문자열 | 선택 | User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own. | |
with_iframe | 문자열 | 선택 | true, false or quoted: include iframe content before extraction. | |
page_timeout | 정수 | 선택 | Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout. | 30 |
respond_with | 문자열 | 선택 | 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. | markdown |
retain_links | 문자열 | 선택 | Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary). | |
retain_media | 문자열 | 선택 | How video, audio and embedded video appear: none, text, link (default), image or html. | |
token_budget | 정수 | 선택 | Integer 1-10,000,000. Reject the page when its token count exceeds the budget. | |
retain_images | 문자열 | 선택 | Images to keep: all (default), alt (alt text only) or none. | alt |
remove_overlay | 불리언 | 선택 | Remove modal and cookie-banner overlays from the page. | |
respond_timing | 문자열 | 선택 | Page readiness condition to reach before responding. | network-idle |
remove_selector | 문자열 | 선택 | CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors. | nav, footer |
target_selector | 문자열 | 선택 | 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. | article |
with_shadow_dom | 불리언 | 선택 | Include open shadow DOM content before extraction. | |
detach_invisibles | 불리언 | 선택 | Drop display:none elements from the page. | |
keep_img_data_url | 불리언 | 선택 | Keep inline data: images in Markdown. | |
markdown_chunking | 문자열 | 선택 | true, h1-h5, structured or s1-s5: split the Markdown and return chunks. | |
wait_for_selector | 문자열 | 선택 | CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors. | main |
assert_status_code | 정수 | 선택 | Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture. | 200 |
with_links_summary | 문자열 | 선택 | true, false or all: add a links list to the response. | |
with_images_summary | 불리언 | 선택 | Add an images list to the response. | |
- 쿼리 파라미터
url문자열필수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.
예시:
https://example.combase문자열선택Resolve relative links against the requested URL (initial, default) or the final URL after redirects (final).
engine문자열선택auto (default; lightweight HTTP first, a browser when needed), browser, or curl (no JavaScript).
locale문자열선택Browser locale as a language tag, 2-64 characters. Defaults to the browser's own.
예시:
en-USno_gfm문자열선택true, false or table: disable GitHub-flavored Markdown, or only its tables.
preset문자열선택Option preset. Fills only the options the request leaves unset.
referer문자열선택HTTP(S) URL sent as the Referer.
예시:
https://example.comtimeout숫자선택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_tokens정수선택Integer 500-10,000,000. Trim content to this many tokens.
robots_txt문자열선택User agent, 1-256 characters, to check against the site's robots.txt; disallowed URLs are rejected.
예시:
MyBotuser_agent문자열선택User-Agent for the page request, 1-1,024 characters without control characters. Defaults to the browser's own.
with_iframe문자열선택true, false or quoted: include iframe content before extraction.
page_timeout정수선택Seconds from 1 through 180 for page loading and browser operations. Cannot extend the total request budget set by timeout.
예시:
30respond_with문자열선택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.
예시:
markdownretain_links문자열선택Links to keep: all (default), text (link text only), none, or gpt-oss (citation format with a links summary).
retain_media문자열선택How video, audio and embedded video appear: none, text, link (default), image or html.
token_budget정수선택Integer 1-10,000,000. Reject the page when its token count exceeds the budget.
retain_images문자열선택Images to keep: all (default), alt (alt text only) or none.
예시:
altremove_overlay불리언선택Remove modal and cookie-banner overlays from the page.
respond_timing문자열선택Page readiness condition to reach before responding.
예시:
network-idleremove_selector문자열선택CSS selector removed before extraction, 1-2,048 characters; POST also accepts a list of 1-16 selectors.
예시:
nav, footertarget_selector문자열선택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.
예시:
articlewith_shadow_dom불리언선택Include open shadow DOM content before extraction.
detach_invisibles불리언선택Drop display:none elements from the page.
keep_img_data_url불리언선택Keep inline data: images in Markdown.
markdown_chunking문자열선택true, h1-h5, structured or s1-s5: split the Markdown and return chunks.
wait_for_selector문자열선택CSS selector to wait for after navigation, 1-2,048 characters. POST also accepts a list of 1-16 selectors.
예시:
mainassert_status_code정수선택Expected origin HTTP status, 100-599. A different status is rejected; otherwise a rendered error page is a successful capture.
예시:
200with_links_summary문자열선택true, false or all: add a links list to the response.
with_images_summary불리언선택Add an images list to the response.
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
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"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdown",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.web.fetch?url=https%3A%2F%2Fexample.com&respond_with=markdown", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 $0.00015/success이며 서비스 수수료가 포함되어 있습니다.