Google Custom Search Image API to shut down in 2027, two key migration pitfalls revealed
Google's Custom Search JSON API is closed to new users and will fully retire on January 1, 2027, ending support for image search functionality. A developer maintaining cse-bridge, a self-hosted tool that replicates Google's search API format using SearXNG, documented two non-obvious bugs encountered while adding image search support. The first issue involves field mapping: unlike web results where the primary link points to a page, image results require the direct image URL in the link field, and silently falling back to the page URL causes clients to render nothing. The second pitfall concerns deduplication — using the page URL as a unique key collapses multiple images from the same gallery into a single result, mimicking the appearance of a misconfigured search engine. The developer's broader takeaway is that deduplication should always key on the identity of the returned entity, not the container page it was found on.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in