Serper
The robomotion serper CLI connects to Serper's Google Search API for fast, structured search results. It searches Google web, images, videos, news, shopping, scholar, places, and provides autocomplete and related searches.
When to use
- Search Google for web results, images, videos, or news
- Get Google Shopping, Scholar, or Places results
- Use autocomplete and related searches
- Access structured search results in JSON format
Prerequisites
robomotionCLI installed- Package installed:
robomotion install serper - Serper API key configured via Robomotion vault
IMPORTANT: Session Mode Required for Multi-Step Operations
Each CLI command runs as a separate process — connection IDs from connect do NOT persist across calls.
You MUST use --session on connect and pass --session-id to all subsequent commands.
Workflow
- Install (once):
robomotion install serper - Connect with session:
robomotion serper serper_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion serper serper_search --client-id "<client-id>" --query <text> --session-id "<session-id>" --output json - Disconnect when done:
robomotion serper serper_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion serper serper_connect --session --output jsonConnects to Serper API and returns a client ID for subsequent nodesrobomotion serper serper_disconnect --client-id --session-id "<session-id>" --output jsonCloses the Serper connection and releases resourcesrobomotion serper serper_web_search --client-id --query [--country] [--language] [--location] [--10] [--1] [--time-period] [--30] --session-id "<session-id>" --output jsonPerforms a Google web search via Serper API and returns organic results,knowledge graph,answer box,and related searchesrobomotion serper serper_image_search --client-id --query [--country] [--language] [--10] [--1] [--30] --session-id "<session-id>" --output jsonSearches Google Images via Serper API and returns image URLs,dimensions,and sourcesrobomotion serper serper_video_search --client-id --query [--country] [--language] [--10] [--1] [--30] --session-id "<session-id>" --output jsonSearches Google Videos via Serper API and returns video links,durations,and thumbnailsrobomotion serper serper_news_search --client-id --query [--country] [--language] [--location] [--10] [--1] [--time-period] [--30] --session-id "<session-id>" --output jsonSearches Google News via Serper API and returns news articles with titles,sources,and datesrobomotion serper serper_shopping_search --client-id --query [--country] [--language] [--location] [--10] [--1] [--30] --session-id "<session-id>" --output jsonSearches Google Shopping via Serper API and returns products with prices,ratings,and linksrobomotion serper serper_places_search --client-id --query [--country] [--language] [--location] [--30] --session-id "<session-id>" --output jsonSearches Google Places via Serper API and returns locations with addresses,ratings,and coordinatesrobomotion serper serper_scholar_search --client-id --query [--country] [--language] [--10] [--1] [--30] --session-id "<session-id>" --output jsonSearches Google Scholar via Serper API and returns academic papers with citations,authors,and publication inforobomotion serper serper_autocomplete --client-id --query [--country] [--language] [--30] --session-id "<session-id>" --output jsonGets Google Autocomplete suggestions via Serper API for a given query prefixrobomotion serper serper_maps_search --client-id --query [--country] [--language] [--coordinates] [--30] --session-id "<session-id>" --output jsonSearches Google Maps via Serper API and returns locations with GPS coordinates,ratings,and addressesrobomotion serper serper_patents_search --client-id --query [--10] [--1] [--30] --session-id "<session-id>" --output jsonSearches Google Patents via Serper API and returns patent documents with titles,numbers,and snippetsrobomotion serper serper_lens_search --client-id --image-url [--country] [--language] [--60] --session-id "<session-id>" --output jsonPerforms a Google Lens visual search via Serper API using an image URLrobomotion serper serper_scrape --client-id --url [--60] --session-id "<session-id>" --output jsonScrapes a webpage via Serper API and returns the page content as text and optionally markdown
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)