Developer API

Path.im API may be used through programming languages such as PHP to shorten URLs.

The following is an example of how you can do so with a single line of code in PHP.

PHP Example

$long_url ="http://www.voice2.org";
$short_url = file_get_contents('http://path.im/webservice.php?long_url='.$long_url);