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}
Name Type Required Description
id string Yes Document 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
Status Meaning Description
200 OK Successful response with HTML content
401 Unauthorized Invalid or missing API key
404 Not Found Document with specified ID not found
422 Unprocessable Entity Validation error
429 Too Many Requests Rate limit exceeded
{
"error": {
"code": 404,
"message": "Document not found"
}
}
{
"error": {
"code": 422,
"message": "Invalid document ID format"
}
}