How do I find out how many pages Google has indexed on my website? I know I can just Google site:http://foo.com, but I would like to record the data and not have to do it by hand. Is there an API for pulling this data?
This is the number I want:

Google search: site:apple.com

I don't want the number of links, I want the pages indexed.

3 Answers 3


Doing a site: search wouldn't necessarily show you everything, anyway. That only shows a sub-set of whatever it'd return. You get this information in Webmaster Tools. (This would additionally tell you if there are any particular problems with indexing you.)

  • Where in Webmaster Tools do I find the pages indexed?
    – daviesgeek
    Sep 7, 2011 at 17:16
  • @daviesgeek - webmaster tools only tells you the number indexed. It won't tell you which pages.
    – JMC
    Sep 7, 2011 at 21:07
  • @JMC I know, but where do I find that number?
    – daviesgeek
    Sep 7, 2011 at 21:12
  • You have to submit a sitemap. Once the sitemap is indexed it will tell you the number of pages indexed from the sitemap. If it's not on the sitemap it doesn't count toward that number.
    – JMC
    Sep 7, 2011 at 21:14

You must use : http://www.opensiteexplorer.org/ and the other option is check webmaster tool Open webmaster tool > Your site on the web > Links to your site.


I haven't thoroughly read through the docs, but as far as APIs go I think Google's custom search API is your best bet (https://developers.google.com/custom-search/v1/overview) this replaced their web search API which did have the functionality you're looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.