C# Possible to search Google by image and downloading the first one?

Sartheris Stormhammer picture Sartheris Stormhammer · May 10, 2015 · Viewed 12.8k times · Source

Is there a way to programatically upload an image file to search in Google, and then downloading the first one (the one with best resolution)?

EDIT: The Google Search API would not work for me, as I would have much more than 100 requests per day, and I am not willing to pay, since I am not a company

Answer

molnarm picture molnarm · May 10, 2015

Yes, there is. The Google Custom Search API allows you to submit queries (including images) and retrieve results programmatically. There are even client libraries available for multiple languages.

EDIT: After OP changed his question, basically saying that he doesn't want to use the Google API, I can only refer to this(a bit outdated) question and quote the Google Terms of Service:

1.4 Appropriate Conduct. You shall not, and shall not allow any third party to: ... (i) directly or indirectly generate queries, or impressions of or clicks on Results, through any automated, deceptive, fraudulent or other invalid means (including, but not limited to, click spam, robots, macro programs, and Internet agents);

So to recap, it is possible, but it is only legal via the API I linked above.