URL Shortener

Full fledged REST API to shorten your urls on the fly. Track click-throughs and obtain geolocation data for each click.

Full fledged REST API to shorten urls on the fly and easily track trends in site registrations, returning visitors, social posts, resulting referral traffic and geolocation data about your users. With our high speed redirection your visitors will experience almost instant redirects.

Interested? Discover how to use our JSON/REST API to shorten URLs on the fly.

In the example below you can see the last five clicks that our API has tracked for the shortened URL redirecting to the page that you are viewing now. To test the demo, simply click on the button below. This will open the shortened url, redirect you back to the current page and update the click-through data.

http://oal.lu/Dpkuo

Click-through data

{
   "response": {
      "request": {
         "date": "Mon, 24 Mar 2025 01:08:53 +0100",
         "resource": "/shorturls/Dpkuo.json?entries_per_page=5&order_direction=desc",
         "status": {
            "flag": "success",
            "code": 200,
            "info": "Your request has been processed successfully"
         }
      },
      "result": {
         "data": {
            "shorturl": {
               "shorturl_token": "Dpkuo",
               "original_url": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/#product-demo-data",
               "short_url": "http://oal.lu/Dpkuo",
               "date_creation": "Thu, 21 Mar 2019 16:30:14 +0100",
               "date_last_referral": "Fri, 21 Mar 2025 18:39:54 +0100",
               "num_referrals": 1819,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 364,
                     "entries_per_page": 5,
                     "total_entries": 1819,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Fri, 21 Mar 2025 18:39:54 +0100",
                        "ip_address": "43.130.15.147",
                        "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
                        "country": {
                           "short": "Japan",
                           "long": "Japan",
                           "iso_alpha2": "JP"
                        }
                     },
                     {
                        "date_creation": "Thu, 20 Mar 2025 03:33:12 +0100",
                        "ip_address": "20.171.207.222",
                        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Wed, 19 Mar 2025 06:35:56 +0100",
                        "ip_address": "185.191.171.15",
                        "user_agent": "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)"
                     },
                     {
                        "date_creation": "Tue, 18 Mar 2025 17:40:26 +0100",
                        "ip_address": "66.249.70.8",
                        "user_agent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.6943.141 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Mon, 17 Mar 2025 20:24:47 +0100",
                        "ip_address": "84.247.235.83",
                        "user_agent": "yacybot (/global; amd64 Linux 5.15.0-122-generic; java 21.0.6; Etc/en) https://yacy.net/bot.html",
                        "country": {
                           "short": "Italy",
                           "long": "Italian Republic",
                           "iso_alpha2": "IT"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}