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:
GET https://customsearch.googleapis.com/customsearch/v1?key=YOUR_API_KEY&cx=YOUR_SEARCH_ENGINE_ID&q=electric+vehicle+batteries&searchType=imageGoogle 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 field | Description |
|---|---|
| title | Image result title |
| link | Direct image URL |
| image.contextLink | URL of the webpage containing the image |
| image.thumbnailLink | Thumbnail URL |
| image.height | Image height in pixels |
| image.width | Image 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.
| Parameter | Purpose | Example |
|---|---|---|
| imgSize | Image size | large |
| imgType | Image type | photo |
| imgColorType | Color type | gray |
| imgDominantColor | Dominant color | blue |
| rights | Usage-rights criteria | cc_publicdomain |
| safe | SafeSearch filtering | active |
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.



