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.

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, 22 Apr 2019 08:24:08 +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": "Sun, 21 Apr 2019 05:17:22 +0200",
               "num_referrals": 30,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 6,
                     "entries_per_page": 5,
                     "total_entries": 30,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Sun, 21 Apr 2019 05:17:22 +0200",
                        "ip_address": "144.76.236.112",
                        "user_agent": "Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/)",
                        "country": {
                           "short": "Germany",
                           "long": "Federal Republic of Germany",
                           "iso_alpha2": "DE"
                        }
                     },
                     {
                        "date_creation": "Fri, 19 Apr 2019 01:42:48 +0200",
                        "ip_address": "54.36.148.185",
                        "user_agent": "Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Thu, 18 Apr 2019 08:23:19 +0200",
                        "ip_address": "185.26.92.74",
                        "user_agent": "GarlikCrawler/1.2 (http://garlik.com/, crawler@garlik.com)",
                        "country": {
                           "short": "United Kingdom",
                           "long": "United Kingdom of Great Britain and Nothern Ireland",
                           "iso_alpha2": "UK"
                        }
                     },
                     {
                        "date_creation": "Sun, 14 Apr 2019 13:22:17 +0200",
                        "ip_address": "54.218.238.37",
                        "user_agent": "Mozilla/5.0 (Macintosh; PPC Mac OS X 10.9; rv:55.0) Gecko/20100101 Firefox/55.0",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Wed, 10 Apr 2019 20:31:53 +0200",
                        "ip_address": "95.211.190.199",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}