Returns all URLs being the link destination of a domain. The link destination get returned with Get parameter and anchor text. Please also consult: getLinkedPages.

Route /links/getHrefs[/:key[/:domain[/:format[/:limit]]]]
Necessary parameter domain
Optional parameter limit (max:1000)
Return values href
Cross references
Hints Limit: The maximum limit is 1000. To get more results, please use the parameter skip.
resultCount: Shows the amount of the result without limits. Usefull for pagination.


Labeling Description Values margin Default value
domain Contains a qualified domain name. (www.)?(A-Z|a-z|0-9)+. (a-z)+
limit Defines the amount of the returned results. (max:1000) 0-1000 100

Return values

Labeling Description Values margin
hrefs A numerical array with the URLs of the linking websites incl. parameter numerical array with strings


Message Description
maximum limit exeeded The maximum limit is reached.
no permission The key has no access to this function.
internal error An internal error occured.
param missing A required parameter is missing.
param invalid The value of a parameter is not valid.
result empty The request was successful, but the result itself is empty.
cost error The current credit amount is not sufficient to handle the request.
0k. The processing was successful.

Exemplary results

$root = '';
$arrayParams = array(
 'service' =>'links',
 'method' =>'getHrefs',
'key' =>'myPersonalKey',
 'domain' =>'',
 'format' => 'xml'
$GETparams = implode('/', $arrayParams);

$requestURL = $root.$GETparams;

if (!function_exists('curl_init')) die('cURL not available');

$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_URL, $requestURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Download the given URL, and return output
$output = curl_exec($ch);

// Close the cURL resource, and free system resources

echo $output;





<?xml version="1.0"?>