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, 03 Dec 2021 17:39:20 +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": "Fri, 03 Dec 2021 05:33:00 +0100",
               "num_referrals": 900,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 180,
                     "entries_per_page": 5,
                     "total_entries": 900,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Fri, 03 Dec 2021 05:33:00 +0100",
                        "ip_address": "87.250.224.35",
                        "user_agent": "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)",
                        "country": {
                           "short": "Russia",
                           "long": "Russian Federation",
                           "iso_alpha2": "RU"
                        }
                     },
                     {
                        "date_creation": "Thu, 02 Dec 2021 23:24:58 +0100",
                        "ip_address": "154.54.249.200",
                        "user_agent": "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)",
                        "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, 02 Dec 2021 18:41:09 +0100",
                        "ip_address": "95.211.190.197",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "date_creation": "Thu, 02 Dec 2021 13:14:11 +0100",
                        "ip_address": "185.191.171.40",
                        "user_agent": "Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)"
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Thu, 02 Dec 2021 10:14:01 +0100",
                        "ip_address": "153.37.224.211",
                        "user_agent": "ia_archiver",
                        "country": {
                           "short": "China",
                           "long": "People's Republic of China",
                           "iso_alpha2": "CN"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}