ocr_url
Extract text from a publicly accessible image or PDF using OCR.space API. Convert scanned documents into editable text.
Instructions
Extract text from an image or PDF at a URL using OCR.space API. The URL must be publicly accessible. Free tier: max 1 MB. PRO tier: max 5 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the image or PDF to OCR | |
| tier | No | API tier: 'free' (1MB limit, US servers) or 'pro' (5MB limit, EU/GDPR) | free |
| scale | No | Upscale low-resolution images | |
| is_table | No | Optimize for tables | |
| language | No | OCR language code (e.g., 'eng', 'ger', 'fre'). Use 'auto' with Engine 2. | eng |
| ocr_engine | No | Engine 1: Faster, Asian languages. Engine 2: Auto-detect, better accuracy. | |
| output_path | No | Optional path to save extracted text (.txt) or full result (.json) | |
| output_format | No | Output format: 'txt' (text only) or 'json' (full API response) | txt |
| detect_orientation | No | Auto-rotate image |