Serper Search
Overview
Section titled “Overview”The Serper Search LOP provides direct access to Google Search results through the Serper.dev API. It supports nine search types — web, images, videos, scholar, patents, shopping, maps, reviews, and autocomplete — with localization controls for language, country, and time filtering.
Agent Tool Integration
Section titled “Agent Tool Integration”This operator exposes 8 tools that allow Agent and Gemini Live LOPs to perform Google searches across web, images, videos, scholar, patents, shopping, maps, and reviews.
Use the Tool Debugger operator to inspect exact tool definitions, schemas, and parameters.
When connected to an Agent LOP, the agent gains access to eight search tools (one per search type, excluding autocomplete). Each tool accepts a query string plus optional num_results, country, and language parameters. The agent can choose the appropriate search type based on the user’s request — for example, using serper_scholar_search for academic queries or serper_images_search when looking for visual references.
Tools are only exposed when a valid API key is configured. If no key is present, the operator returns an empty tool list.
Requirements
Section titled “Requirements”- Serper API Key: Sign up at serper.dev and obtain an API key. Pulse the Get API Key button on the API Key page to open the sign-up page in your browser.
Input/Output
Section titled “Input/Output”Inputs
Section titled “Inputs”None — queries are configured via parameters or triggered by agent tool calls.
Outputs
Section titled “Outputs”- Output 1: A results DAT containing all search results. Each row stores the query ID, query text, search type, full JSON response, and timestamp. Use the Output DAT menu to select which internal table is wired to the output (results, related searches, map results, shopping, or search info).
Usage Examples
Section titled “Usage Examples”Setting Up Your API Key
Section titled “Setting Up Your API Key”- On the API Key page, paste your Serper API key into the Serper API Key field.
- The key is automatically saved to your system’s ChatTD configuration directory and persists across sessions.
- Once saved, the field displays “API KEY LOADED” and becomes read-only.
Basic Web Search
Section titled “Basic Web Search”- On the Serper page, set Search Type to “Web Search”.
- Enter your query in the Search Query field.
- Pulse Execute Search.
- Results appear in the output DAT. The Current Status field shows progress and completion.
Image and Video Search
Section titled “Image and Video Search”- Set Search Type to “Images” or “Videos”.
- Enter your query and pulse Execute Search.
- Results include image/video URLs, thumbnails, and metadata in the JSON output.
Scholar and Patent Research
Section titled “Scholar and Patent Research”- Set Search Type to “Scholar” or “Patents”.
- Enter an academic or patent query.
- Pulse Execute Search to retrieve scholarly articles or patent records.
Maps and Reviews
Section titled “Maps and Reviews”- Set Search Type to “Maps” to search for locations. Additional parameters become available: GPS Coordinates, Place ID, and Customer ID (CID).
- Set Search Type to “Reviews” to retrieve Google reviews for a location. Use Sort Reviews By to order results by relevance, date, or rating.
Localized Search
Section titled “Localized Search”- Set Language Code and Country Code to target a specific locale (e.g., French / France).
- Optionally set Location for more specific geographic targeting.
- Use Time Filter to restrict results to the past hour, day, week, month, or year (available for web, video, and shopping searches).
Using with an Agent
Section titled “Using with an Agent”- Create an Agent LOP and connect the Serper Search operator to one of the agent’s tool inputs.
- Ensure a valid API key is configured on the Serper Search operator.
- The agent automatically receives eight search tools and selects the appropriate one based on context.
Best Practices
Section titled “Best Practices”- Set sensible defaults for country and language to match your audience before connecting to an agent. The agent inherits these defaults when it does not specify overrides.
- Use Time Filter for news-sensitive queries to avoid stale results.
- Pagination: Adjust Number of Results and Page Number to retrieve more results or navigate through pages of results.
- Clear Results periodically to keep the results table manageable, especially during long sessions with many queries.
Troubleshooting
Section titled “Troubleshooting”- “Serper API key is not configured”: Paste a valid API key on the API Key page. The key must be longer than 20 characters to be accepted.
- “Query empty” status: Enter a search query before pulsing Execute Search.
- No tools exposed to agent: Verify the API key is loaded (the field should show “API KEY LOADED”). Without a key,
GetTool()returns an empty list. - Parameters greyed out: Some parameters are only active for certain search types. For example, GPS Coordinates and Place ID only appear when Search Type is set to “Maps”, and Sort Reviews By only appears for “Reviews”.
Parameters
Section titled “Parameters”Serper
Section titled “Serper”op('serper_search').par.Selectresult Int - Default:
0- Range:
- 0 to 1
- Slider Range:
- 1 to 0
op('serper_search').par.Autosetselect Toggle - Default:
False
op('serper_search').par.Query Str - Default:
"" (Empty String)
op('serper_search').par.Search Pulse - Default:
False
op('serper_search').par.Clear Pulse - Default:
False
op('serper_search').par.Status Str - Default:
"" (Empty String)
op('serper_search').par.Location Str - Default:
"" (Empty String)
op('serper_search').par.Gpscoords Str - Default:
"" (Empty String)
op('serper_search').par.Placeid Str - Default:
"" (Empty String)
op('serper_search').par.Cid Str - Default:
"" (Empty String)
op('serper_search').par.Numresults Int - Default:
0- Range:
- 1 to 100
- Slider Range:
- 1 to 100
op('serper_search').par.Page Int - Default:
0- Range:
- 1 to 10
- Slider Range:
- 1 to 10
op('serper_search').par.Autocorrect Toggle - Default:
False
API Key
Section titled “API Key”op('serper_search').par.Apikey Str - Default:
"" (Empty String)
op('serper_search').par.Getapikey Pulse Opens serper.dev in your browser to get an API key.
- Default:
False