import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.fetch({
url: 'https://example.com',
outputs: {
formats: ['markdown', 'screenshot']
}
});{
"jobId": "<string>",
"status": "completed",
"error": "<string>",
"data": {
"metadata": {},
"html": "<string>",
"markdown": "<string>",
"links": [
"<string>"
],
"screenshot": "<string>",
"json": {}
}
}Fetches a web page and returns the content in various formats (HTML, Markdown, JSON, screenshot, etc.)
import { Hyperbrowser } from '@hyperbrowser/sdk';
const client = new Hyperbrowser({ apiKey: 'your-api-key' });
const response = await client.web.fetch({
url: 'https://example.com',
outputs: {
formats: ['markdown', 'screenshot']
}
});{
"jobId": "<string>",
"status": "completed",
"error": "<string>",
"data": {
"metadata": {},
"html": "<string>",
"markdown": "<string>",
"links": [
"<string>"
],
"screenshot": "<string>",
"json": {}
}
}Was this page helpful?