K
K
korji2016-08-30 19:38:51
Google
korji, 2016-08-30 19:38:51

How to determine the number of pages in the Google index - php + oauth2?

Tell me how to determine the number of pages in the Google index for your sites using a php script? Authorization via oauth2. Through API Analytics I can get site traffic, but I didn’t find it anywhere about the index.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
evnuh, 2016-08-30
@evnuh

Analytics - this is about js, launched in the browser of your visitors
Webmaster - this is about the search base on Google servers, which is what you need.
What does authorization have to do with it?

K
korji, 2016-08-30
@korji

I have sites, there is a panel where they are displayed in a tablet. For sites, parameters are determined: attendance and number of pages in the index. According to Yandex, everything is fine, I receive data, but there have been problems with Google for more than a year, since they switched to oauth2.
How to get number of pages in google index with php script?
From Analytics I get attendance - current and for yesterday, using a php script with authorization via oauth2. Is it possible to somehow get the number of pages in the Google index?
Previously, the data was received by such a request:
$googleApiKey - api key
$url - url of the site, the number of pages of which we get.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question