Artifacts
Capture screenshots, generate PDFs, and extract page content.
Capture proof for reports, downstream jobs, reviews, or customers.
Use screenshots for pixels, PDFs for pages, content for text or HTML.
Save artifact ids with your job records so metadata and content can be fetched later.
Output Boundary
Use screenshots for visual proof and failed-run review, PDFs for document pages such as invoices or reports, and content extraction when downstream systems need text or HTML. For every artifact, persist the artifact id with your job record so metadata and content can be retrieved later.
Capture Screenshot
POST/v1/screenshotShow endpoint detailsHide endpoint details
/v1/screenshotAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Request Body
application/jsonRequiredsessionIdRequiredstringSession to capture
1fullPagebooleanCapture the full scrollable page
falseformatstringImage output format
"png"Value in: "png" | "jpeg"qualityintegerJPEG quality (1-100, only applies to jpeg format)
1Maximum: 100curl -X POST "https://api.hivebrowser.ai/v1/screenshot" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "fullPage": false, "format": "png", "quality": 1 }'fetch("https://api.hivebrowser.ai/v1/screenshot", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "sessionId": "string", "fullPage": false, "format": "png", "quality": 1 })});Screenshot captured
Response example
{
"data": {
"id": "string",
"teamId": "string",
"sessionId": "string",
"type": "SCREENSHOT",
"storageKey": "string",
"contentType": "string",
"sizeBytes": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"downloadUrl": "http://example.com"
}
}Invalid request payload
Response example
{
"error": "string",
"message": "string"
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Capture PDF
POST/v1/pdfShow endpoint detailsHide endpoint details
/v1/pdfAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Request Body
application/jsonRequiredsessionIdRequiredstringSession to capture
1formatstringPaper format (e.g., A4, Letter)
"A4"landscapebooleanUse landscape orientation
falseprintBackgroundbooleanPrint background graphics
truecurl -X POST "https://api.hivebrowser.ai/v1/pdf" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "format": "A4", "landscape": false, "printBackground": true }'fetch("https://api.hivebrowser.ai/v1/pdf", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "sessionId": "string", "format": "A4", "landscape": false, "printBackground": true })});PDF captured
Response example
{
"data": {
"id": "string",
"teamId": "string",
"sessionId": "string",
"type": "SCREENSHOT",
"storageKey": "string",
"contentType": "string",
"sizeBytes": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"downloadUrl": "http://example.com"
}
}Invalid request payload
Response example
{
"error": "string",
"message": "string"
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Extract Page Content
POST/v1/contentShow endpoint detailsHide endpoint details
/v1/contentAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Request Body
application/jsonRequiredsessionIdRequiredstringSession to extract content from
1includeHtmlbooleanInclude raw HTML in the response
trueincludeTextbooleanInclude extracted text in the response
truecurl -X POST "https://api.hivebrowser.ai/v1/content" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "sessionId": "string", "includeHtml": true, "includeText": true }'fetch("https://api.hivebrowser.ai/v1/content", { headers: { "Authorization": "Bearer <token>" }, body: JSON.stringify({ "sessionId": "string", "includeHtml": true, "includeText": true })});Content extracted
Response example
{
"data": {
"artifact": {
"id": "string",
"teamId": "string",
"sessionId": "string",
"type": "SCREENSHOT",
"storageKey": "string",
"contentType": "string",
"sizeBytes": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"downloadUrl": "http://example.com"
},
"content": {
"url": "string",
"title": "string",
"html": "string",
"text": "string"
}
}
}Invalid request payload
Response example
{
"error": "string",
"message": "string"
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Get Artifact Metadata
GET/v1/artifacts/{id}Show endpoint detailsHide endpoint details
/v1/artifacts/{id}Authorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringArtifact ID
curl -X GET "https://api.hivebrowser.ai/v1/artifacts/string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/artifacts/string", { headers: { "Authorization": "Bearer <token>" }});Artifact metadata
Response example
{
"data": {
"id": "string",
"teamId": "string",
"sessionId": "string",
"type": "SCREENSHOT",
"storageKey": "string",
"contentType": "string",
"sizeBytes": "string",
"metadata": {
"property1": null,
"property2": null
},
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"downloadUrl": "http://example.com"
}
}Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}Download Artifact Content
GET/v1/artifacts/{id}/contentShow endpoint detailsHide endpoint details
/v1/artifacts/{id}/contentAuthorization
AuthorizationRequiredBearer <token>API key passed as a Bearer token in the Authorization header.
In: header
x-hivebrowser-api-key<token>API key passed directly in the x-hivebrowser-api-key header.
In: header
Path Parameters
idRequiredstringArtifact ID
Query Parameters
tokenstringArtifact access token for unauthenticated download
curl -X GET "https://api.hivebrowser.ai/v1/artifacts/string/content?token=string" \ -H "Authorization: Bearer <token>"fetch("https://api.hivebrowser.ai/v1/artifacts/string/content?token=string", { headers: { "Authorization": "Bearer <token>" }});Artifact content (content-type varies by artifact type)
Response example
"string"Missing or invalid API key
Response example
{
"error": "string",
"message": "string"
}Resource not found
Response example
{
"error": "string",
"message": "string"
}