There are two parts to this, creating a custom search and then enabling billing for your Gooogle Account.
-
Go to Custom Search
-
Click
Addto add your own custom engine -
Add a custom site into
Sites to search. We wont be using this but is required to enable this feature -
Fill in the
Name of the search enginefield and clickcreate -
In the LHS sidebar, select the newly created Custom Search and click
Setup -
In the settings, enable
Image search -
Copy the
Search engine IDto the.envfile and save it asCSE_ID
-
Scroll down to
Programmatic Accessand clickGet StartedforCustom Search JSON API -
On the JSON Custom Search API: Introduction, click
Create a keyand save the generated token in the.envfile asCSE_API_KEY -
Run
sls deployin the terminal to redeploy the app with the newly added Custom Search keys
- Log into
Google cloudand navigate to the billing section - Create a billing account and fill out the details
- In the LHS tab, click
API & Services>Dashboard
- Select the newly created
Custom Search API
- Click
quotas - On the RHS, edit
Queries per dayand update this to match your predicted usage volume
The Google Cloud account offers you $200 free credit each month. Pricing for the google custom search can be found here. Assuming your usage isn't excessive, you should exceed the $200 free monthly credit!
