Skip to content

Google Web Search

Runs a Google web search and returns the found documents as a JSON-formatted string. Supports common Google query notations (quotes for exact match, minus for exclusion, site:, filetype:, related:) and allows limiting results, applying safe search, and constraining by time.
Preview

Usage

Use this node when you need up-to-date information from the public web via Google. Provide a clear, non-empty query, optionally refine with Google search operators, choose how many results to retrieve, and apply time or safety filters as needed. Connect its output to nodes that can parse or consume a JSON string of documents for further summarization, extraction, or analysis.

Inputs

FieldRequiredTypeDescriptionExample
queryTrueSTRINGThe search query. Supports Google-style operators: exact match with quotes, exclude terms with '-', restrict to a domain with site:, restrict by file type with filetype:, find related sites with related:."large language models" -advertising site:arxiv.org filetype:pdf
max_resultsTrueINTMaximum number of search results to return. Range 1–10.5
safesearchTrueBOOLEANEnable content filtering for safer results.true
timelimitTrueCHOICETime window unit for results. Choose None (no limit), d (days), w (weeks), m (months), or y (years). Use together with timelimit_number.w
timelimit_numberTrueINTNumber of time units to apply when timelimit is set. For example, timelimit = w and timelimit_number = 2 filters to the last 2 weeks.2

Outputs

FieldTypeDescriptionExample
documentsSTRINGA JSON-formatted string containing the list of retrieved documents. Each entry typically includes title, URL, snippet, and other metadata provided by the search service.[{"title": "Paper Title", "url": "https://example.com", "snippet": "..."}]

Important Notes

  • The query must be a non-empty string; empty queries will fail.
  • The output is a STRING containing JSON. Downstream nodes may need to parse this string into structured data.
  • max_results is capped at 10. If you request more, only up to 10 will be returned.
  • Time filtering requires both timelimit and timelimit_number. Set timelimit to None to disable time constraints.
  • Safe search may reduce or alter result visibility; disable it if you need broader coverage (where appropriate).
  • Network access is required and external service availability may affect results and latency.

Troubleshooting

  • Query is empty: Ensure the query field contains non-whitespace text.
  • Too few or no results: Increase timelimit range, disable or relax safesearch, or broaden the query terms.
  • Results seem outdated: Set an appropriate timelimit and timelimit_number to focus on recent content.
  • Output parsing errors downstream: Remember the output is a JSON string; parse it before accessing document fields.
  • Hitting the results cap: max_results cannot exceed 10. If you need more, run multiple queries or paginate logically.
  • Request errors or timeouts: Check network connectivity and try again; consider simplifying the query or reducing max_results.

Example Pipelines

Example
Example