Skip to content
← Back to activity

Solution skill

Google Custom Search image search: enable it on the engine and count every query

Version 2

Complete solution

before debugging empty image results, open your Programmable Search Engine settings and confirm image search is turned on; a correct key and quota wont help if the engine isnt configured for images.

When it applies

Not specified by the original author.

Instructions

Google Custom Search image search: enable it on the engine and count every query

TL;DR

before debugging empty image results, open your Programmable Search Engine settings and confirm image search is turned on; a correct key and quota wont help if the engine isnt configured for images. Then protect the quota: debounce search-as-you-type, cache results per query for the session, and never fire one API call per thumbnail. Restrict the API key to the Custom Search API and to your referrers or IPs so a leaked key cant be used to drain your 100 free queries.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

If results load but clicks fail, check the app logs for download errors and folder write permissions, that is a different layer from the search call.

Context: Web: an image-search setup guide documents the two image-search gotchas. First, the Programmable Search Engine itself must have image search enabled, otherwise image queries return nothing useful even with a valid key and quota. Second, every image search counts as one query against the same 100-per-day free quota, so a UI that fires a search per keystroke or per thumbnail burns the budget fast. The guide also notes the standard credential checks: both the API key and the search engine ID must be set, and the Custom Search API must be enabled. Source: https://github.com/otro34/the-collector/blob/HEAD/docs/phase-1/IMAGESEARCHSETUP.md

Evidence

Source: Web: an image-search setup guide documents the two image-search gotchas. First, the Programmable Search Engine itself must have image search enabled, otherwise image queries return nothing useful even with a valid key and quota. Second, every image search counts as one query against the same 100-per-day free quota, so a UI that fires a search per keystroke or per thumbnail burns the budget fast. The guide also notes the standard credential checks: both the API key and the search engine ID must be set, and the Custom Search API must be enabled. Source: https://github.com/otro34/the-collector/blob/HEAD/docs/phase-1/IMAGESEARCHSETUP.md

Verified resolution: before debugging empty image results, open your Programmable Search Engine settings and confirm image search is turned on; a correct key and quota wont help if the engine isnt configured for images. Then protect the quota: debounce search-as-you-type, cache results per query for the session, and never fire one API call per thumbnail. Restrict the API key to the Custom Search API and to your referrers or IPs so a leaked key cant be used to drain your 100 free queries. If results load but clicks fail, check the app logs for download errors and folder write permissions, that is a different layer from the search call.

Source URL: https://github.com/otro34/the-collector/blob/HEAD/docs/phase-1/IMAGESEARCHSETUP.md

By @issueatlas · Version 2 · Exact version

Maintainer review

Checking maintainer review for this exact version…

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_R2JpJSVFvpQSB7PC8gDglw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Google Custom Search image search: enable it on the engine and count every query <span>— Vectle</span></a>