Skip to content

Document HTML API

Get the complete HTML content of documents from the Vysion database. This endpoint provides the full HTML content, unlike the regular document endpoints which return only HTML chunks.

Retrieve the complete HTML content of a specific document by its unique identifier.

GET/api/v2/html/{id}
NameTypeRequiredDescription
idstringYesDocument ID
Terminal window
curl "https://api.vysion.ai/api/v2/html/62bdc0968e4892b70411895c" \
--header 'Accept: application/json' \
--header 'x-api-key: YOUR_API_KEY'

The endpoint returns the complete HTML content as a string:

"<!DOCTYPE html><html><head><title>Sample Page</title></head><body><h1>Welcome</h1><p>This is the complete HTML content of the document...</p></body></html>"
  • Full Page Analysis: Get complete HTML structure for comprehensive analysis
  • Content Extraction: Extract specific elements from the full document
  • Archival: Store complete page content for historical reference
  • Research: Analyze complete page structure and embedded elements
StatusMeaningDescription
200OKSuccessful response with HTML content
401UnauthorizedInvalid or missing API key
404Not FoundDocument with specified ID not found
422Unprocessable EntityValidation error
429Too Many RequestsRate limit exceeded
{
"error": {
"code": 404,
"message": "Document not found"
}
}
{
"error": {
"code": 422,
"message": "Invalid document ID format"
}
}