Skip to content

Instantly share code, notes, and snippets.

@bmarshall511
Created August 20, 2014 02:07
Show Gist options
  • Select an option

  • Save bmarshall511/27bd29014ad0011a5522 to your computer and use it in GitHub Desktop.

Select an option

Save bmarshall511/27bd29014ad0011a5522 to your computer and use it in GitHub Desktop.
<?php
// Include the Mozscape API Class
require_once( 'class.MozscapeAPIClass.php' );
// Initialize the class by providing it with your Access Id and Secret Key, see http://www.seomoz.org/api/keys
$api = new Mozscape_API_Class( 'accessId', 'secretKey' );
// Get website metrics using the URL Metrics API, see http://apiwiki.seomoz.org/url-metrics
$url_metrics = json_decode( $api->urlMetrics( 'http://www.benmarshall.me', 133714411517 ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment