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, 23 Sep 2023 19:29:59 +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": "Fri, 22 Sep 2023 09:37:44 +0200",
               "num_referrals": 1417,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 284,
                     "entries_per_page": 5,
                     "total_entries": 1417,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "page": "http://www.oneall.com/services/user-engagement-solutions/url-shortener/",
                        "date_creation": "Fri, 22 Sep 2023 09:37:44 +0200",
                        "ip_address": "176.100.243.13",
                        "user_agent": "Mozilla/5.0 (Linux; U; Android 2.0.1; en-us; Droid Build/ESD56) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17",
                        "country": {
                           "short": "Russia",
                           "long": "Russian Federation",
                           "iso_alpha2": "RU"
                        }
                     },
                     {
                        "date_creation": "Fri, 22 Sep 2023 08:25:56 +0200",
                        "ip_address": "210.16.120.22",
                        "user_agent": "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
                     },
                     {
                        "date_creation": "Fri, 22 Sep 2023 06:30:56 +0200",
                        "ip_address": "207.46.13.17",
                        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/103.0.5060.134 Safari/537.36",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Thu, 21 Sep 2023 11:46:25 +0200",
                        "ip_address": "216.189.157.28",
                        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Thu, 21 Sep 2023 01:05:46 +0200",
                        "ip_address": "77.75.78.172",
                        "user_agent": "Mozilla/5.0 (compatible; SeznamBot/4.0; +http://napoveda.seznam.cz/seznambot-intro/)",
                        "country": {
                           "short": "Czech Republic",
                           "long": "Czech Republic",
                           "iso_alpha2": "CZ"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}