Best way to programatically check the # of results in google for a keyword?

Discussion in 'PHP' started by kkibak, Aug 17, 2006.

  1. #1
    What would be the best way to set up a script where the user could enter a keyword and the script would then simply check Google to see how many results are in the index?

    If anyone could even point me in the right direction, that would be awesome.

    Thanks
    kkibak
     
    kkibak, Aug 17, 2006 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I remember right, you can do that with the Google API
     
    exam, Aug 17, 2006 IP
  3. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #3
    kkibak, Aug 17, 2006 IP
  4. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    exam, have you played around w/the API at all? If so, do you have any recommendations for how to do multiple queries?

    for ex if I want to check the # of results for
    test
    big test
    bigger test
    never mind
    etcetera

    im playing around with some array stuff now but its all sort of trial and error as ive never worked with apis before

    how would you recommend going through all these? thanks..
     
    kkibak, Aug 17, 2006 IP
  5. kkibak

    kkibak Peon

    Messages:
    1,083
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #5
    er answered my own question i think, but perhaps there's a more efficient way. for now, here's what im doing:

    enter list of keywords or whatever into textarea
    explode text area w/php to make array
    one at a time use the api to check em and get results that way
     
    kkibak, Aug 17, 2006 IP