java – reverse image search API

I was looking for an API or method to perform a reverse image search from a Java or Python application, but I can not find anything. I've tried to make a request via Google but I could only make a query string, I want to make a query in which the image is actually the query.
Some solutions?

P.S. I do not necessarily need to work with Google, I've also seen yandex.com or tineye.