Script to check how many pages from a site is indexed in

OK, this is part of what I’m doing to fix my old script (php pagerank checker and sh*t). I noticed that my indexed page checker and bot last access checker did not work anymore. It was because I’m not using API at all to get the data. Instead, I do  some simple scraping on search result page. (So, I’m not calling any Azure Datamarket API here)

Without more a do, this is the full PHP script code:

No fancy and advanced code there, just simple cut and grab. You might consider using regex when parsing the search results from

How to use it

The result would be in integer (0 if hasn’t indexed any of your site’s pages).

Fully working demo can be seen here: on “ Indexed” part.

bing indexed page in search result

this is how you check how many your site’s pages are indexed by

As you can see that the result may vary depending on your location (or where you put the script) and sometimes, gave invalid result (such as 0, where the real value might be higher than that)

  1. Nice script
    Thank you..

Leave a Reply

Trackbacks and Pingbacks:

%d bloggers like this: