Get Google Index of Website By PHP cURL | Web Programming Tutorial

Get Google Index of Website By PHP cURL

Published Date: May 16, 2016 |
Published Time: 10:08 am |

Google index of any website is very much important for SEO Analytics . In previous the google has their api to collect the google index and backlink of any site. But recently they have removed this api and now the code is not working.


So now how you can get this index programmatically? Yes of-course there is another way to collect it by PHP cURL library. I am going to show you step by step procedure along with full working php function.

Do you know about google Advanced Search and Operator ? If not search with Google Advance Search  and Operator. You will find a bunch of result. I am not going to describe it in full details here.

To find out the google index of any website example, just you need to search with this keyword in google. You will find a result from google and a sentence About 128 results (0.78 seconds). So 128 is number which is called google index. Here is screen shot of the original search result.


Now come to the programming part. How you can grab this data by PHP. We just need to know about cURL and some regular expression. If you don’t know about it, don’t worry. Here I am going to give full working code example.



Have you ever checked this great SEO tools SiteSpy- Complete Visitor and SEO Analytics. It’s just awesome with lot of feature along with multiuser and SaaS facility.

Thank you very much. In our next tutorial , i will show you how to get google backlink.


  1. Janelle says:

    I decided to leave a message here on your Get Google Index of Website By PHP cURL | Web Programming Tutorial page instead of calling you. Do you need more likes for your Facebook Fan Page? The more people that LIKE your website and fanpage on Facebook, the more credibility you will have with new visitors. It works the same for Twitter, Instagram and Youtube. When people visit your page and see that you have a lot of followers, they now want to follow you too. They too want to know what all the hype is and why all those people are following you. Get some free likes, followers, and views just for trying this service I found:

  2. Jane says:

    Thanks for cotniibutrng. It’s helped me understand the issues.

  3. Cindi says:

    Whoah his weblog is great i like studying your articles.
    Stay up the great paintings! You know, many persons arre hujting
    around for this info, you can aid them greatly.

Leave a Reply

Your email address will not be published. Required fields are marked *