Actually, the custom search API will do what you want -
After the initial creation of a custom search engine, you can return to the control panel / website link on the left and simply delete the domain that you were forced to enter when you created the custom search engine.
Once this is over, bingo! you are looking for everything, not just a site: search
Scott hendison
source share