Alik Send
Alik Send

Reputation: 115

Using google custom search API to find images

I want to use Google's Custom Search API to find images using GET request. Like described here. But I don't want to look on images on one specific site, but want to get results like this. How I can do this with the Custom Search API?

Sending this request returns nothing: https://www.googleapis.com/customsearch/v1?key=[MY_KEY]&cx=017576662512468239146:omuauf_lfve&q=some+request&&safe=off&searchType=image&fileType=png. This cx is from google's manual

I must set cx param, but this value links my request to site, specified in cse control panel. However I don't want to limit my results to one site.

Upvotes: 0

Views: 1594

Answers (2)

Kirby
Kirby

Reputation: 724

I'm aware the question is over 6 years old, but better late than never. It's possible to create a Google programmable search engine that can search the entire web for images. When you create a programmable search engine, there is an option to search the entire web instead of just web sites that you specify. See https://programmablesearchengine.google.com/about/.

As an alternative, you could try Bing Image Search API. There is a limit to the number of image searches you can submit per day for free, but I have rarely hit the limit.

Upvotes: 0

Goblinlord
Goblinlord

Reputation: 3390

According to the documentation here: Google Custom Search > Overview

Google Custom Search enables you to create a search engine for your website, your blog, or a collection of websites.

It doesn't sound like that is what you are trying to do (you don't seem to want to search a predefined subset of resources).

Upvotes: 0

Related Questions