The Yoplink API is fully free and available without any registration.
You can use it to create new applications or to complete existing ones. The only limit is your imagination.

On this page you can find the documentation of the 3 main functions of this API which will allow you to create new links, expand existing ones and check if a yoplink user exists or not.

String create ([user],[psswd],[id],[title],url)

This function allows you to create a new Yoplink and returns the produced link.

Parameters

url
The URL to reduce. Must be the last parameter. Otherwise, the other ones will be ignored and added to the URL.
user
The username of the user (optionnal)
psswd
The md5 encrypted password of the user (optionnal)
id
The Adsense ID you want to use. If the Id is specified it overwrites the potential ID of a user (optionnal)
title
The title you want to use for your link (optionnal)

Important notices

  • If the authentication of a specified user fails, the link is created under an anonymous account.
  • The URL must always be the last parameter.
  • If the URL hasn't a valid form, the function will return false.

Examples

http://api.yoplink.com/create.php?url=http://www.google.fr
//will return a new link with the minimum amount of information

http://api.yoplink.com/create.php?id=9406357712585392&url=http://www.google.fr
//will return a new link with the adsense ID specified

String get(id)

This function allows you to expand a Yoplink URL to it's original URL and returns the original link.

Parameters

id
Can either be the complete yoplnk URL or just the id of the link

Important notice

  • If the link doesn't exist in our database, the function will return false.

Examples

http://api.yoplink.com/get.php?id=500
//will return the original link of the following Yoplink : http://www.yoplink.com/500

http://api.yoplink.com/get.php?id=http://www.yoplink.com/500
//will return the same link as the previous function

bool user(user,psswd)

This function allows you to check whereas the user exists or not in our database. For obvious security reasons it's limited to 3 tests per user per hour.

Parameters

user
The username of the user
psswd
The md5 encrypted password of the user.

Examples

http://api.yoplink.com/user.php?user=toto&psswd=f71dbe52628a3f83a77ab494817525c6
//will return true if the user toto/toto exists (he doesn't)