import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.crawl.get('job-id', {
page: 0,
batchSize: 10
});{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"error": "<string>",
"totalPages": 1,
"totalPageBatches": 1,
"currentPageBatch": 1,
"batchSize": 2,
"data": [
{
"url": "<string>",
"status": "completed",
"error": "<string>",
"metadata": {},
"markdown": "<string>",
"html": "<string>",
"links": [
"<string>"
],
"screenshot": "<string>",
"json": {}
}
]
}Retrieves the status and results of a web crawl job. Results are paginated.
import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.crawl.get('job-id', {
page: 0,
batchSize: 10
});{
"jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"error": "<string>",
"totalPages": 1,
"totalPageBatches": 1,
"currentPageBatch": 1,
"batchSize": 2,
"data": [
{
"url": "<string>",
"status": "completed",
"error": "<string>",
"metadata": {},
"markdown": "<string>",
"html": "<string>",
"links": [
"<string>"
],
"screenshot": "<string>",
"json": {}
}
]
}Web crawl job details retrieved successfully
pending, running, completed, failed, stopped x >= 0x >= 0x >= 0x >= 1Show child attributes
Was this page helpful?