Shorten URL Using ADFLY API And PHP

It's only fair to share...Share on Facebook0Share on Google+0Tweet about this on Twitter0Share on LinkedIn0Pin on Pinterest0Digg thisShare on StumbleUpon0

In my previous tutorial I have explained How To Use Google URL Shortener API Using PHP. Today, In this tutorial I will explain you how to Shorten URL using Adfly API in PHP. Adfly is one of the most popular URL shortener service provider. It is providing an API to implement this service in your application. So before starting, we required API key.

Create an Adfly account to get the API key. Once you login in your account , go under Tools menu and then API documentation sub menu for API key. You can see there A key and uid will required during API integration.


A simple PHP function API integration:

 Now calling this function:



  1. By zulius akbar amin


    • By zulius akbar amin


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">