As the URL-shortener-services are mostly simple redirectors they use the location header to tell the browser where to go to. You can use PHP's own get_headers() function to get the appropriate header: $headers = get_headers('http://goo.gl/fbsfS' , true); echo $headers['Location']; ...