TinyURL API
Overview
TinyURL lets you shorten long URLs into compact links using a simple REST API. Just send your long URL and get back a short tinyurl.com link you can share anywhere. It requires an API key but the free tier is generous enough for most small projects.
Beginner Tip
Start by getting a free API key from tinyurl.com/app/dev — the basic plan lets you shorten thousands of URLs per month. Always store shortened URLs you create, since regenerating the same short link for the same long URL is not guaranteed.
Available Data
Example Response
{
"id": "abc123",
"short_url": "https://short.ly/abc123",
"long_url": "https://example.com/very/long/url/path",
"clicks": 1542,
"created_at": "2025-01-10T14:30:00Z"
} Field Reference
data.tiny_url The shortened TinyURL link ready to share. data.url The original long URL that was shortened. data.alias The custom alias portion of the TinyURL (after tinyurl.com/). data.domain The domain used for the short link (e.g., tinyurl.com). code HTTP status code of the response (0 means success). Implementation Example
const url = "https://tinyurl.com/app/dev";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →ClickMeter
ClickMeter provides programmatic access to monitor, compare and optimize your marketing links via REST API.
Clico
Clico is a URL shortener API that lets you create short links programmatically using an API key for authentication.
Cutt.ly
⭐ Beginner's PickCutt.ly is a feature-rich URL shortener API that supports creating short links, setting custom aliases, adding expiration dates, and retrieving click statistics.
Kutt
Kutt provides programmatic access to free modern url shortener via REST API.
Rebrandly
Rebrandly is a premium URL shortener API focused on creating branded short links using your own custom domain.