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": "Tue, 07 Apr 2020 12:25:20 +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, 05 Apr 2020 08:31:12 +0200",
               "num_referrals": 313,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 63,
                     "entries_per_page": 5,
                     "total_entries": 313,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Sun, 05 Apr 2020 08:31:12 +0200",
                        "ip_address": "27.62.201.70",
                        "user_agent": "Mozilla/5.0 (Linux; Android 8.1.0; vivo 1724) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36",
                        "country": {
                           "short": "India",
                           "long": "Republic of India",
                           "iso_alpha2": "IN"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Sun, 05 Apr 2020 04:15:12 +0200",
                        "ip_address": "95.211.190.198",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Sat, 04 Apr 2020 23:56:40 +0200",
                        "ip_address": "95.211.190.199",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Sat, 04 Apr 2020 04:42:35 +0200",
                        "ip_address": "95.211.190.199",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "date_creation": "Thu, 02 Apr 2020 15:47:50 +0200",
                        "ip_address": "46.229.168.151",
                        "user_agent": "Mozilla/5.0 (compatible; SemrushBot/6~bl; +http://www.semrush.com/bot.html)",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}