Moz Knowledge Base/API Support Forums/Mozscape Developer Discussion Group

Return Data is missing fields

Adam Audette
posted this on May 17, 2011 12:42 PM

I have great success in pulling data from the API using the URL Metrics API and a perl module I found off the internet. Like I said, I have had great success in pulling the data, but there are fields of data missing. Let me show you an example.

This is the result set from a pull using the URL from the URL-metrics API:

http://www.obrienstravelschool.com/fathers-day-gifts-from.htm

$VAR1 = {
'umrr' => 0,
'urrid' => 0,
'fjp' => '1.84831898952952',
'ftrp' => '2.54023690112632',
'ujid' => 0,
'pid' => 7,
'ptrp' => '2.16092656641551',
'fid' => 8,
'urid' => '18446744073709551615',
'uid' => 0,
'uemrp' => 0,
'ufq' => 'www.obrienstravelschool.com/',
'uu' => '',
'peid' => 9,
'umrp' => 0,
'pmrr' => '1.27499257568414e-10',
'fjr' => '5.22369033356799e-13',
'feid' => 9,
'ftrr' => '1.20229039297385e-10',
'ur' => '',
'ueid' => 0,
'uifq' => 0,
'fmrr' => '3.54235201284175e-11',
'pmrp' => '1.47776869485873',
'us' => 0,
'pjr' => '5.22369033356799e-13',
'uemrr' => 0,
'uipl' => 0,
'utrp' => 0,
'fejp' => '1.84831898952952',
'upl' => 'obrienstravelschool.com/',
'pejr' => '5.22369033356799e-13',
'pjp' => '1.84831898952952',
'fejr' => '5.22369033356799e-13',
'utrr' => 0,
'fmrp' => '1.69976103812963',
'ptrr' => '2.49947340653371e-10',
'pejp' => '1.84831898952952'
};

The fields of data that are missing are:

upa = Page Authority
pda = Domain Authority
ut = page title of the URL in question if available (i checked to see if a
page title was available and it was)

This field responds, but is nil:

uu = The URL in question, as it has been canonicalized in the Linkscape
index.

Here are my coding params for the request:

my $seomoz = WebService::SEOmoz::API->new(
    accessID   => $accessID,
    secretKey  => $secretKey,
    expiresInterval => $expiresInterval, # optional, default 300s
    ) or die "Can't init the seomoz instance: " . $WebService::SEOmoz::API::errstr;

 

    my $t = $seomoz->getUrlMetrics( {
        objectURL => $url,
    } ) or die $seomoz->errstr;

 

What is goofy is that I had been running this on the free API and getting
these fields back. We turned on the pro stuff late last week and this data
stopped showing up. Any help would be most appreciated.

 

Comments latest first

User photo
RKG-Dev

I found the answer in an earlier post.  I had to add a Cols= statement to my request instantiation:

    my $t = $seomoz->getUrlMetrics( {
        objectURL => $url,
        Cols => 133982846973,
    } ) or die $seomoz->errstr;

May 17, 2011 04:43 PM