Go to Studio

Google Search Results Count

Count the real number of Google search results for any query

What does this node do?

Counts the actual number of Google search results for a given query using a binary search algorithm. Instead of relying on Google’s estimated result count (which is often inaccurate), this node paginates through real results to return an exact count.

Common use cases:

  • Indexation monitoring — Track how many pages Google indexes for site:yourdomain.com
  • Competitive analysis — Compare content volume between domains on specific topics
  • Content coverage — Measure how many results exist for site:yourdomain.com intitle:keyword
  • Trend tracking — Monitor result counts over time with date filtering

Configuration

Inputs

query string required

The Google search query. Supports all Google operators: site:, intitle:, inurl:, -inurl:, etc.

Example: site:lefigaro.fr intitle:russie

start_date string

Start date override (connectable input). Only available when Date Range is set to Custom and Use variable for start date is checked. Format: YYYY-MM-DD.

end_date string

End date override (connectable input). Only available when Date Range is set to Custom and Use variable for end date is checked. Format: YYYY-MM-DD.

Settings

type select required default: Search

Type of Google search to perform.

  • Search — Standard web search
  • News — Google News search
country select default: France (fr)

Google country parameter (gl). Affects which regional results are returned.

location string

Specific location for geo-targeted results (e.g. “Paris, France”).

locale select default: French (fr)

Google language parameter (hl). Affects the language of search results.

blacklist_urls textarea

Comma-separated list of URLs to exclude from results. Each URL is appended as a -inurl: operator to the query.

Example: example.com, ads.example.fr, *.spam.com

date_range select

Filter results by date. Options:

  • None — No date filtering
  • Last week / Last month / Last 3 months / Last 6 months / Last year
  • Custom — Specify start and end dates manually

Output

The node provides two outputs:

result_count string

The total number of real Google results found.

page_count string

The number of Google result pages.

How it works

The node uses a binary search (dichotomy) algorithm to efficiently count results:

  1. Fetch page 1 — if empty, return 0. If partial (< 10 results), return count directly.
  2. If page 1 is full (10 results), perform binary search between page 2 and page 50.
  3. For each page checked:
    • Full (10 results) — search higher pages
    • Partial (1-9 results) — this is the last page, compute exact total
    • Empty (0 results) — search lower pages

This approach minimizes API calls. For example, counting 305 results (31 pages) only requires 7 API requests instead of 31.

Info

Maximum countable results: 500 (50 pages x 10 results per page). Google itself typically caps results well below this threshold.

Usage examples

Example 1: Site indexation count

Count how many pages Google indexes for a domain:

FieldValue
Querysite:example.com
Date RangeNone

Output: result_count: "1234", page_count: "50"

Example 2: Topic coverage with date filter

Count articles about a topic published in the last month:

FieldValue
Querysite:lemonde.fr intitle:ukraine
TypeNews
Date RangeLast month

Output: result_count: "42", page_count: "5"

Example 3: Custom date range with variables

Use dynamic dates from upstream nodes:

FieldValue
Querysite:lefigaro.fr intitle:russie
Date RangeCustom
Use variable for start datechecked
Use variable for end datechecked

Connect date inputs from upstream nodes to dynamically filter results.