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, 28 Sep 2021 21:32:43 +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": "Wed, 22 Sep 2021 19:45:11 +0200",
               "num_referrals": 842,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 169,
                     "entries_per_page": 5,
                     "total_entries": 842,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Wed, 22 Sep 2021 19:45:11 +0200",
                        "ip_address": "5.102.173.71",
                        "user_agent": "Mozilla/5.0 (compatible; MojeekBot/0.10; +https://www.mojeek.com/bot.html)",
                        "country": {
                           "short": "United Kingdom",
                           "long": "United Kingdom of Great Britain and Nothern Ireland",
                           "iso_alpha2": "UK"
                        }
                     },
                     {
                        "date_creation": "Wed, 22 Sep 2021 19:02:20 +0200",
                        "ip_address": "213.180.203.69",
                        "user_agent": "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)",
                        "country": {
                           "short": "Russia",
                           "long": "Russian Federation",
                           "iso_alpha2": "RU"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Wed, 22 Sep 2021 16:22:09 +0200",
                        "ip_address": "95.211.190.197",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Tue, 21 Sep 2021 20:46:25 +0200",
                        "ip_address": "95.211.190.198",
                        "country": {
                           "short": "Netherlands",
                           "long": "Kingdom of the Netherlands",
                           "iso_alpha2": "NL"
                        }
                     },
                     {
                        "date_creation": "Mon, 20 Sep 2021 07:33:03 +0200",
                        "ip_address": "77.75.78.164",
                        "user_agent": "Mozilla/5.0 (compatible; SeznamBot/3.2; +http://napoveda.seznam.cz/en/seznambot-intro/)",
                        "country": {
                           "short": "Czech Republic",
                           "long": "Czech Republic",
                           "iso_alpha2": "CZ"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}