This repository has been archived by the owner on May 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 603
Google API Setup for Image Search Command
appu1232 edited this page Jul 25, 2017
·
7 revisions
In order to use the >i
command to image search, you will need a Google API key and a Custom Search Engine ID.
Follow these steps to obtain them:
- Visit the Google API Console. Once you are in the Console, create a new project.
- Go to
Library
and searchCustom Search API
. Click it and enable it. - Go to
Credentials
and clickcreate credentials
and chooseAPI Key
(no need to restrict the key). The value under "Key" is your api key. Paste this into theoptional_config.json
in thesettings
folder undergoogle_api_key
. - Go here and click
Add
and thenCreate
(if asked to specify a site, just do www.google.com) - On the home page of the Custom Search webpage, click on the newly created search engine and change the
Sites to Search
option toSearch the entire web but emphasize included sites
. - Make sure the
Image search
option is enabled and make sure to click theUpdate
button at the bottom when you are done with the changes! - Go to
Details
section and clickSearch Engine ID
to grab the ID. Copy this and add it forcustom_search_engine
in the optional_config.json.
Google may take a little while to properly register your key so the search feature may not work right away. If it's still not working after a few hours, then you may have messed up somewhere.
Important Note: Free custom search has a limit of 100 searches per day. This should be more than enough but feel free to pay for more if you would like, although I don't think it's needed.