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": "Fri, 21 Apr 2023 10:43:14 +0200",
         "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": "Thu, 20 Apr 2023 20:19:11 +0200",
               "num_referrals": 1340,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 268,
                     "entries_per_page": 5,
                     "total_entries": 1340,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Thu, 20 Apr 2023 20:19:11 +0200",
                        "ip_address": "93.156.251.223",
                        "user_agent": "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 OPR/95.0.0.0",
                        "country": {
                           "short": "Spain",
                           "long": "Kingdom of Spain",
                           "iso_alpha2": "ES"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/",
                        "date_creation": "Tue, 18 Apr 2023 21:54:04 +0200",
                        "ip_address": "160.176.242.42",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36",
                        "country": {
                           "short": "Morocco",
                           "long": "Kingdom of Morocco",
                           "iso_alpha2": "MA"
                        }
                     },
                     {
                        "date_creation": "Tue, 18 Apr 2023 13:09:38 +0200",
                        "ip_address": "207.46.13.210",
                        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/103.0.5060.134 Safari/537.36",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Fri, 14 Apr 2023 03:14:31 +0200",
                        "ip_address": "66.249.76.26",
                        "user_agent": "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.49 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"
                        }
                     },
                     {
                        "page": "https://www.google.com/",
                        "date_creation": "Wed, 12 Apr 2023 02:06:34 +0200",
                        "ip_address": "91.103.79.165",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 OPR/96.0.0.0",
                        "country": {
                           "short": "Russia",
                           "long": "Russian Federation",
                           "iso_alpha2": "RU"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}