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": "Sat, 22 Feb 2020 07:35:17 +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, 22 Feb 2020 07:35:17 +0100",
               "num_referrals": 263,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 53,
                     "entries_per_page": 5,
                     "total_entries": 263,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Sat, 22 Feb 2020 07:35:17 +0100",
                        "ip_address": "3.218.67.1",
                        "user_agent": "CCBot/2.0 (https://commoncrawl.org/faq/)",
                        "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": "Thu, 20 Feb 2020 14:37:42 +0100",
                        "ip_address": "61.238.194.247",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",
                        "country": {
                           "short": "Hong Kong",
                           "long": "Hong Kong",
                           "iso_alpha2": "HK"
                        }
                     },
                     {
                        "date_creation": "Tue, 18 Feb 2020 07:10:48 +0100",
                        "ip_address": "47.9.198.183",
                        "user_agent": "Mozilla/5.0 (Linux; Android 9; RMX1945) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36",
                        "country": {
                           "short": "Canada",
                           "long": "Canada",
                           "iso_alpha2": "CA"
                        }
                     },
                     {
                        "date_creation": "Tue, 18 Feb 2020 07:00:17 +0100",
                        "ip_address": "114.119.157.21",
                        "user_agent": "Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53",
                        "country": {
                           "short": "China",
                           "long": "People's Republic of China",
                           "iso_alpha2": "CN"
                        }
                     },
                     {
                        "date_creation": "Sat, 15 Feb 2020 20:15:26 +0100",
                        "ip_address": "51.39.32.9",
                        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",
                        "country": {
                           "short": "United Kingdom",
                           "long": "United Kingdom of Great Britain and Nothern Ireland",
                           "iso_alpha2": "UK"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}