Here's an example of how the Applian Affiliate API works.
Here's how we implemented this using PHP. The form variable $url is used here:
<?php
$query = "https://applian.com/recording_solutions/find_solution_api.php?action=textlink&affiliate_id=199005&url=$url";
if (($fp = fopen($query, "r")))
{
$data = fread($fp, 4096);
fclose($fp);
echo("<p>$data</p>");
}
?>