I was using seostats from github that used the mozscape api and made calls like this. the query was for seo so all the domains would have results . starting to think it might be an issue on seostats end.
id loop over the results from google from that keyword then display the da/pa
in the screenshot I blocked out the domains, but I attached a new screenshot, now If I only check 3 domains it works fine, anything over that says n.a
use \SEOstats\Services\Google as Google;
use \SEOstats\Services\Mozscape as Mozscape;
$getKeyword = $_POST['keyword'];
$serps = Google::getSerps($getKeyword, 3);
foreach ($serps as $serp) {
$serp = $serp['url'];
$pageAuthority = Mozscape::getPageAuthority($serp);
$domainAuthority = Mozscape::getDomainAuthority($serp);
$backlinks = Google::getBacklinksTotal($serp);
echo "
";
echo "" . $serp. "
";
echo "Page Authority: " . round($pageAuthority) . " ";
echo "Domain Authority: " . round($domainAuthority) . "";
echo "
";
}
?>