Smart URL Shortener

Shorten your links, understand your data

Discover the story behind every link with sen.ac. Clicks, devices, countries — all at your fingertips.

Try it now

Sign up and get 500 free links!
Features

Why sen.ac?

Managing your links has never been easier

Instant shortening

Create short links in seconds.

Detailed analytics

Device, country and click reports.

500 free links

Free quota for new members.

Secure

Expired links are automatically deactivated.

Get started in 3 steps

No setup, no technical knowledge required

1
Sign up

Create a free account with your email. 500 link quota is activated instantly.

2
Shorten your link

Paste your long URL and get a unique sen.ac link.

3
Track it

See clicks, devices and countries in real time.

Unique & memorable

sen.ac/?r=47-aB3nQrTx

Link ID + 8-character unique code · Each link valid for 1 month

For Developers

Integrate with API

Use the sen.ac API to shorten links directly from your own applications.

POSTEndpoint
https://sen.ac/api/v1/shorten.php
Parameters
api_key Required API anahtarınız / Your API key
url Required Kısaltılacak URL / URL to shorten
title Optional Link başlığı / Link title
Success Response 200
{
  "success": true,
  "short_url": "https://sen.ac/?r=47-aB3nQrTx",
  "slug": "47-aB3nQrTx",
  "expires_at": "2026-08-16"
}
Error Response
{ "error": "Geçersiz API anahtarı." }

To get an API key, visit your profile page.

<?php
// linkes.php — bir kez tanımla, her sayfada kullan

define('SENAC_API_KEY', 'sk_sizin_anahtariniz');

function senac_shorten(string $url, string $title = ''): ?string {
    // 30 günlük cache
    $cache = sys_get_temp_dir() . '/senac_' . md5($url) . '.txt';
    if (file_exists($cache) && filemtime($cache) > time() - 86400 * 30)
        return file_get_contents($cache);

    $ch = curl_init('https://sen.ac/api/v1/shorten.php');
    curl_setopt_array($ch, [
        CURLOPT_POST           => true,
        CURLOPT_POSTFIELDS     => http_build_query([
            'api_key' => SENAC_API_KEY,
            'url'     => $url,
            'title'   => $title,
        ]),
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT        => 10,
        CURLOPT_SSL_VERIFYPEER => false,
    ]);
    $res = curl_exec($ch); curl_close($ch);
    if (!$res) return null;
    $data = json_decode($res, true);
    if (empty($data['success'])) return null;
    file_put_contents($cache, $data['short_url']);
    return $data['short_url'];
}

function senac_current_url(string $title = ''): ?string {
    $p = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
    return senac_shorten($p . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], $title);
}

// Kullanım (çağırdığınız sayfada)
require_once __DIR__ . '/linkes.php';
echo senac_current_url('Sayfa Başlığı');
// https://sen.ac/?r=47-aB3nQrTx

Start now, for free

500 link quota, detailed analytics and API access await you.