M
M
maaGames2015-12-12 14:02:39
Google
maaGames, 2015-12-12 14:02:39

Image search service by description instead of ajax.googleapis?

I used image search by name/description in my program using ajax.googleapis.com service. For a long time it was deprecated, but now it has finally been covered up.
Is there any similar free service that can be used from a desktop application via cURL?
Until recently, I used requests like " https://ajax.googleapis.com/ajax/services/search/i... ", getting json from image urls, etc.
The question is almost vital.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
maaGames, 2015-12-12
@maaGames

I found a solution through bing (5000 requests per month for free, instead of 100 per day, as Google had)
You need to register with bing and connect the Bing Search Api. You can then use queries like:
https://api.datamarket.azure.com/Bing/Search/v1/Im... 'QUERY'&$format=json&$Top=5
to get the top five results for that query in json format.
Because There is no AppId anymore, you have to use your username/password hash for authorization (you can find it on the bing search usage page by clicking the "show" link at the top of the page. For basic authorization in cURL, you get a code like this:
curl_easy_setopt( curlHandle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;
curl_easy_setopt ( curlHandle, CURLOPT_USERPWD, "HASH:HASH" );
curl_easy_perform( curlHandle ));

A
Alexander Taratin, 2015-12-12
@Taraflex

from desktop app

Why not just parse Google's results? If you parse in one thread, then they should not block.

F
frees2, 2015-12-13
@frees2

In general, I made a script for obtaining an image from the Google rss feed.
Quite simply, enter the name and get a picture
In China, they found a giant salamander
news.google.com/news?pz=1&cf=all&ned=ru_ru&hl=ru&q=In+ China+ they found a giant+ salamander +&as_qdr=w&as_drrb=q&cf=all&output=rss
t0.gstatic.com/images?q=tbn:ANd9GcTnHt3_pM3583VHW4...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question