1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Get the number of indexed pages

Discussion in 'Google API' started by klevisi, Nov 2, 2010.

  1. #1
    How can I get the number of indexed pages of a domain?
    The number which returns for searching site:domain.com .
     
    klevisi, Nov 2, 2010 IP
  2. sum298

    sum298 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    go to google .com
    and write
    site:your sitename
     
    sum298, Nov 2, 2010 IP
  3. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can also use Google Webmaster Tool. The update is faster.
     
    imperialDirectory, Nov 2, 2010 IP
  4. klevisi

    klevisi Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah I know site:yoursitename, and webmaster tools.
    But I wanted to program something in php which gets the data.
    I would like to know how can it be done using the API.
     
    klevisi, Nov 2, 2010 IP
  5. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    imperialDirectory, Nov 2, 2010 IP
  6. klevisi

    klevisi Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanx imperialDirectory.
    I know only how to parse XML files. What kind of protocol is this output?
     
    klevisi, Nov 2, 2010 IP
  7. klevisi

    klevisi Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Nevermind, it's json.
     
    klevisi, Nov 2, 2010 IP
  8. imperialDirectory

    imperialDirectory Peon

    Messages:
    395
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yup, its Json. I think you can get it in XML as well. You can try http://xml.googleapis.com
    Not sure will that works or not. I implemented this a year ago.
     
    imperialDirectory, Nov 2, 2010 IP
  9. klevisi

    klevisi Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks man, you were a great help.
     
    klevisi, Nov 2, 2010 IP
  10. kinah

    kinah Guest

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You can also use Google Webmaster Tool.
     
    kinah, Nov 10, 2010 IP