1. Website Tools
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
      POST
    • Image OCR
      POST
    • PDF to Format
      POST
    • PDF Splitting
      POST
    • Markdown to PDF
      POST
    • PPT to Images
      POST
    • PDF to HTML
      POST
    • PDF Summary
      POST
    • Image Compress
      POST
    • Word to HTML
      POST
    • Convert HTML to Word
      POST
    • Convert PPT to PDF
      POST
  • QRcode and Barcode
    • DEMO
      • [DEMO] QR Code
      • [DEMO] Wifi QR Code
      • [DEMO] Bar Code
      • [DEMO] Decode QR Code from Image
    • QR Code
    • Wifi QR Code
    • Bar Code
    • Decode QR Code from Image
  • 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. Website Tools

Short Link API

POST
https://api.gugudata.io/v1/shortLinks
Last modified:2026-05-14 10:39:41
Short Link API
Create short URLs on guguurl.com, manage destination URLs and expiration times, disable links when needed, and track total clicks through a simple REST API.
Method: POST
Path: /v1/shortLinks
Demo: https://api.gugudata.io/v1/shortLinks/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.
longUrl (string, required): Destination URL. Must use HTTP or HTTPS.
shortLinkId (string, optional): Optional custom short link ID. Use 4 to 32 letters, numbers, underscores, or hyphens.
expireTime (string, optional): Optional expiration time.
Response Fields:
data.name (string, required): Resource name of the created short link.
data.shortLinkId (string, required): Short link ID.
data.shortUrl (string, required): Generated short URL.
data.longUrl (string, required): Destination URL.
data.state (string, required): Short link state. ACTIVE links redirect; DISABLED links do not redirect.
data.clickCount (integer, required): Total redirect count.
data.expireTime (string, optional): Expiration time, if set.
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:
200 Normal return: Short link created or returned successfully
400 Parameter error: Missing or invalid request parameters
403 Permission denied: A paid API key is required
404 Short link not found: The requested short link does not exist or is not available to the current account
409 Short link ID already exists: The requested custom short link ID is already in use
410 Short link unavailable: The short link is disabled or expired
Key Features:
Create short URLs on guguurl.com for sharing, campaigns, and app redirects.
Use custom short link IDs or automatically generated codes.
Set optional expiration times for temporary links.
Update destination URLs or disable links when campaigns end.
Track total click counts and last access time.
Keep public short links on a dedicated short domain.
Details:
https://gugudata.io/details/shortlink

Request

Query Params

Header Params

Body Params application/json

Example
{
    "longUrl": "https://example.com/page",
    "shortLinkId": "campaign01",
    "expireTime": "2026-12-31T23:59:59Z"
}

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/shortLinks?appkey=sk-******' \
--header 'Content-Type: application/json' \
--data '{
    "longUrl": "https://example.com/page",
    "shortLinkId": "campaign01",
    "expireTime": "2026-12-31T23:59:59Z"
}'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{}
Modified at 2026-05-14 10:39:41
Previous
Extract Structured JSON from Webpage
Next
Image Recognition
Built with