Little Helper
  1. Short URL
Little Helper
  • Home
  • IP Location
    • Show Client IP
      GET
    • IP Location Detail
      GET
  • QR Code
    • Generate QR Code
      GET
  • Short URL
    • Show HTML
      GET
    • Redirect URL
      GET
    • Save Shorten URL
      POST
  • Image Host
    • Telegra
      • Show HTML
      • Get Image
      • Upload Image
  • Chinese ID Card
    • Check Card No.
      GET
    • Get Card Info.
      GET
  • Image Handling
  • Message Sending
    • Send SMS
      • Send by Aliyun
    • Send Email
      • Send by Resend
      • Send By SMTP
    • Send Wechat
  • Data Dictionary
  • Monitor
  • Web Analytics
  1. Short URL

Save Shorten URL

POST
/api/s
To save a URL from input, store it at the KV database and assign it a key, at the end, return that key.

Request

Body Params application/json
url
string 
required
The traget URL
Example
{
    "url": "string"
}

Request 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 --request POST '/api/s' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "string"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{"key":"n5f7EE6fW"}
Modified at 2024-05-28 07:24:40
Previous
Redirect URL
Next
Show HTML
Built with