Hacker News new | ask | show | jobs
by surya 6637 days ago
Thanks for sharing this... But isn't the AJAX Search API to be used from within the browser (client) rather than from a central server?
1 comments

Initially yes, and it is intended to be use only for clients, although not only from javascript, i.e. as the guide says also from flash, etc. But nothing stops you from using it from the server too as it is technically possible, although I guess Google could stop responding requests coming always from same IP address, as would happen if you use your server instead of the client.
All very true. I would add that server-side parsing of JSON is very easy.

I think they're hinting at something by calling it "and other non-JS environments". My first reaction to that was "you mean like PHP?"

Yes, thats interesting... I wonder if they want to keep it quite (by making this info hard to find) or the developers of the API didn't think it through...