ankur0101 Posted June 1, 2011 Share Posted June 1, 2011 Hello friends, Posting this thread after many months. Well I am making a small script in which on first page there will be a text box with button. What I want to have is, When we enter any keyword, like "yahoo" in textbox and click on submit button, on next page, there should be top 10 domain names from google search. One of the most important is it should have option to select pages from specific countries like from google.co.uk or google.com or google.jp, this should be on first page. I dont know how to fetch first 10 results domain names / URL and insert it in PHP variable and populate in table. Need help Quote Link to comment https://forums.phpfreaks.com/topic/238064-how-to-fetch-google-search-results-in-php/ Share on other sites More sharing options...
George Botley Posted June 1, 2011 Share Posted June 1, 2011 As you will be needing Googles data, they will need to provide it to you over something called an API. Most of Googles API scripts are free to use. Alternatively google offer search boxes in iframes etc, although I can't remember the link. Quote Link to comment https://forums.phpfreaks.com/topic/238064-how-to-fetch-google-search-results-in-php/#findComment-1223396 Share on other sites More sharing options...
ankur0101 Posted June 2, 2011 Author Share Posted June 2, 2011 Yup I know that I have to use Google API But how to use it ? I have never used google API. Any documentation ? any help ? Quote Link to comment https://forums.phpfreaks.com/topic/238064-how-to-fetch-google-search-results-in-php/#findComment-1223883 Share on other sites More sharing options...
mikesta707 Posted June 2, 2011 Share Posted June 2, 2011 A quick google search would have probably helped you quicker, but the following may be a good start http://code.google.com/apis/customsearch/v1/overview.html Quote Link to comment https://forums.phpfreaks.com/topic/238064-how-to-fetch-google-search-results-in-php/#findComment-1223893 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.