Start Crawl
Start a website crawl from a seed URL with configurable depth and page limits.
Dynamic pricing
0.01 + ((includesField(body.formats, 'type', 'markdown') ? 0.005 : 0) + (includesField(body.formats, 'type', 'html') ? 0.005 : 0) + (includesField(body.formats, 'type', 'links') ? 0.005 : 0) + (includesField(body.formats, 'type', 'images') ? 0.005 : 0) + (includesField(body.formats, 'type', 'summary') ? 0.005 : 0) + (includesField(body.formats, 'type', 'screenshot') ? 0.01 : 0) + (includesField(body.formats, 'type', 'json') ? 0.025 : 0) + (includesField(body.formats, 'type', 'branding') ? 0.125 : 0) + (get(body, 'fetchConfig.stealth', 0) ? 0.025 : 0)) * (body.maxPages ? body.maxPages : 50)
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "scrapegraphai",
path: "/api/crawl",
body: {
"url": "example"
}
});
console.log(output);Body parameters
Seed URL to crawl
Output formats
Max crawl depth (default 2)
Max pages (1-1000, default 50)
Max links per page (default 10)
Follow external links (default false)
URL patterns to include
URL patterns to exclude
Allowed content types
Fetch options
Response