How to Check Google Index Index URLs or Webpage Links

In my project, I need this result (Google index index), which will be added as important information.

If you have a link from where I can get the Google index index of the URL, it will be useful to me.

+8
google-search
source share
3 answers

I know it's late to answer this question, but I have a gr8 php function to do this ...
since I came across your question while searching for a solution
I want to share it with future search engines

php function:

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; } 

Use (at the desired location):

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

Hope this helps. Sagive

0
source share

I do not think that Google distributes all indexed pages and indexed links to information. he shares only a few publications, but shares important information with a trusted webmaster in Googleโ€™s webmaster tools.

Webmaster tool results can be displayed wherever you want.

You can check this through the website: domain.com or the website: url. There are several operators used by Google http://www.googleguide.com/advanced_operators_reference.html .

0
source share
-one
source share

Source: https://habr.com/ru/post/650551/


All Articles