What is Google Custom Search API Image Search?

Pooja Gurung
What is Google Custom Search API Image Search?

Google Custom Search API Image Search is a feature of the Custom Search JSON API that lets developers retrieve existing images using text-based queries. It returns image URLs, thumbnails, dimensions, and source webpage information in JSON format.

Unlike AI image generators, the Google Custom Search JSON API discovers images rather than creating them. For example, a research application can use it to find and display photographs of electric vehicle batteries.

The API is closed to new customers and will be discontinued on January 1, 2027.

TL;DR

  • Search method: Text-based queries with searchType=image.
  • Response: Image URLs, thumbnails, dimensions, and source webpages.
  • Filters: Image size, type, color, and usage rights.
  • Availability: Existing customers must migrate by January 1, 2027.

How does Google Custom Search API Image Search work?

Google Custom Search API returns images instead of webpages when developers add searchType=image to a standard API request.

Existing integrations require four parameters:

  • key: An existing Google API key.
  • cx: The ID of a Google Programmable Search Engine with image search enabled.
  • q: The text-based search query.
  • searchType=image: Requests image results.

For example, to search for electric vehicle battery images:

code
GET https://customsearch.googleapis.com/customsearch/v1?key=YOUR_API_KEY&cx=YOUR_SEARCH_ENGINE_ID&q=electric+vehicle+batteries&searchType=image

Google returns matching image results in JSON format. Search coverage depends on the configured Programmable Search Engine.

Use TinyFish in your agent

Add TinyFish to ChatGPT, Claude, Cursor and more in one click.

Connect TinyFish

What does Google Custom Search API Image Search return?

Google Custom Search API Image Search returns image URLs and metadata rather than downloading image files.

esponse fieldDescription
titleImage result title
linkDirect image URL
image.contextLinkURL of the webpage containing the image
image.thumbnailLinkThumbnail URL
image.heightImage height in pixels
image.widthImage width in pixels

Applications can use these fields to display previews, organize images by dimensions, and link to source webpages.

The API returns up to 10 results per request and up to 100 results per query through pagination. Each additional page consumes another API request.

See Google's API response documentation for the complete response structure.

What image search filters does Google Custom Search API support?

Google Custom Search API supports filters for image size, type, color, and usage rights, along with SafeSearch.

ParameterPurposeExample
imgSizeImage sizelarge
imgTypeImage typephoto
imgColorTypeColor typegray
imgDominantColorDominant colorblue
rightsUsage-rights criteriacc_publicdomain
safeSafeSearch filteringactive

For example, combining imgSize=large and imgType=photo narrows a search for electric vehicle batteries to large photographs. SafeSearch is a general search setting that also applies to image results.

Finding an image does not automatically grant permission to reuse it. Even when using the rights filter, developers should verify licensing, ownership, and usage permissions at the original source.

See Google's Custom Search JSON API reference for supported parameters.

Is Google Custom Search API Image Search free?

Yes. Existing customers receive 100 free queries per day, shared between web and image search. Image search is not priced separately.

According to Google's API pricing documentation:

  • Free quota: 100 queries per day.
  • Paid usage: $5 per 1,000 additional queries.
  • Daily limit: 10,000 queries.

These rates apply to existing customers only.

Is Google Custom Search API Image Search being discontinued?

Yes. Google Custom Search JSON API Image Search will be discontinued on January 1, 2027, alongside regular web search through the API.

The Google Custom Search API shutdown does not affect Google Images itself.

When evaluating Google Custom Search API alternatives, developers should check whether a replacement supports:

  • Dedicated image-search results.
  • Image URLs, thumbnails, dimensions, and source metadata.
  • Image-specific filters.
  • Required search coverage and usage limits.

Not every web search API supports image search. Applications using both should evaluate web and image search requirements separately.

Migrating from Google Custom Search JSON API?

Talk to the TinyFish sales team about your search requirements and image-search dependencies.

AI disclosure

Content on this website may be created or refined with the assistance of AI tools and is subject to human editorial review.

FAQ

Questions, answered.

Does Google Custom Search API support reverse image search?

Can Google Custom Search API search images from specific websites?

Can Google Custom Search API find images with transparent backgrounds?

Can Google Custom Search API filter image results by date?

Get started

Start building.

No credit card. No setup. Run your first operation in under a minute.

Get $8 in Wallet fundsRead the docs