Get exact bounding box coordinates for every extracted field. Perfect for verification, highlighting, or building interactive document overlays in your applications. No guesswork - just pixel-perfect accuracy.
// Extract with coordinate proof using query collection
const formData = new FormData();
formData.append('document', contractFile);
formData.append('processor_id', 'query-collection-uuid');
const response = await fetch('/api/ask/batch', {
method: 'POST',
headers: { 'X-API-Key': 'your-api-key' },
body: formData
});
const job = await response.json();
const statusResponse = await fetch(`/api/jobs/${job.id}`, {
headers: { 'X-API-Key': 'your-api-key' }
});
const document = await statusResponse.json();
// Get field with precise coordinates
const totalField = document.data.find(f => f.field_name === 'contract_total');
// Exact bounding box coordinates
console.log('Value:', totalField.value); // "$60,000"
console.log('Exact location:', totalField.geometry[0].bbox); // [450, 500, 550, 500, 550, 520, 450, 520] - array of 8 floats representing 4 points
console.log('Page dimensions:', document.page_metadata["1"].dimensions);
console.log('Confidence:', totalField.confidence); // 0.98
Exact bounding box coordinates (array of 8 floats representing 4 points) for every extracted field
Visual proof of extraction accuracy with exact source locations
Build highlighting and annotation features using coordinate data
Interactive demo coming soon...
Build interactive document experiences
Use exact coordinates to create verification tools, highlighting features, and interactive overlays that your users will love.
Audit extraction accuracy by highlighting exact source locations in documents
Example applications:
Show where totals were found
Verify vendor information
Build document viewers with automatic field highlighting and annotations
Example applications:
Highlight extracted fields
Show confidence levels visually
Add interactive annotations and notes to document fields
Example applications:
Add review comments
Mark fields for approval
Feed coordinate data to downstream systems for advanced processing
Example applications:
Connect to ERP systems
Build custom dashboards
Why pixel-perfect coordinates beat guesswork
Replace manual positioning and approximation with exact, verifiable coordinate data
Unique: Exact bounding box coordinates (array of 8 floats representing 4 points) + confidence scores for every extracted field
NinjadocAI | Template OCR | Generic LLM/AI API | |
---|---|---|---|
❓Natural Language Questions | ~ | ||
📍Answer + Coordinate Proof | ~ | ||
⚡5-Minute Integration | ~ | ||
💲Transparent Pricing | ~ | ||
🔧TypeScript SDK + React Components | |||
🧠Context Understanding | ~ | ||
🎯Zero Configuration Required | ~ | ||
📐Handles Document Layout Variations | ~ | ||
🔌Developer-Friendly REST API | ~ |
Pixel-perfect precision delivered
"The coordinate precision is exactly what we needed for our document verification system. Every bounding box is pixel-perfect."
David Lee
Software Engineer
"Building interactive overlays was so much easier with exact coordinates. No more guesswork or manual positioning."
Anna Martinez
Product Manager
Everything you need to know
Coordinates are provided as array of 8 floats representing 4 points relative to the page dimensions. Each coordinate includes confidence scores and the extracted text.
Our coordinate precision provides pixel-perfect bounding boxes with high accuracy, making them ideal for verification, highlighting, and interactive overlays.
Yes, the coordinates are perfect for building highlighting features, annotations, and interactive document viewers in your applications.
Coordinate precision is available as an add-on to all our extraction APIs. Simply include 'include_coordinates': true in your request.
Coordinates allow you to visually verify extractions by showing exactly where in the document the information was found, eliminating uncertainty.
Absolutely! The coordinate data works perfectly for mobile document viewers and interactive overlays on any platform.
Complete your document intelligence toolkit