Crawl one web page asynchronously
scrapegraphai.web.crawlStart a bounded one-page Markdown crawl and return its job id.
- Price
- $0.012/successAl precio del proveedor
- Success rate
- 100 %Last 30 days · 12 calls
- Latency p50
- 297 msp95 655 ms
- Last verified
- 24 sept 2026Verified working
POSThttps://toolswitch.dev/v1/tools/scrapegraphai.web.crawlPreviewTry onlinePróximamenteProvider docs ↗
- Uses platform quota
- Asynchronous response
- Reads public data
Parámetros
The shared-key route is deliberately fixed to one Markdown page: two startup credits plus one page credit. Larger, multi-format and proxied crawls remain available through a raw BYOK tool.
Esta herramienta no tiene parámetros. Consulta la documentación del proveedor ↗ Provider docs
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/scrapegraphai.web.crawl' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"url":"https://example.com","formats":[{"type":"markdown"}],"maxDepth":0,"maxPages":1,"maxLinksPerPage":1}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/scrapegraphai.web.crawl",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"url\":\"https://example.com\",\"formats\":[{\"type\":\"markdown\"}],\"maxDepth\":0,\"maxPages\":1,\"maxLinksPerPage\":1}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapegraphai.web.crawl", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"url\":\"https://example.com\",\"formats\":[{\"type\":\"markdown\"}],\"maxDepth\":0,\"maxPages\":1,\"maxLinksPerPage\":1}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());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.012/success, incluida la tarifa de servicio.