import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.crawl.start({
url: 'https://example.com',
outputs: {
formats: ['markdown']
},
crawlOptions: {
maxPages: 10,
followLinks: true
}
});{
"jobId": "<string>"
}Starts an asynchronous crawl job that follows links from a starting URL and returns content from each page in the specified formats.
import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.crawl.start({
url: 'https://example.com',
outputs: {
formats: ['markdown']
},
crawlOptions: {
maxPages: 10,
followLinks: true
}
});{
"jobId": "<string>"
}Crawl job started successfully
Was this page helpful?