Free URL Shortener API
Shorten links and retrieve click statistics programmatically using the a777.lt JSON API. No API key required for basic operations. Works with any language that can make HTTP requests.
View Full API Documentation →
Interactive docs with request/response examples.
Available API Endpoints
| Endpoint | Method | Description | Free? |
|---|---|---|---|
| /api/shorten | POST | Create a short link | ✅ |
| /api/stats/{code} | GET | Get click stats for a link | ✅ |
| /api/export/{code} | GET | Export click log (JSON/CSV/XML/XLSX) | JSON/CSV |
| /api/dashboard | GET | Aggregated stats for all links | Paid |
| /api/check-redirect | GET | Trace full redirect chain for any URL | ✅ |
Shorten a URL — Quick Start
Send a POST request to https://a777.lt/api/shorten with a JSON body:
curl example
curl -s -X POST https://a777.lt/api/shorten \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/your-long-url"}'
Response
{
"short_url": "https://a777.lt/xk29mB",
"short_code": "xk29mB",
"original_url": "https://example.com/your-long-url",
"customer_secret_key": "a1b2c3d4e5f6..."
}
The customer_secret_key in the response is your key to the link's analytics. Store it — it cannot be recovered if lost.
Retrieve Click Statistics via API
GET click data for any link using its short code and your secret key:
curl example
curl -s "https://a777.lt/api/stats/xk29mB?customer_secret_key=a1b2c3..."
The response includes:
- Total and unique click counts
- Per-day click aggregates
- Country breakdown with click counts
- Referrer breakdown
- Browser, OS, and device type breakdown
- Bot vs human click split
API vs Competitors
| Feature | a777.lt API | Bitly API | TinyURL API |
|---|---|---|---|
| API key required | ❌ Not for basic use | ✅ Required | ✅ Required |
| Free click stats via API | ✅ Yes | ❌ Paid only | ❌ No |
| Rate limit (free) | 30 req/min | 1000/month | 600/hour |
| Export to JSON/CSV | ✅ Free | ❌ Paid | ❌ No |
| Cost for analytics API | Free / €5.99/yr | $29+/month | $9.99+/month |
Frequently Asked Questions
Does the API require an API key?
No API key is required to shorten URLs. To access your link's statistics, you pass the Customer Secret Key that was returned when the link was created.
What are the rate limits?
30 requests per minute per IP. Sufficient for most automation tasks. Requests over the limit return a 429 response.
Can I use this API in a commercial project?
Yes. There are no restrictions on commercial use of the free API tier. The Terms of Service prohibit spam and illegal content — everything else is fair use.
Is there an SDK?
No official SDK. The API is simple REST/JSON — any HTTP client (fetch, axios, requests, curl, Guzzle) works without a wrapper library. See the full documentation for language-specific examples.
Ready to integrate?
Free API, no key required for basic use. Full docs with examples.
Read the API Documentation →
Need aggregated stats across all links? Dashboard — €5.99/yr