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": "Wed, 18 Jun 2025 16:44:58 +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": "Tue, 17 Jun 2025 21:42:37 +0200",
               "num_referrals": 1913,
               "referrals": {
                  "pagination": {
                     "current_page": 1,
                     "total_pages": 383,
                     "entries_per_page": 5,
                     "total_entries": 1913,
                     "order": {
                        "field": "date_creation",
                        "direction": "desc"
                     }
                  },
                  "count": 5,
                  "entries": [
                     {
                        "date_creation": "Tue, 17 Jun 2025 21:42:37 +0200",
                        "ip_address": "177.115.20.6",
                        "user_agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36",
                        "country": {
                           "short": "Brazil",
                           "long": "Federative Republic of Brazil",
                           "iso_alpha2": "BR"
                        }
                     },
                     {
                        "date_creation": "Tue, 17 Jun 2025 06:28:38 +0200",
                        "ip_address": "170.106.152.21",
                        "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Sun, 15 Jun 2025 21:26:51 +0200",
                        "ip_address": "216.73.216.149",
                        "user_agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
                        "country": {
                           "short": "United States",
                           "long": "United States of America",
                           "iso_alpha2": "US"
                        }
                     },
                     {
                        "date_creation": "Fri, 13 Jun 2025 04:25:40 +0200",
                        "ip_address": "85.254.85.167",
                        "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.10 Safari/605.1.1",
                        "country": {
                           "short": "Latvia",
                           "long": "Republic of Latvia",
                           "iso_alpha2": "LV"
                        }
                     },
                     {
                        "date_creation": "Thu, 12 Jun 2025 22:52:37 +0200",
                        "ip_address": "154.54.249.208",
                        "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"
                        }
                     }
                  ]
               }
            }
         }
      }
   }
}