Powerful REST API for link management and automation
After creating an account:
Create a short link using cURL:
curl -X POST https://short.bid/api.php \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "createLink",
"url": "https://example.com"
}'
Response:
{
"success": true,
"linkId": 123,
"shortUrl": "https://short.bid/123"
}
fetch('https://short.bid/api.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
action: 'createLink',
url: 'https://example.com',
noReferer: 1 // Premium feature
})
})
.then(response => response.json())
.then(data => console.log(data));
import requests
headers = {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
data = {
'action': 'createLink',
'url': 'https://example.com'
}
response = requests.post(
'https://short.bid/api.php',
headers=headers,
json=data
)
print(response.json())
$ch = curl_init('https://short.bid/api.php');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: YOUR_API_KEY',
'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'action' => 'createLink',
'url' => 'https://example.com'
]));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);
curl -X POST https://short.bid/api.php \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "bulkUpdate",
"linkIds": [1, 2, 3, 4, 5],
"updates": {
"linkNoReferer": 1
}
}'
| Action | Description | Access |
|---|---|---|
createLink |
Create a new short link | All Users |
getLinks |
Get all your links | All Users |
getLink |
Get single link details | All Users |
updateLink |
Update link properties | All Users |
deleteLink |
Delete a link | All Users |
bulkUpdate |
Update multiple links at once | Premium |
bulkDelete |
Delete multiple links at once | Premium |
getStats |
Get account statistics | All Users |
getUser |
Get user information | All Users |
generateApiKey |
Generate/regenerate API key | All Users |
Include your API key in every request using one of these methods:
X-API-Key: your_api_key_here
Authorization: Bearer your_api_key_here
Currently, there are no enforced rate limits. However, please use the API responsibly:
Rate limiting may be implemented in the future if abuse is detected.
Check out our complete API documentation with detailed examples and responses.
View Full Documentation Get Started Free