Copyable requests
curl
curl -F "file=@scan.png" https://agentmediatools.com/api/ocrOCR Extraction API
Extract text from uploaded images and PDFs with Tesseract, pdftotext, or pdf-parse. Returns text, engine, word count, and character count through REST and MCP.
Working examples
Upload a scan or PDF, or provide a public URL. The local extraction pipeline returns plain text and document counts as JSON.
curl -F "file=@scan.png" https://agentmediatools.com/api/ocr{"success":true,"text":"Invoice 1042","engine":"tesseract","word_count":2,"char_count":12}Download URLs are temporary. Save results to your own storage when the workflow needs durable retention.
PDFs use pdftotext or pdf-parse; images use the server Tesseract installation.
The JSON response includes extracted text, engine, word count, and character count.
Image OCR requires Tesseract on the server; PDF text extraction has separate local fallbacks.
One tool now, one integration later
The same Agent Media Tools account connects this operation to the wider Tool API and MCP catalog.