This question is slightly related to the question located here.
My current solution is using the deprecated Google Web Search API - but since it's deprecated, qeuries to the API is now limited. This is a problem for me - the suggested alternative is using the Google Custom Search API but this only allows me to search on specific sites and pages. This is not what I need.
I need to be able to search the web for a query, preferebly through Google. But I'm open to alternatives.