1. Image Recognition
API Documents - GuGuData | Production-Ready APIs Built for Developers
  • GuGuData API documents
  • Metadata
    • DEMO
      • Get demo programme data for a global university
      • [DEMO] Chinese Poem
      • [DEMO] Stock HK Symbols
      • Get demo data for global university ranking
      • [DEMO] Global University
      • [DEMO] Global QS World University Rankings
      • [DEMO] US CIP Codes
      • [DEMO] US College Institutions Data API
      • [DEMO] US College Programs Data API
      • [DEMO] Stock US Symbols
    • Chinese Poem
      GET
    • Stock HK Symbols
      GET
    • Stock US Symbols
      GET
    • Global University
      GET
    • Get programme data for a global university
      GET
    • US College Institution Detail
      GET
    • Get global university ranking data
      GET
    • US College Institution Programs
      GET
    • Global QS World University Rankings
      GET
    • Chinese Poem
      GET
    • US CIP Codes Search
      GET
    • Get a hosted global university logo
      GET
    • US College Institutions Search
      GET
    • Get US college institution details
      GET
    • Get programs for a US college institution
      GET
    • US College Programs Search
      GET
  • Website Tools
    • DEMO
      • [DEMO] Article Content Extraction API
      • [DEMO] Extract Images from Article URL API
      • [DEMO] Article Extract
      • [DEMO] Domain DNS Information Query
      • [DEMO] Geographic Coordinate System Converter
      • [DEMO] IP Address
      • [DEMO] PageSpeed and SEO Score API
      • [DEMO] Format International Phone
      • [DEMO] Webpage Readable Content Extraction
      • [DEMO] Search Visibility API
      • [DEMO] Short Link API
      • [DEMO] Domain SSL Certificate Information Parsing
      • [DEMO] Extract Structured JSON from Webpage
      • [DEMO] Website Snapshot
      • [DEMO] Get URL links
      • [DEMO] URL to static HTML
      • [DEMO] URL to Image
      • [DEMO] URL to Markdown
      • [DEMO] Query Website Favicon and Title
      • [DEMO] Domain Whois
    • Geographic Coordinate System Converter
    • Article Content Extraction API
    • Extract Images from Article URL API
    • Article Extract
    • extractFromHtml
    • Domain DNS Information Query
    • IP Address
    • PageSpeed and SEO Score API
    • Score webpage performance and SEO signals
    • Format International Phone
    • Format International Phone
    • Webpage Readable Content Extraction
    • Search Visibility API
    • Short Link API
    • Get short link
    • Update short link
    • Redirect short link
    • Domain SSL Certificate Information Parsing
    • Extract Structured JSON from Webpage
    • Website Snapshot
    • Get URL links
    • URL to static HTML
    • URL to Image
    • Convert Webpage to Image
    • URL to Markdown
    • Query Website Favicon and Title
    • Domain Whois
  • Image Recognition
    • DEMO
      • [DEMO] Convert HTML to Word
      • [DEMO] Image Compress
      • [DEMO] Image OCR
      • [DEMO] Image OCR to Word API
      • [DEMO] HTML to PDF
      • [DEMO] Markdown to PDF
      • [DEMO] OCR API
      • [DEMO] PDF Splitting
      • [DEMO] PDF Summary
      • [DEMO] PDF to Format
      • [DEMO] PDF to HTML
      • [DEMO] PDF OCR to Text API
      • [DEMO] PDF OCR to Word API
      • [DEMO] PPT to Images
      • [DEMO] Convert PPT to PDF
      • [DEMO] Word to HTML
    • Convert HTML to Word
      POST
    • Image Compress
      POST
    • Image OCR
      POST
    • Image OCR to Word API
      POST
    • HTML to PDF
      POST
    • Markdown to PDF
      POST
    • PDF Splitting
      POST
    • OCR API
      POST
    • PDF Summary
      POST
    • PDF to Format
      POST
    • PDF to HTML
      POST
    • PDF OCR to Text API
      POST
    • PDF OCR to Word API
      POST
    • PPT to Images
      POST
    • Convert PPT to PDF
      POST
    • Word to HTML
      POST
  • QRcode and Barcode
    • DEMO
      • [DEMO] Bar Code
      • [DEMO] Decode QR Code from Image
      • [DEMO] QR Code
      • [DEMO] Wifi QR Code
    • Bar Code
    • Decode QR Code from Image
    • QR Code
    • Wifi QR Code
  • Text Tools
    • DEMO
      • [DEMO] ISBN Book Metadata Lookup
      • [DEMO] Detect Text Language
      • [DEMO] Simplified and Traditional Chinese Converter
      • [DEMO] Text Similarity Calculator
    • Simplified and Traditional Chinese Converter
    • ISBN Book Metadata Lookup
    • Detect Text Language
    • Simplified and Traditional Chinese Converter
    • Text Similarity Calculator
  • healthcheck
    GET
  • Schemas
    • BarcodeRequest
    • CertificateInfoDTO
    • Chinese Script Conversion Request
    • Comparator«string»
    • CreateShortLinkRequest
    • DetectLanguageRequest
    • Education Response Metadata
    • Global University Programmes Response
    • Global University Ranking Response
    • Global University Response
    • HK Stock Symbol
    • HK Stock Symbols Response
    • IPLocationResponse
    • JSONConfig
    • PageSpeedScoreRequest
    • QRCodeRequest
    • Response Metadata
    • SearchVisibilityMatch
    • SearchVisibilityMetrics
    • SearchVisibilityObservedItem
    • SearchVisibilityRequest
    • SearchVisibilityResponse
    • SearchVisibilitySearchMetadata
    • ShortLinkResponse
    • Text Similarity Request
    • US CIP Code Data
    • US CIP Code Response
    • US College Institution Data
    • US College Institution Response
    • US College Program Data
    • US College Program Response
    • US Stock Symbol
    • US Stock Symbols Response
    • University Data
    • University Programme Data
    • UpdateShortLinkRequest
    • Url2JsonRequestDTO
    • UrlSnapshotRequest
    • UrlSnapshotResponse
    • WebPageRequestDTO
    • WebPageToImageRequestDTO
    • WebSiteFaviconDTO
    • WhoisEntityDTO
    • WifiQRCodeRequest
  1. Image Recognition

Image OCR

POST
https://api.gugudata.io/v1/imagerecognition/ocr
Image Recognition
Last modified:2026-07-29 05:16:01

Image OCR Extraction
Run OCR on an uploaded image stream and return the extracted text content.

Method: POST
Path: /v1/imagerecognition/ocr
Demo: https://api.gugudata.io/v1/imagerecognition/ocr/demo
OpenAPI: https://gugudata.io/assets/openapi/gugudata.openapi.3.1.json

Request Parameters:

  • appkey (string, required): Application key used for request authentication. Supply the value as a query parameter, form field, or multipart field according to the request content type.
  • imagefile (file, required): Image file uploaded as multipart form data.

Response Fields:

  • DataStatus.statusCode (integer, required): Application-level status code returned by the current v1 contract.
  • DataStatus.statusDescription (string, required): Application-level status message returned by the current v1 contract.
  • DataStatus.responseDateTime (string, required): Response timestamp returned by the current service contract.
  • DataStatus.dataTotalCount (integer, required): Total number of records that match the request.
  • Data.resultText (array, required): Array of recognized text, each line of recognized text corresponds to each element of the array

HTTP Status Codes:

  • 200: Request processed successfully. Some endpoints expose a separate application-level status field in the response body, such as dataStatus.statusCode.
  • 400: Invalid request parameters or request format. Check required fields, data types, and request body format.
  • 401: Missing or unknown application key. Provide a valid appkey with the request.
  • 403: The application key is recognized but access is not allowed. The key may be expired, inactive, or not permitted for the requested API.
  • 429: Request rate or trial usage limit exceeded. Reduce concurrency or retry after the limit window resets.
  • 500: Internal service error. Retry later or contact support if the error persists.
  • 503: Upstream service unavailable. Retry later; the requested upstream dependency is temporarily unavailable.

Business Status Codes:

  • 100 Normal response: No additional remark.
  • 101 Parameter error: No additional remark.
  • 102 Request rate limited: Requests cannot exceed 100 per second
  • 103 Account overdue: No additional remark.
  • 104 Invalid APPKEY: Please check if the passed APPKEY is obtained from the developer center
  • 110 API response error: No additional remark.

Key Features:

  • General recognition API, supports multiple image formats.
  • Supports mixed recognition of English and other characters.
  • Form-data format image file stream parameter.
  • Continuously improving recognition accuracy based on machine learning.
  • Fully supports HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3).
  • Fully compatible with Apple ATS.
  • Nationwide multi-node CDN deployment.
  • Rapid API response, load balancing across multiple servers.

Details:
https://gugudata.io/details/imagestreamocr

Request

Query Params

Body Params multipart/form-dataRequired

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.gugudata.io/v1/imagerecognition/ocr?appkey=' \
--form 'imagefile=@""'

Responses

🟢200成功
*/*
OK
Body*/*

Example
{}
🟢201
🟠401
🟠403
🟠404
Modified at 2026-07-29 05:16:01
Previous
Image Compress
Next
Image OCR to Word API
Built with