Web extraction with browser options
litescrape.web.fetch.postFetch a public HTTP(S) page and return LLM-ready content
- Price
- $0.00015/successAt provider cost
- Success rate
- 81.1%Last 30 days · 11,024 calls
- Latency p50
- 8.2 sp95 37 s
- Last verified
- Sep 29, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/litescrape.web.fetch.post?timeout=60PreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
timeout | number | Optional | 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. | 60 |
- Query parameters
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.
Example:
60
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/litescrape.web.fetch.post?timeout=60' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"url":"https://example.com","viewport":{"width":1280,"height":800},"respond_with":"markdown"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/litescrape.web.fetch.post?timeout=60",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"url\":\"https://example.com\",\"viewport\":{\"width\":1280,\"height\":800},\"respond_with\":\"markdown\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.web.fetch.post?timeout=60", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"url\":\"https://example.com\",\"viewport\":{\"width\":1280,\"height\":800},\"respond_with\":\"markdown\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());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.