8

在我的项目中,我需要将此结果(Google 索引计数)添加为重要信息。

如果您有任何链接,我可以从中获取 url 的 Google 索引计数,这将对我有所帮助。

4

3 回答 3

0

我认为 Google 不会向公众共享所有索引页面和索引链接信息。它只向公众分享很少的信息,但在谷歌网站管理员工具中向经过验证的网站管理员分享主要信息。

网站管理员工具的结果可以显示在您想要的任何地方。

您可以通过 site:domain.com 或 site:url 进行检查。google http://www.googleguide.com/advanced_operators_reference.html使用的运算符很少 。

于 2013-10-24T15:31:42.230 回答
0

我知道回答这个问题已经很晚了,但我有一个 gr8 php 函数可以做到这一点......
因为我在寻找解决方案时偶然发现了你的问题,
我想与未来的搜索者分享

php函数:

function getGoogleCount($domain) {
    $content = file_get_contents('http://ajax.googleapis.com/ajax/services/' .
        'search/web?v=1.0&filter=0&q=site:' . urlencode($domain));
    $data = json_decode($content);
    $result = intval($data->responseData->cursor->estimatedResultCount);

    if ($result > 1000) {
      $result = floor($result / 1000) . 'K';
    }
    return $result;
}

用法(在所需位置):

<?php echo getGoogleCount('http://www.example.com'); ?>

希望这可以帮助。
贤者

于 2012-09-16T02:51:10.143 回答
-1

请访问以下链接:

http://www.wetware.co.nz/blog/2009/07/googles-index-count/

于 2010-12-30T11:30:28.277 回答