Vous n'êtes pas identifié(e).
1/ On va s'inscrire en mode Free sur : https://moz.com/products/api/pricing (25.000 row par mois)
2/ On recupere son AccessID et SecretKey.
3/ on Configure le script ci dessous
$expires = time() + 300;
$urlSafeSignature = urlencode(base64_encode(hash_hmac('sha1', $accessID."\n".$expires, $secretKey, true)));
$ch = curl_init("http://lsapi.seomoz.com/linkscape/url-metrics/?Cols=103616104485&AccessID=".$accessID."&Expires=".$expires."&Signature=".$urlSafeSignature);
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => json_encode($websites)
));
$content = curl_exec($ch);
curl_close( $ch );
$contents = json_decode($content);
print_r($contents);
?>
Infos utiles du retour :
pda = Domain Authority (A normalized 100-point score representing the likelihood of a domain to rank well in search engine results)
ueid = External Equity Links (The number of external equity links to the URL)
uid = Links (The number of links (equity or nonequity or not, internal or external) to the URL)
umrp = MozRank: URL (The MozRank of the URL, in both the normalized 10-point score (umrp) and the raw score (umrr))
umrr = MozRank: URL (The MozRank of the URL, in both the normalized 10-point score (umrp) and the raw score (umrr))
upa = Page Authority (A normalized 100-point score representing the likelihood of a page to rank well in search engine results)
us = HTTP Status Code ( The HTTP status code recorded by Mozscape for this URL, if available)
ut = Title (The title of the page, if available)
uu = Canonical URL (The canonical form of the URL)
Dernière modification par ciboulette (2016-04-07 07:28:13)
🔴 Hors ligne
🔴 Hors ligne
Merci Ciboulette ! (oui je sais, 4 ans plus tard, mais c'est seulement ce matin que j'en ai eu besoin ).
Entre temps les restrictions ont changé, c'est 2500 requêtes max (au lieu de 25000), on peut vérifier 10 urls max à chaque requête et il faut attendre 10 secondes entre chaque appel.
Mais ça fait le job :-)
Dernière modification par MisterBlack (2021-09-21 08:49:38)
🔴 Hors ligne