I would like to write a script that would access the google api pass a url and a list of search terms and then return the search position of each of those key terms for that url. Is this a simple enough task or even possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s certainly possible. Your question is a bit too vague to provide a better answer than “Yes”, though.
Do be aware that the position of a site in search results can vary by location and the Google site you use (e.g., if you’re in the UK, using http://www.google.co.uk, I’d expect a UK website to rank higher than it would if you’re in the US, using http://www.google.com).
The Google Custom Search API documentation is likely to be helpful to you.Sorry, this documentation is for site-specific searches (i.e. searching your own website), not Google in general.You haven’t actually said what language you intend to use, but there’s Perl modules on CPAN which would make the task quite easy, for instance Google::Search.