SerpAPI tool
SerpAPI is a Python tool that provides a wrapper to the SerpAPI Google Search Engine Results API and the SerpAPI Bing Search Engine Results API.
You can use the tool to retrieve search results from many different search engines, including Google and Bing. You can also specify a range of search parameters, such as the search query, location, and device type.
Prerequisite
Sign up at the SerpAPI website.
Connection
Connection is the model used to establish connections with SerpAPI.
Type | Name | API key |
---|---|---|
Serp | Required | Required |
The API key is on the SerpAPI account dashboard.
Inputs
The SerpAPI tool supports the following parameters:
Name | Type | Description | Required |
---|---|---|---|
query | string | The search query to be run. | Yes |
engine | string | The search engine to use for the search. Default is google . |
Yes |
num | integer | The number of search results to return. Default is 10. | No |
location | string | The geographic location from which to run the search. | No |
safe | string | The safe search mode to use for the search. Default is off . |
No |
Outputs
The JSON representation from a SerpAPI query.
Engine | Return type | Output |
---|---|---|
JSON | Sample | |
Bing | JSON | Sample |