SearchAPI
The robomotion searchapi CLI connects to SearchAPI.io for multi-engine web search. It searches Google, Bing, YouTube, Google Maps, News, Scholar, Shopping, and more through a unified interface with configurable result limits and search parameters.
When to use
- Search Google, Bing, or YouTube for web results
- Get Google Maps, News, Scholar, or Shopping results
- Search for images or videos across engines
- Access multiple search engines through one API
Prerequisites
robomotionCLI installed- Package installed:
robomotion install searchapi - SearchAPI.io 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 searchapi - Connect with session:
robomotion searchapi searchapi_connect --session --output json # → {"outClientId":"<client-id>","session_id":"<session-id>"} - Use the returned
client-idandsession-idin all subsequent commands:robomotion searchapi searchapi_google --client-id "<client-id>" --query <text> --session-id "<session-id>" --output json - Disconnect when done:
robomotion searchapi searchapi_disconnect --client-id "<client-id>" --session-id "<session-id>" --output json
Always append --output json to get structured JSON results.
Commands Reference
robomotion searchapi searchapi_connect --session --output jsonConnects to SearchAPI.io and returns a client IDrobomotion searchapi searchapi_disconnect --client-id --session-id "<session-id>" --output jsonCloses the SearchAPI.io connection and releases resourcesrobomotion searchapi google_search --client-id --query [--60] [--device] [--location] [--country] [--language] [--time-period] [--1] [--10] [--safe-search] --session-id "<session-id>" --output jsonSearches Google and returns organic results,ads,knowledge graph,and morerobomotion searchapi google_images --client-id --query [--60] [--device] [--location] [--country] [--language] [--image-size] [--color] [--image-type] [--time-period] [--1] --session-id "<session-id>" --output jsonSearches Google Images and returns image results with thumbnails,dimensions,and sourcesrobomotion searchapi google_news --client-id --query [--60] [--location] [--country] [--language] [--time-period] [--sort-by] [--1] --session-id "<session-id>" --output jsonSearches Google News and returns news articles with titles,sources,and timestampsrobomotion searchapi google_videos --client-id --query [--60] [--device] [--location] [--country] [--language] [--duration] [--time-period] [--1] --session-id "<session-id>" --output jsonSearches Google Videos and returns video results with duration,source,and thumbnailsrobomotion searchapi google_maps --client-id --query [--60] [--coordinates] [--language] [--country] [--1] --session-id "<session-id>" --output jsonSearches Google Maps for local businesses and places with ratings,reviews,and coordinatesrobomotion searchapi google_shopping --client-id --query [--60] [--device] [--location] [--country] [--language] [--sort-by] [--condition] [--min-price] [--max-price] [--1] --session-id "<session-id>" --output jsonSearches Google Shopping for products with prices,ratings,and seller inforobomotion searchapi google_scholar --client-id --query [--60] [--language] [--year-from] [--year-to] [--10] [--1] --session-id "<session-id>" --output jsonSearches Google Scholar for academic papers,articles,and citationsrobomotion searchapi google_jobs --client-id --query [--60] [--location] [--country] [--language] [--next-page-token] --session-id "<session-id>" --output jsonSearches Google Jobs for job listings with titles,companies,and descriptionsrobomotion searchapi google_trends --client-id --query [--60] [--data-type] [--region] [--time-range] [--category] [--search-type] --session-id "<session-id>" --output jsonGets Google Trends data including interest over time,by region,related queries,and topicsrobomotion searchapi google_autocomplete --client-id --query [--60] [--country] [--language] [--client-type] --session-id "<session-id>" --output jsonGets Google autocomplete suggestions for keyword research and SEOrobomotion searchapi youtube_search --client-id --query [--60] [--country] [--language] --session-id "<session-id>" --output jsonSearches YouTube for videos,channels,and playlistsrobomotion searchapi bing_search --client-id --query [--60] [--device] [--location] [--market-code] [--safe-search] [--10] [--1] --session-id "<session-id>" --output jsonSearches Bing and returns web results,related searches,and more
Environment
- ROBOMOTION_API_TOKEN (if vault credentials are needed)