Short link generation
Given any URL, output the compressed short link.
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsShort URL API
Convert web addresses into short links that are easy to share.
Single address input
Use content to submit the web URL you want to share.
Synchronous response
Read data.url directly when the request completes.
Easy integration
Integrate into your application using standard HTTP and JSON.
Start with your first request
Get a Key, copy the request, and view the corresponding response JSON below.
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/shorturl" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"content": "https://platform.acedata.cloud/models"
}'The following is an excerpt of key fields from the current API response. The task identifier, usage, and generated content depend on the values returned by your request.
{
"success": true,
"data": {
"url": "https://surl.id/1uHCs01xa5"
}
}Read the response
The request returns the short link synchronously. Read the generated address from data.url. See the API guide for a complete description of the fields.
Submit one valid address per request. See the current service page for metering and pricing.
Requests and costs
Refer to the current API and pricing page for request parameters, available models, and costs. If you encounter authentication, balance, or limit errors, check the Key's application, validity period, and usage restrictions. Retain the trace_id when troubleshooting requests.
Integrate the Short URL API into your application
Continue to the complete guide for parameters, result fields, and error handling.
This API can be used to shorten a given link.
Packages
We offer various credit packages. The more you purchase, the higher the discount you receive.
