API FOR DEVELOPERS

DO YOU HAVE A BLOG OR A WEB TOOL AND YOU WANT TO USE COGE.LA?

API de coge.la

Integrate our URL's shortener service with use statistics is really easy. You just have to use our easy external call API, including the call in your project. If you have a web page you can also include our "box" so your users can shrink theirs URLs comfortably.

INTEGRATION IN WEB APPLICATIONS THROUGH GET METHOD

You can do it in two ways, depending if you want or not to register in a coge.la account the links that you generate:

  • Anonymous: that is, just generating the shrunk link , without connecting it to a coge.la account. Through this way you won't be able to see the use statictics of your links. In this case the call is:

    http://coge.la/api.php?url=YOUR_LONG_URL

  • Using your coge.la account: is the most advisable way, as you'll enjoy of different advantages as store all your coged URL un your private dashboard and see their use statistics. In this case the call is:

    http://coge.la/api.php?url=google.es&user=YOUR_USERNAME&password=YOUR_PASSWORD

 

INTEGRATION IN WEB APPLICATIONS THROUGH CURL

As well, you can connect your application to coge.la through cURL, which is more safe and practical. We offer you an easy example of how to do the connection through this protocol.

 


And you'll get this:

URL to shorten: