Skip to main content
OCR.space logo
  • Category: documents & ocr
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 3
  • Triggers: 0
  • Slug: OCRSPACE
  • Version: 20261101_00

Tools

Slug: OCRSPACE_GET_CONVERSIONSRetrieve 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

string ("lastMonth")
Start date option for conversion statistics. Case-sensitive.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OCRSPACE_OCR_PARSE_IMAGE_POSTExtract 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

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.
string
Binary content of image or PDF file for upload (multipart/form-data). Supports JPG, PNG, GIF, PDF, BMP, TIF formats.
boolean
If True, automatically upscales low-resolution images before OCR processing to improve text recognition accuracy.
boolean
If True, optimizes OCR for table/structured data recognition. Recommended for receipts, invoices, and tabular documents.
string
File format specification. REQUIRED when using ‘url’ or ‘base64Image’ parameters. Valid values: ‘PDF’, ‘GIF’, ‘PNG’, ‘JPG’, ‘TIF’, ‘BMP’. Not needed for ‘file’ parameter.
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
integer ("1" | "2")
OCR processing engine selection. 1=Standard engine (default, reliable), 2=Experimental engine (may have better accuracy for some documents)
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.
boolean
If True, automatically detects and corrects text orientation (rotation). Returns detected orientation angle in TextOrientation field.
boolean
If True, returns word-level bounding box coordinates (Left, Top, Height, Width) for each detected word. Useful for document layout analysis.
boolean
If True, generates a searchable PDF with an invisible text layer overlay. Returns PDF URL in SearchablePDFURL field.
boolean
If True (and isCreateSearchablePdf=True), hides the text layer in the generated searchable PDF. The text is still searchable but not visible.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: OCRSPACE_PARSE_IMAGE_URLExtract 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

string
required
Publicly accessible URL of the image or PDF file to OCR. Must be a valid HTTP/HTTPS URL.
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
boolean
If True, returns word-level bounding box coordinates (Left, Top, Height, Width) for each detected word. Useful for document layout analysis.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not