| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Apr 2006
Posts: 980
![]() ![]() ![]() ![]() ![]() ![]() ![]() | How to use Google API - Number of indexed pages I hope that this guide will help the new API developers in gaining a better understanding of the Google API so as to develop their own applications. ????: NamePros.com http://www.namepros.com/webmaster-tutorials/256291-how-use-google-api-number-indexed.html Stuff you need before coding 1. This guide uses NuSOAP class as the interaction with the Google web services. You can download the class at: http://sourceforge.net/projects/nusoap/ 2. A Google API license key is required. You can apply it here: https://www.google.com/accounts/NewA....com/createkey 3. This guide is short and coded in PHP to ensure an easier understanding. Live Demo A live demo can be found at: http://www.useseo.com/google-api-demo.php The script is also available for download. Simply change the Google key so that the script can work. Coding The following codes are the essential part of the script once the form button is pressed: PHP Code: The first line includes the NuSOAP class for later usage. The url keyed in by the user was appended with the site: operator on the left and saved in the parameter array. Further details of the parameters can be found at: http://code.google.com/apis/soapsear...rence.html#2_1 Finally, the results are saved in the $no_pages variable for display. Other possible usage As we only used the estimatedTotalResultsCount element here, there are many other elements that you can make use of to develop other applications. The format of the search response from Google can be found at: http://code.google.com/apis/soapsear...rence.html#3_1 Hope it helps
__________________ SEO Tips | One Day, One Card | KC Tan Logo Design | WordPress Coach Profit Blogging Workshop |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |