google-search

v1.0.2
com.mcparmory/google-search Checked 3 days ago Published 6 months ago

Scrape Google search results with SERP data, ads, and knowledge panels

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_google Search Google

Execute a Google search with customizable filters, location targeting, and result pagination. Supports advanced search operators, Knowledge Graph entity lookups, and device-specific results.

ParameterTypeDescription
api_key *stringAuthentication key for API requests. Provide as a query parameter or in the Authorization header using Bearer token format.
engine *stringThe search engine identifier. Must be set to 'google' to use Google's search engine.
crstringRestricts results to documents originating from a specific country, determined by the document's top-level domain or server IP geolocation.
devicestringThe device type for search results. Choose from desktop (default), mobile, or tablet to simulate searches from different device types.
filterstringControls duplicate content and host crowding filters. Set to '1' (default) to enable filters or '0' to disable them.
glstringTwo-letter country code (e.g., 'us', 'gb', 'de') to restrict results to a specific country. Defaults to 'us'. See Google Shopping countries list for all supported codes.
hlstringTwo-letter language code (e.g., 'en', 'fr', 'ja') to set the search interface language. Defaults to 'en'. Supports all Google interface languages.
kgmidstringA Knowledge Graph identifier representing a specific entity. Format: Location identifiers start with /m/ followed by 2-7 characters; general entity identifiers start with /g/ followed by longer alphan…
lrstringRestricts results to documents in specific languages using the format lang_XX or multiple languages with pipe separation (e.g., lang_en|lang_de). Google identifies language via TLD, meta tags, or docu…
optimization_strategystringOptimization strategy for the request. Use 'performance' (default) for faster responses or 'ads' to optimize for higher ad collection success rates at the cost of longer processing times.
pageintegerResults page number to retrieve, starting from 1 (default). Use for pagination through search results.
qstringThe search query string. Supports Google's advanced search operators (inurl:, site:, intitle:, etc.). Either this or kgmid must be provided.
safestringSafeSearch filtering level. Use 'active' for strict filtering, 'blur' (default) to blur explicit images, or 'off' to disable SafeSearch entirely.
time_period_maxstringEnd date for filtering results by publication date. Format: MM/DD/YYYY. Use with time_period_min to define a date range.
time_period_minstringStart date for filtering results by publication date. Format: MM/DD/YYYY. Use with time_period_max to define a date range.
uulestringGoogle-encoded location parameter for geographically-targeted results. Cannot be used together with the location parameter. SearchApi generates this automatically when using location.
verbatimstringForces exact keyword matching by disabling spelling corrections, synonyms, and query variations. Set to 'true' to enable. Stricter than nfpr parameter.