1. QRcode and Barcode
API Documents - GuGuData | Production-Ready APIs Built for Developers
  • GuGuData API documents
  • Metadata
    • DEMO
      • [DEMO] Global QS World University Rankings
      • [DEMO] Global University
      • [DEMO] Chinese Poem
      • [DEMO] Global QS World University Rankings
      • [DEMO] Stock US Symbols
      • [DEMO] Stock HK Symbols
    • Global QS World University Rankings
      GET
    • Global University
      GET
    • Chinese Poem
      GET
    • Global QS World University Rankings
      GET
    • Stock US Symbols
      GET
    • Stock HK Symbols
      GET
  • Website Tools
    • DEMO
      • [DEMO] Webpage Readable Content Extraction
      • [DEMO] Domain SSL Certificate Information Parsing
      • [DEMO] Domain DNS Information Query
      • [DEMO] Query Website Favicon and Title
      • [DEMO] Format International Phone
      • [DEMO] URL to static HTML
      • [DEMO] URL to Image
      • [DEMO] URL to Markdown
      • [DEMO] Get URL links
      • [DEMO] Website Snapshot
      • [DEMO] Domain Whois
      • [DEMO] IP Address
      • [DEMO] Article Extract
      • [DEMO] Geographic Coordinate System Converter
      • [DEMO] Extract Structured JSON from Webpage
      • [DEMO] Short Link API
    • Webpage Readable Content Extraction
      POST
    • Domain SSL Certificate Information Parsing
      GET
    • Domain DNS Information Query
      GET
    • Query Website Favicon and Title
      GET
    • Format International Phone
      GET
    • URL to static HTML
      POST
    • URL to Image
      GET
    • URL to Markdown
      POST
    • Get URL links
      GET
    • Website Snapshot
      POST
    • Domain Whois
      GET
    • IP Address
      GET
    • Article Extract
      POST
    • Geographic Coordinate System Converter
      GET
    • Extract Structured JSON from Webpage
      POST
    • Short Link API
      POST
  • Image Recognition
    • DEMO
      • [DEMO] HTML to PDF
      • [DEMO] Image OCR
      • [DEMO] PDF to Format
      • [DEMO] PDF Splitting
      • [DEMO] Markdown to PDF
      • [DEMO] PPT to Images
      • [DEMO] PDF to HTML
      • [DEMO] PDF Summary
      • [DEMO] Image Compress
      • [DEMO] Word to HTML
      • [DEMO] Convert HTML to Word
      • [DEMO] Convert PPT to PDF
    • HTML to PDF
    • Image OCR
    • PDF to Format
    • PDF Splitting
    • Markdown to PDF
    • PPT to Images
    • PDF to HTML
    • PDF Summary
    • Image Compress
    • Word to HTML
    • Convert HTML to Word
    • Convert PPT to PDF
  • QRcode and Barcode
    • DEMO
      • [DEMO] QR Code
      • [DEMO] Wifi QR Code
      • [DEMO] Bar Code
      • [DEMO] Decode QR Code from Image
    • QR Code
      POST
    • Wifi QR Code
      POST
    • Bar Code
      POST
    • Decode QR Code from Image
      POST
  • Text Tools
    • DEMO
      • [DEMO] Simplified and Traditional Chinese Converter
      • [DEMO] Text Similarity Calculator
      • [DEMO] Detect Text Language
      • [DEMO] ISBN Book Metadata Lookup
    • Simplified and Traditional Chinese Converter
    • Text Similarity Calculator
    • Detect Text Language
    • ISBN Book Metadata Lookup
  • healthcheck
    GET
  1. QRcode and Barcode

Bar Code

POST
https://api.gugudata.io/v1/barcode
Last modified:2026-05-14 10:39:32
General Barcode Generation
Generate standard one-dimensional barcodes from user-supplied content with configurable dimensions and output size.
Method: POST
Path: /v1/barcode
Demo: https://api.gugudata.io/v1/barcode/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.
type (string, required): Endpoint-specific type selector. Refer to the endpoint description for supported values.
content (string, required): Primary text content processed by the endpoint.
width (integer, required): Output width in pixels.
height (integer, required): Output height in pixels.
Response Fields:
url (string, required): CDN URL of the generated barcode image. Validation failures may return a plain-text error message instead of the success payload.
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 return: No additional remark.
101 Parameter error: No additional remark.
102 Request rate limited: No more than 100 requests per second
103 Account in arrears: No additional remark.
104 APPKEY error: Check whether the passed APPKEY matches the one obtained from the developer center
110 API response error: No additional remark.
Key Features:
Supports 40 types of barcodes.
Supports generating custom barcode sizes.
Directly generates a CDN link for the barcode image for easy reference.
Full support for HTTPS (TLS v1.0 / v1.1 / v1.2 / v1.3).
Fully compatible with Apple ATS.
Nationwide CDN deployment.
Ultra-fast API response, multiple servers for load balancing.
Details:
https://gugudata.io/details/barcode

Request

Query Params

Header Params

Body Params application/json

Example
{
    "type": "html",
    "content": "https://www.gugudata.io",
    "width": 1,
    "height": 1
}

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 --globoff 'https://api.gugudata.io/v1/barcode?appkey=sk-******' \
--header 'Content-Type: application/json' \
--data '{
    "type": "html",
    "content": "https://www.gugudata.io",
    "width": 1,
    "height": 1
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
  "DataStatus": {
    "StatusCode": 0,
    "StatusDescription": "string",
    "ResponseDateTime": "string",
    "DataTotalCount": 0
  },
  "Data": {
    "Content": "string",
    "Url": "string"
  }
}
Modified at 2026-05-14 10:39:32
Previous
Wifi QR Code
Next
Decode QR Code from Image
Built with