e768098d0e
Flake8 Lint / flake8 (push) Waiting to run
Spell check CI / Spell_Check (push) Waiting to run
tools_continuous_delivery / Private PyPI non-main branch release (push) Has been skipped
tools_continuous_delivery / Private PyPI main branch release (push) Failing after 2m42s
Publish Promptflow Doc / Build (push) Has been cancelled
Publish Promptflow Doc / Deploy (push) Has been cancelled
1.9 KiB
1.9 KiB
SerpAPI
Introduction
The SerpAPI API is a Python tool that provides a wrapper to the SerpAPI Google Search Engine Results API and SerpApi Bing Search Engine Results API . We could use the tool to retrieve search results from a number of different search engines, including Google and Bing, and you can specify a range of search parameters, such as the search query, location, device type, and more.
Prerequisite
Sign up at SERP API homepage
Connection
Connection is the model used to establish connections with Serp API.
| Type | Name | API KEY |
|---|---|---|
| Serp | Required | Required |
API Key is on SerpAPI account dashboard
Inputs
The serp api tool supports following parameters:
| Name | Type | Description | Required |
|---|---|---|---|
| query | string | The search query to be executed. | 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 to execute the search from. | No |
| safe | string | The safe search mode to use for the search. Default is 'off'. | No |
Outputs
The json representation from serpapi query.
| Engine | Return Type | Output |
|---|---|---|
| json | Sample | |
| bing | json | Sample |