Automatically get product images with Google Images¶
The product images are very useful in CoquiAPPs, for example, to quickly find a product or check if you scanned the right one, but it can be a bit painful to set up especially if you have a lot of products. Google Custom Search allows finding images automatically for your product, based on their barcode, keeping your focus on what matters in your business.
This functionnality requires configuration both on Google and on CoquiAPPs.
With a free Google account, you can get up to 100 free images per day. If you need a higher rate, you’ll have to upgrade to a billing account.
Google API dashboard¶
Go to the Google Cloud Platform API & Services page to generate Google Custom Search API credentials. Log in with your Google account.
Select or create an API project to store the credentials. Give it an explicit name (e.g. CoquiAPPs Images).
In the credentials section, click on Create Credentials and select API Keys.
Save your API Key. You’ll need it for the next step in CoquiAPPs!
Use the search bar to look for Google Custom Search API and select it.
Enable the API.
Google Programmable Search dashboard¶
Go to Google Programmable Search Engine and click on Get Started. Log in with your Google account.
Fill the language and the name of the search engine. Give it an explicit name (e.g. CoquiAPPs Images).
Google doesn’t allow to create a search engine without having entered at least one specific site to search on. You can put any website (e.g. www.google.com) for this step, we will remove it later.
Validate the form by clicking on Create. Then, go to the edition mode of the search engine that you created (either by clicking on Control Panel on the confirmation page or by clicking on the name of your Search Engine on the Home page).
In the basics tab, make sure to enable Image search, SafeSearch and Search the entire web.
Once Search the entire web is enabled, you can safely delete the site that you put at the previous step.
Save your Search Engine Id. You’ll need it for the next step in CoquiAPPs!
Go to, activate Google Images and save.
Go back to, enter your API Key and Search Engine ID in Google Images settings and save again.
Automatically get your product images in CoquiAPPs¶
The action to automatically get your product images in CoquiAPPs appears in any Products or Product Variants list view. Here is a step-by-step guide from the Inventory app.
Go to the Products menu (or ) from any application that uses products like Inventory or Sales.
On the list view, select the products that needs an image.
Only the 10,000 first selected products or product variants will be processed.
Only the products or product variants with a barcode and without an image will be processed.
If you select a product that has one or more variants from the Products view, each variant matching the previous criteria will be processed.
In the action menu, select Get Pictures from Google Images and validate by clicking on Get picture.
You should see your images appearing incrementally.
Only the 10 first images are fetched immediatly. If you selected more than 10, the rest will be fetched as a background job.
The background job process about 100 images in a minute. If you reach the quota authorized by Google (either with a free or a paid plan), the background job will put itself on hold for 24 hours and continue where it stopped the day before.