Log in to your account for an API Key

An API key is required for requests to be processed by our server. Once a user registers, an API key is automatically generated. Find YOUR API key under Settings > Developers.

Sending a request for shortening an URL

To send a request, the user must use the following format where the variables API and URL are required. In the example below, the URL of the demo is used but you should use your own domain name. To request a custom alias, simply add &custom= at the end.

GET

Server response

As before, the response will be encoded in JSON format (default). This is done to facilitate cross-language usage. The first element of the response will always tell if an error has occurred (error: 1) or not (error: 0). The second element will change with respect to the first element. If there is an error, the second element will be named “msg”. which contains the source of error, otherwise it will be named “short” which contains the short URL. (See below for an example)

Using plain text format

You can now request the response to be in plain text by just adding &format=text at the end of your request. This will return just instead of the JSON response. Note that if an error occurs, it will not output anything.

Using the API in PHP

To use the API in your PHP application, you have to send a GET request through file_get_contents or cURL: Both are reliable methods. You can see a sample code below using file_get_contents.

Related Posts

Find out how and why to check on your competitors in stealth mode. This tutorial is part of the owl URL - features for your social media and WordPress. Why check on your competitors? Every business needs to know its competitive analysis with as much detailed information as possible....

This makes your life at work much better. We do the hard work, you get the glory! Pleasant win-win! 😉 So....Why not? Pitch our WordPress Services to your boss! WordPress upkeep has a fundamental connection with outsourcing. Ever since the industry grew from a novelty to a full-blown profession, businesses...

Find out how to create special short URL pages for your video links. This tutorial is part of the owl URL - features for your social media and WordPress. What is a media link? Media link is a direct URL to a webpage, where a single media is found....

Find out how to brand any short URL you create to create a professional feel for your customers. This tutorial is part of the owl URL - features for your social media and WordPress. Why you need branding? Branding is a critical element of any business. A brand is...

Find out how to use optional features for your short URLs. This tutorial is part of the owl URL - features for your social media and WordPress. Use optional features under ADVANCED OPTIONS button: - Custom Alias: Specify a "custom alias" for a branded identification of the shortened URL....

Find out how to use the redirection types for your short URLs. This tutorial is part of the owl URL - features for your social media and WordPress. Use redirection features under SHORTEN button: - DIRECT: Using the DIRECT redirection feature, user clicking on your links will be automatically...

Find out how to redirect visitors from the same QR CODE to different landing pages to overcome the language barrier and boost sales. This tutorial is part of the owl URL - features for your social media and WordPress. With these two posts, we explained the basics of these...

“To bring relevance to people, you have to be able to speak their language effectively” ― Sunday Adelaja In our previous posts from WordPress Consulting services, regarding landing pages, we explained how to create simple landing pages. Now, its time to raise the ante and face a harsh reality: THE...

Find out how to password protect a short URL for added safety and control. This tutorial is part of the owl URL - features for your social media and WordPress. Why you need this? Security and total control. Maybe you're network marketer and your share content for private viewers....

Find out how to create fast a short URL for any visited pages from your bookmarks. This tutorial is part of the owl URL - features for your social media and WordPress. Why you need this? Convenience and time mostly. Maybe you're as lazy as we are. Maybe you...

Find out how to redirect visitors from the same short URL to different landing pages to overcome the language barrier and boost sales. This tutorial is part of the owl URL - features for your online marketing and WordPress. What is geo-targeting? Geo-targeting in internet marketing is the method...

Find out how to create a QR code the easy way. This tutorial is part of the owl URL - features for your social media and WordPress. What is a QR code? Definition: a machine-readable code consisting of an array of black and white squares, typically used for storing...

Find out how to shorten any long URL into a 16 character length short URL. This tutorial is part of the owl URL - features for your social media and WordPress. Why you need a short URL? Link shorteners were originally created to address stubborn limitations. Examples are: email...

“Starting April 13, 2018, anonymous users and users who have never created short links before today will not be able to create new short links via the goo.gl console...To refocus our efforts, we're turning down support for goo.gl over the coming weeks and replacing it with Firebase Dynamic Links (FDL).”...

Find out how to gather important insights to track your ROI. This tutorial is part of the owl URL - features for your social media and WordPress. What is ROI? ROI is short for Return on investment. A high ROI means the investment gains compare favorably to investment cost....