A program that gather search results from Google and Yahoo
I am working on a program that gather search results from major search engines (currently Google and Yahoo).

Ultimately, we would like to search websites of my country, targeting forums and blog posts. We would also like to sort these results by domain or date and time.

I have looked at Google Search API, I found there are many versions.

Google AJAX Search API:<br />
Deprecated but the example codes seem to work. Google's policy is to keep it running for 3 years. I should be able to use it but I will eventually have to switch.

Google Custom Search API:<br />
There seems to be no way of extracting the search results programmatically EXCEPT to make a custom HTML crawler to extract "by hand" the information. This would also limit how many results will I be able to gather. Does this API support outputting search results in well-formed XML or JSON at all?

Google Site Search API:<br />
This is a paid service. I have no problem  with that. However this does NOT has the ability to search the "entire web", but only to search from a list of targeted sites. I would like to search for all websites in my country and I am not sure if this is available.

Yahoo:<br />
I found sea monkey but its deprecated too. Is anyone out there using any API to gather results from Yahoo?

Do you recommend parsing the raw HTML in a customized parser, in order to extract all the needed information, or to use an official API? Have anyone used the said deprecated API at all and can confirm if they still work at all? Has anyone used Google Site Search for a similar purpose? 

p.s. I will be using PHP
A program that gather search results from Google and Yahoo
===

I am working on a program that gather search results from major search engines (currently Google and Yahoo).

Ultimately, we would like to search websites of my country, targeting forums and blog posts. We would also like to sort these results by domain or date and time.

I have looked at Google Search API, I found there are many versions.

Google AJAX Search API:<br />
Deprecated but the example codes seem to work. Google's policy is to keep it running for 3 years. I should be able to use it but I will eventually have to switch.

Google Custom Search API:<br />
There seems to be no way of extracting the search results programmatically EXCEPT to make a custom HTML crawler to extract "by hand" the information. This would also limit how many results will I be able to gather. Does this API support outputting search results in well-formed XML or JSON at all?

Google Site Search API:<br />
This is a paid service. I have no problem  with that. However this does NOT has the ability to search the "entire web", but only to search from a list of targeted sites. I would like to search for all websites in my country and I am not sure if this is available.

Yahoo:<br />
I found sea monkey but its deprecated too. Is anyone out there using any API to gather results from Yahoo?

Do you recommend parsing the raw HTML in a customized parser, in order to extract all the needed information, or to use an official API? Have anyone used the said deprecated API at all and can confirm if they still work at all? Has anyone used Google Site Search for a similar purpose? 

p.s. I will be using PHP