Checking status...
tny.dev Logo

Developers

Build URL shortening into your applications.

Generous rate limits
Superfast global redirects
HTTPS only
Global edge network

Quick Start

Getting Started

Sign in or create an account to start using the tny.dev API.

Implementation

Quick Start

1. Get your API key

Sign up for a free account to get your API key.

2. Include your API key

Add your API key to the X-API-Key header in all requests.

3. Make your first request

curl -X POST https://www.tny.dev/api/v1/shorten \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{"url": "https://example.com"}'

4. Response

{
  "short_url": "https://www.tny.dev/abc123",
  "slug": "abc123",
  "long_url": "https://example.com",
  "created_at": "2025-01-07T10:00:00Z"
}

Reference

Most Used API Endpoints

View Full API Documentation →
POST/api/v1/shorten

Create a shortened URL

GET/api/v1/analytics/{slug}

Get analytics for a short link

GET/api/v1/links

List all links created with your API key