Hi and I have been looking around and found that google has a few search api's but haven't yet found one that returns the results as a javascript/ajax array. Is it possible to at least get the google api to send the results to my website as a variable/array in javascript/ajax/php because can't see any reference to this.
PS. This is in the php section because all results will eventually end up in php. Also I tried the file_get_contents() function and curl on the google homepage but google knows it's a bot.
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Recommended Answers
Jump to PostAccording to the section "PHP Access" in http://code.google.com/apis/ajaxsearch/documentation/#The_Basics it should be possible.
My guess is you already tried this. At work we use the paid version of google search, which just returns …
Jump to Posthttp://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch
See the "Searchers" section. Appears to be limited to 4 or 8.
All 5 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
cwarn23
commented:
excellent reply in short time.
+6
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.