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": {},
"branding": {
"colorScheme": "<string>",
"colors": {},
"fonts": [
{
"family": "<string>",
"role": "<string>"
}
],
"typography": {},
"spacing": {},
"components": {},
"images": {},
"personality": {},
"designSystem": {},
"confidence": {}
}
}
}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": {},
"branding": {
"colorScheme": "<string>",
"colors": {},
"fonts": [
{
"family": "<string>",
"role": "<string>"
}
],
"typography": {},
"spacing": {},
"components": {},
"images": {},
"personality": {},
"designSystem": {},
"confidence": {}
}
}
}Documentation Index
Fetch the complete documentation index at: https://hyperbrowser.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?