Gooe.ai provides a simple and direct API to create short links programmatically from your app or website. All you need is to call the API endpoint with the original URL and your personal API token to receive a short link.
Login to your gooe.ai account and go to the Settings page where you will find your API token. Copy and use it in all your requests.
Send your request using GET method to the following endpoint:
https://gooe.ai/api/shortcut
You must provide the following parameters:
url - The original URL you want to shortentoken - Your API token<?php
$url = 'https://gooe.ai/api/shortcut/?url=' . urlencode('https://example.com') . '&token=your_token_here';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
fetch("https://gooe.ai/api/shortcut/?url=https://example.com&token=your_token_here")
.then(response => response.text())
.then(data => {
console.log("Shortened Link:", data);
})
.catch(error => {
console.error("Error:", error);
});
import requests
params = {
"url": "https://example.com",
"token": "your_token_here"
}
response = requests.get("https://gooe.ai/api/shortcut", params=params)
if response.status_code == 200:
print("Shortened URL:", response.text)
else:
print("Error:", response.status_code)
// عند النجاح
https://gooe.ai/abc12
// أو عند وجود خطأ
Missing URL or Token
Invalid token
For any technical inquiries or issues, please contact us