Request - Requests are sent to the API endpoint with the arguments using GET.
Response - The expanded Url is sent as response using php echo function.

Eg.
Request - http://www.linkexpander.com/?url=http://goo.gl/tzLLGm

Response - http://www.linkexpander.com

http://goo.gl/tzLLGm Redirects to http://www.linkexpander.com
Note : You can use this as a free service to unshorten url's from your own API or website.
This can also be used to expand url's in bulk. PHP echo function is used to output final URL. You are not redirected to that link.