2

Using the Google AJAX search api

How can I call a search from my own text box? And parse the results in javascript?

steven
  • 13,147
  • 16
  • 39
  • 39

3 Answers3

2

The old API was deprecated in Nov 2010, although it is still available.

You're now supposed to use the custom search API which they've geared towards searching only particular sites. You can actually get it to search the whole web by following the method described here:

http://www.google.com/support/customsearch/bin/answer.py?answer=1210656

mattmanser
  • 5,719
  • 3
  • 38
  • 50
1

The Google Search API is really well documented. This looks like something you'd be after, maybe?

peirix
  • 36,512
  • 23
  • 96
  • 126
1

Go here for the API, Developer's documentation and samples.

There is also a nice blog here.

Federer
  • 33,677
  • 39
  • 93
  • 121