Plip URL Shortener API


Goo.gl replacement

With Google's goo.gl URL shortener shutting down soon, you may be looking for an alternative link shortening API.

Plip.io is a "drop-in" replacement for the goo.gl API. With very few code changes, you can be up and running again in no time. Just sign up, get an API key and you will soon be back in business. If you haven't previously used goo.gl and are just looking for an easy to use, reliable, link shortening API, you've come to the right place.

SSL and CORS

All requests to Plip.io are encrypted with https for security and privacy. Additionally, Plip.io supports Cross-Origin Resource Sharing (CORS), so you can access the API via XMLHttpRequest or Fetch.

Introduction

The Plip.io API lets you shorten, expand and edit URLs programatically. This means you can use Plip.io in your own apps just like on the Plip.ca website.

The URL Shortener API requires an API key for authentication. Sign up here to get your API key.

Shorten a URL

You can shorten a long url via the /api/v1/shorten call.

POST https://plip.io/api/v1/shorten
Content-Type: application/json
{"longUrl": "http://www.example.com/"}

For example, you can issue the following curl command:

curl https://plip.io/api/v1/shorten?key=yourAPIKey \
  -H "Content-Type: application/json" \
  -d '{"longUrl":"http://www.example.com/"}'

If successful, the response will look like:

{
"longUrl": "http://www.example.com",
"shortUrl": "https://plip.io/5QqNbW"
}

Expand a URL

You can expand a shortened url via the /api/v1/expand call.

POST https://plip.io/api/v1/expand
Content-Type: application/json
{"shortUrl": "https://plip.io/5QqNbW"}

For example, you can issue the following curl command:

curl https://plip.io/api/v1/expand?key=yourAPIKey \
  -H "Content-Type: application/json" \
  -d '{"shortUrl":"https://plip.io/5QqNbW"}'

If successful, the response will look like:

{
 "longUrl": "http://www.example.com",
 "shortUrl": "https://plip.io/5QqNbW"
}

Note: Users can only expand links that they created, they cannot expand other users links. Your links are private!

Edit a URL

Unlike many URL shorteners, Plip lets you change the target of your short URLs. You can edit a shortened url via the /api/v1/edit call.

POST https://plip.io/api/v1/edit
Content-Type: application/json
{"shortUrl": "https://plip.io/5QqNbW", "longUrl":"http://www.example.net"}

For example, you can issue the following curl command:

curl https://plip.io/api/v1/edit?key=yourAPIKey \
  -H "Content-Type: application/json" \
  -d '{"shortUrl":"https://plip.io/5QqNbW", "longUrl":"http://www.example.net"}'

If successful, the response will look like:

{
 "longUrl": "http://www.example.net",
 "shortUrl": "https://plip.io/5QqNbW"
}

Note: Users can only edit links that they created, they cannot edit other users links. Your links are safe!

URL Shortener API Examples

Java

jQuery

coming soon

PHP

coming soon

Python

coming soon