I want get Number of indexed pages of any website so, it will give me exact number of pages in google.
What I have tried:
Uri queryUri = new Uri(string.Format("http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:{0}", url));
using (WebClient client = new WebClient())
{
string getString = client.DownloadString(queryUri);
dynamic s = JsonConvert.DeserializeObject(getString);
var IndexedPage = s["responseData"]["cursor"]["estimatedResultCount"].Value;
lblIndexedPageRecv.Text = IndexedPage;
}
its working but not giving me right answer
my code is giving different values then other online webCheckers like one of this: http://www.pingler.com/seo-tools/tools/google-indexed-pages-checker