> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OCR.space

> OCR.space provides a free and paid OCR API for extracting text from images and PDFs, returning results in JSON format.

![OCR.space logo](https://mintcdn.com/composio-preview/gqjBKmmJCINafaiK/images/toolkits/ocrspace.svg?fit=max\&auto=format\&n=gqjBKmmJCINafaiK\&q=85\&s=562cc2d480db4a25b7ae0a49aadcea29)

* **Category:** documents & ocr
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 3
* **Triggers:** 0
* **Slug:** `OCRSPACE`
* **Version:** 20261101\_00

## Tools

> [accordion] Get Conversion Statistics
>
> **Slug:** `OCRSPACE_GET_CONVERSIONS`
>
> Retrieve OCR API conversion statistics for PRO and PRO PDF accounts, including Engine 1, Engine 2, and total conversions. Data is updated daily; request either the current month through yesterday or last month's conversions.
>
> #### Input Parameters
>
> **startDate** `string ("lastMonth")`
>
> Start date option for conversion statistics. Case-sensitive.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Extract Text from Image/PDF (OCR)
>
> **Slug:** `OCRSPACE_OCR_PARSE_IMAGE_POST`
>
> Extract text from images and PDFs supplied as a file, public URL, or base64 data URI. Supports table recognition, orientation detection, optional overlay coordinates, and searchable PDF generation; extracted text appears in the parsed results.
>
> #### Input Parameters
>
> **url** `string`
>
> Publicly accessible URL of the image or PDF file. IMPORTANT: Must also set 'filetype' parameter (e.g., 'PNG', 'JPG', 'PDF') when using this option.
>
> **file** `string`
>
> Binary content of image or PDF file for upload (multipart/form-data). Supports JPG, PNG, GIF, PDF, BMP, TIF formats.
>
> **scale** `boolean`
>
> If True, automatically upscales low-resolution images before OCR processing to improve text recognition accuracy.
>
> **isTable** `boolean`
>
> If True, optimizes OCR for table/structured data recognition. Recommended for receipts, invoices, and tabular documents.
>
> **filetype** `string`
>
> File format specification. REQUIRED when using 'url' or 'base64Image' parameters. Valid values: 'PDF', 'GIF', 'PNG', 'JPG', 'TIF', 'BMP'. Not needed for 'file' parameter.
>
> **language** `string ("ara" | "bul" | "chs" | "cht" | "hrv" | "cze" | "dan" | "dut" | "eng" | "fin" | "fre" | "ger" | "gre" | "hun" | "kor" | "ita" | "jpn" | "pol" | "por" | "rus" | "slv" | "spa" | "swe" | "tha" | "tur" | "ukr" | "vnm")`
>
> OCR language code: ara=Arabic, bul=Bulgarian, chs=Chinese Simplified, cht=Chinese Traditional, hrv=Croatian, cze=Czech, dan=Danish, dut=Dutch, eng=English, fin=Finnish, fre=French, ger=German, gre=Greek, hun=Hungarian, kor=Korean, ita=Italian, jpn=Japanese, pol=Polish, por=Portuguese, rus=Russian, slv=Slovenian, spa=Spanish, swe=Swedish, tha=Thai, tur=Turkish, ukr=Ukrainian, vnm=Vietnamese
>
> **OCREngine** `integer ("1" | "2")`
>
> OCR processing engine selection. 1=Standard engine (default, reliable), 2=Experimental engine (may have better accuracy for some documents)
>
> **base64Image** `string`
>
> Base64-encoded image as a data URI string. Format: 'data:image/\[format];base64,\[encoded-data]'. IMPORTANT: Must also set 'filetype' parameter when using this option.
>
> **detectOrientation** `boolean`
>
> If True, automatically detects and corrects text orientation (rotation). Returns detected orientation angle in TextOrientation field.
>
> **isOverlayRequired** `boolean`
>
> If True, returns word-level bounding box coordinates (Left, Top, Height, Width) for each detected word. Useful for document layout analysis.
>
> **isCreateSearchablePdf** `boolean`
>
> If True, generates a searchable PDF with an invisible text layer overlay. Returns PDF URL in SearchablePDFURL field.
>
> **isSearchablePdfHideTextLayer** `boolean`
>
> If True (and isCreateSearchablePdf=True), hides the text layer in the generated searchable PDF. The text is still searchable but not visible.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Extract Text from Image URL (GET)
>
> **Slug:** `OCRSPACE_PARSE_IMAGE_URL`
>
> Extract text from images via URL using simplified GET endpoint. Only supports URL-based submissions - no file uploads or base64 encoding. Faster and simpler than POST endpoint for basic use cases.
>
> #### Input Parameters
>
> **url** `string` *required*
>
> Publicly accessible URL of the image or PDF file to OCR. Must be a valid HTTP/HTTPS URL.
>
> **language** `string ("ara" | "bul" | "chs" | "cht" | "hrv" | "cze" | "dan" | "dut" | "eng" | "fin" | "fre" | "ger" | "gre" | "hun" | "kor" | "ita" | "jpn" | "pol" | "por" | "rus" | "slv" | "spa" | "swe" | "tha" | "tur" | "ukr" | "vnm")`
>
> OCR language code: ara=Arabic, bul=Bulgarian, chs=Chinese Simplified, cht=Chinese Traditional, hrv=Croatian, cze=Czech, dan=Danish, dut=Dutch, eng=English, fin=Finnish, fre=French, ger=German, gre=Greek, hun=Hungarian, kor=Korean, ita=Italian, jpn=Japanese, pol=Polish, por=Portuguese, rus=Russian, slv=Slovenian, spa=Spanish, swe=Swedish, tha=Thai, tur=Turkish, ukr=Ukrainian, vnm=Vietnamese
>
> **isOverlayRequired** `boolean`
>
> If True, returns word-level bounding box coordinates (Left, Top, Height, Width) for each detected word. Useful for document layout analysis.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
