Developer API 2.0

Developer API 2.0

22.Nov.2020

Shorten a Link

To send a request, the user must use the following format where the variable url is required. In the example below, the URL of the demo is used but you should use your own domain name. See table below for parameters.

Parameter Description
url (required) Long URL to shorten.
custom (optional) Custom alias instead of random alias.
type (optional) Redirection type [direct, frame, splash]
password (optional) Password protection
domain (optional) Custom Domain
expiry (optional) Expiration for the link example 2020-11-22 01:21:03
geotarget (optional) Geotargetting data
devicetarget (optional) Device Targetting data

 

  • You can use Zapier to automate campaigns. By adding the URL to the zapier webhook, we will send you important information to that webhook so you can use them.

  • You can integrate this app with your slack account and shorten directly from the slack interface using the command line below. This slack integration will save all of your links in your account in case you need to access them later. Please see below how to use the command.

    Add to Slack

    The slack command will return you the short link if everything goes well. In case there is an error, it will return you the original link. If you use the custom parameter and the alias is already taken, the script will automatically increment the alias by 1 - this means if you choose 'google' and 'google' is not available, the script will use google-1

  • By default, this script shortens all URLs in a page. If you want to target specific URLs then you can add a selector paramater. You can see an example below where the script will only shorten URLs having a class named mylink or all direct link in the .content container or all links in the .comments container

  • You can use our bookmarklet tool to instantaneously shorten any site you are currently viewing and if you are logged in on our site, it will be automatically saved to your account for future access. Simply drag the following link to your bookmarks bar or copy the link and manually add it to your favorites.

     

    If you can't drag the link above, use your browser's bookmark editor to create a new bookmark and add the URL below as the link.

    Quick Shortener

    This tool allows you to quickly shorten any URL in any page without using any fancy method. This is perhaps the quickest and the easiest method available for you to shorten URLs across all platforms. This method will generate a unique short URL for you that you will be able to access anytime from your dashboard.

    Use your quick URL below to shorten any URL by adding the URL after /q/?u=. For security reasons, you need to be logged in and using the remember me feature. Check out the examples below to understand how to use this method.

    https://godli.be/q/?u=URL_OF_SITE

    Examples

    https://godli.be/q/?u=https://www.google.com
     
    
     

     

    
     

We are social