Skip to content

Search API

Search API

Search API is a real-time SERP API solution that handles proxy management, CAPTCHAs, and JSON parsing for seamless web data extraction. With the integration in SquadOS, your agents can search across 40+ search engines — including Google, Bing, Yahoo, DuckDuckGo, YouTube, Amazon, and more — retrieving structured data with organic results, ads, knowledge graphs, local listings, images, videos, and related searches.

This tool uses API key (API_KEY) to connect.

You will need the following fields:

FieldRequiredDescription
api_keyYesAPI key from your Search API account, used to authenticate all requests.
  1. Go to searchapi.io and click Sign up.
  2. Complete the registration — no credit card required.
  3. After logging in, access your account dashboard.
  4. Copy the API key displayed in the dashboard — this is the value to use in the api_key field when connecting in SquadOS.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Search API.
  3. Click the card to open the details and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you enter the credentials obtained above.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available for your agents. (Connection-flow details in Organization Tools.)

SEARCH_API_GET_ACCOUNT_INFO

Tool to retrieve account usage statistics including monthly usage, remaining credits, hourly limits, and subscription period information. Use when you need to check current account status or usage limits.

NameTypeRequiredDescription
zero_retentionbooleanNoEnterprise-only feature. When set to true, disables all logging and persistent storage for this request.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SEARCH_API_GET_CACHED_SEARCH_BY_ID

Tool to retrieve cached search results by search ID in JSON format. Use when you need to access previously executed search results without re-running the query. The search ID is found in the search_metadata.id or search_metadata.json_url field from initial search responses. Cached results are available for 90 days.

NameTypeRequiredDescription
search_idstringYesThe unique identifier for a previously executed search, formatted as search_[alphanumeric]. This ID is found in the id or json_url field of the search_metadata from initial search responses.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SEARCH_API_GET_CACHED_SEARCH_HTML_BY_ID

Tool to retrieve cached search results by search ID in HTML format. Use when you need to access the raw HTML snapshot of a previous search execution. The search ID is available in the search_metadata.id or search_metadata.html_url field from initial search responses.

NameTypeRequiredDescription
search_idstringYesThe unique identifier for a previously executed search. This ID is found in the id or html_url field of the search_metadata from initial search responses.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SEARCH_API_GET_LOCATIONS

Tool to get available locations for geo-localized search queries. Use when you need to find location identifiers for targeting Google searches to specific geographic areas. Returns location metadata including identifiers, names, coordinates, and population reach.

NameTypeRequiredDescription
qstringYesSearch query for location lookup. The location name you want to search for (e.g., new york, london, tokyo).
limitintegerNoMaximum number of results to return. Default is 10, maximum allowed is 100.
zero_retentionbooleanNoEnterprise feature only. When set to true, disables logging of the request. Only available for enterprise accounts.
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.

SEARCH_API_SEARCH

Tool to perform unified search across 40+ search engines including Google, Bing, Yahoo, DuckDuckGo, YouTube, Amazon, and more. Use when you need to retrieve search results with rich structured data including organic results, ads, knowledge graphs, local listings, images, videos, and related searches. Supports advanced filtering by location, language, date, device type, and SafeSearch settings.

NameTypeRequiredDescription
qstringYesSearch query terms with support for operators and advanced filters.
crstringNoRestricts results by country via TLD or IP geolocation.
glstringNoCountry code for results (default: us). Two-letter country code.
hlstringNoInterface language code (default: en). Two-letter language code.
lrstringNoRestricts results by document language (format: lang_xx).
numintegerNoNumber of results per page. Note: Google now returns a constant 10 results regardless of this parameter.
nfprintegerNoSet to 1 to exclude auto-corrected results.
pageintegerNoResults page number for pagination (default: 1).
safestringNoSafeSearch setting: active to filter explicit content or off to disable (default: off).
uulestringNoGoogle-encoded location parameter. Cannot be used together with the location parameter.
kgmidstringNoKnowledge Graph identifier for entity-specific searches.
devicestringNoDevice type for search results: desktop, mobile, or tablet (default: desktop).
enginestringYesSpecifies the search engine to use. Supported engines include: google, bing, yahoo, duckduckgo, youtube, google_maps, google_shopping, google_jobs, google_hotels, amazon_search, ebay_search, walmart_search, apple_app_store, baidu, yandex, naver, and many more.
filterintegerNoEnable (1) or disable (0) duplicate content filters (default: 1).
locationstringNoCanonical search location for geo-targeted results (e.g., United States, London,England,United Kingdom).
time_periodstringNoFilter results by date: last_hour, last_day, last_week, last_month, or last_year.
google_domainstringNoGoogle domain to search (default: google.com).
zero_retentionbooleanNoEnterprise-only feature. When set to true, disables all logging and persistent storage for this request.
time_period_maxstringNoCustom date range end in MM/DD/YYYY format.
time_period_minstringNoCustom date range start in MM/DD/YYYY format.
optimization_strategystringNoSearch optimization strategy: performance or ads (default: performance).
NameTypeRequiredDescription
datastringYesData from the action execution.
errorstringNoError message if execution failed.
successfulbooleanYesWhether the action executed successfully.