Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

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.

share|improve this answer

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.

share|improve this answer
    
I don't want to know the links to my site. See my revised answer. –  daviesgeek Sep 21 '11 at 16:00
    
Ok then you can use : searchenginegenie.com/allsites-total-pages.html and seochat.com/seo-tools/indexed-pages tool –  Nishi Sep 22 '11 at 5:11

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.)

share|improve this answer
    
Where in Webmaster Tools do I find the pages indexed? –  daviesgeek Sep 7 '11 at 17:16
    
@daviesgeek - webmaster tools only tells you the number indexed. It won't tell you which pages. –  JMC Sep 7 '11 at 21:07
    
@JMC I know, but where do I find that number? –  daviesgeek Sep 7 '11 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 '11 at 21:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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