Input (required)
- API Key You must acquire the API Key first from Google. Please see below for the instruction
- Search Engine ID This is part of the API activation process. See below for details
- Search Keyword Enter word or words just like you enter them on your web-browser
- Search Type Choose between general Web search and the Image search
- Number of Results You can specify the number of results to show up in output (up to 100)
Input (optional – Get Process only)
- Exact Terms Limit the results to those that include word(s) or phrase(s) specified here.
- Date Restrict You can set the limitation to update dates – see below for formats
- File Type This is only for the Image search – see below.
- Exclude Terms Limit the results to those that does not contain word(s) or phrase(s) specified here.
- Site Search Search will be performed only in the domain you specify here
Output
- Return Value (CSV)
Headers are shown below
title | link | snippet |
How to obtain Google Search API key and the Search Engine ID
[1] API Key
Step 1
- visit https://console.cloud.google.com
- Login to google account which first time to use this console
- Click “CREATE” button to create new project
Step 2
- New project
- Project name
- Click “CREATE” button
Step 3
- Search with “custom search”
- Select “Custom Search API”
Step 4
- Click “TRY THIS API” button
Step 5
- Click “Get a Key”
Step 6
- Select a project. If there is no project, select Create a new project.
- Click “NEXT” button.
Step 7
- Copy API KEY
[1] Search Engine ID
Step 1
- Click “Programmable Search Engine” or Connect URL https://programmablesearchengine.google.com/about/
- Login to google account which first time to use this console
Step 2
- Click “Get started”
Step 3
- Type “www.google.com/*” for Sites to search
- Select Your Language. The default setting is English.
- Click “CREATE” button
Step 4
- Click “Control Panel”
Step 5
- Click the button of Search the entire web to turn it on.
Step 6
- Click “Copy to clipboard”
How to set the parameters
See example below.