Extract Text
extract_textExtract text from an image or PDF via OCR — pass an image/PDF URL, get the recognized text. Useful for reading screenshots, scanned documents, receipts, signs. Engine 2 is best for most cases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | OCR engine to use: 1, 2, or 3 (default 2). Engine 2 is best for most cases. | |
| _apiKey | No | Optional — your own OCR.space API key for higher limits; omit to use the shared Pipeworx key. | |
| filetype | No | Force the file type instead of letting OCR.space infer it: 'PDF', 'GIF', 'PNG', 'JPG', 'TIF', 'BMP' or 'WEBP'. Inferred from the URL's extension when omitted. Supply it when the URL has no extension (a signed link, a redirect, an API endpoint) — without it OCR.space refuses with E216 rather than guessing. | |
| is_table | No | Set true to improve layout detection for tables/receipts (default false). | |
| language | No | Language code for OCR (default 'eng'). Examples: 'eng', 'fre', 'ger', 'spa'. | |
| image_url | Yes | URL of an image or PDF to run OCR on. |