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, 20 Jan 2020 01:45:09 +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": "Sat, 18 Jan 2020 04:56:13 +0100",
               "num_referrals": 224,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 45,
                     "entries_per_page": 5,
                     "total_entries": 224,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Sat, 18 Jan 2020 04:56:13 +0100",
                        "ip_address": "95.211.190.243",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Fri, 17 Jan 2020 07:38:04 +0100",
                        "ip_address": "171.223.208.18",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36",
                        "country": {
                           "short": "China",
                           "long": "People's Republic of China",
                           "iso_alpha2": "CN"
                        }
                     },
                     {
                        "date_creation": "Fri, 17 Jan 2020 03:11:46 +0100",
                        "ip_address": "124.43.8.127",
                        "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36",
                        "country": {
                           "short": "Sri Lanka",
                           "long": "Democratic Socialist Republic of Sri Lanka",
                           "iso_alpha2": "LK"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Thu, 16 Jan 2020 19:20:03 +0100",
                        "ip_address": "95.211.190.244",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "date_creation": "Thu, 16 Jan 2020 11:47:28 +0100",
                        "ip_address": "78.170.122.72",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0",
                        "country": {
                           "short": "Turkey",
                           "long": "Republic of Turkey",
                           "iso_alpha2": "TR"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}