Lee Foot

Related Searches Tree

Map Google's related searches for your seed keywords into a tree up to three levels deep.

Launch the app → View the source

#about

Builds a tree of Google's related searches for each seed keyword, then for those results, up to three levels deep (default two).

Data comes from the DataForSEO Google organic SERP endpoint in English on desktop, with 10 related searches kept per keyword by default.

Explored keywords are skipped, and loops show as "(circular)" in the text tree.

At about $0.002 per keyword explored, cost climbs quickly with depth.

Streamlit app

Platform
Browser-based (no installation required)
Input
DataForSEO login and passwordSeed keywords (one per line)
Output
CSV: parent/child relationships. DOT: Graphviz format. Keywords list: all unique. ASCII tree: text hierarchy. Interactive table display.

Use cases

  • Keyword expansion and discovery
  • Understanding search relationships
  • Content topic mapping
  • Visualising keyword hierarchies

#features

  • Breadth-first queue-based exploration
  • Circular reference detection
  • Crawl depth slider (1-3, default 2)
  • Max results per keyword (5-20, default 10)
  • 11 location options (UK, US, AU, etc.)
  • DOT Graphviz export format

#how-to-use

  1. Enter your DataForSEO login and password
  2. Input seed keywords (one per line)
  3. Set crawl depth (1-3) and max results
  4. Select location (11 options)
  5. Check the estimated API calls and cost shown before running
  6. Build the tree; visited keywords are skipped to prevent loops
  7. Download CSV, DOT, keywords list, or view the ASCII tree

#faq

What will a run cost?
Roughly one DataForSEO request (about $0.002) per keyword explored, and this grows exponentially with depth. Keywords at the final level are recorded but never queried, so with the defaults of depth 2 and 10 results that is at most 11 calls per seed keyword, and depth 3 with 10 results is at most 111. The on-screen estimate shows that ceiling before you run; the real number is often lower because keywords already explored are skipped.
Why does raising max results above 10 not find more keywords?
The API request itself is fixed (depth 10) and Google only returns however many related searches it has for a query, typically a handful. The max results slider just truncates that returned list client-side, so it is effective as a cost limiter at low values but cannot force Google to return more suggestions at high values.
Why do keywords at the deepest level have no children?
By design. A keyword found at the final depth level is recorded as a child in the tree but never queried itself, so the tree always ends one level after the last round of API calls. Depth 1 means only your seed keywords are queried.
Is there any rate limiting between API calls?
No, requests are fired back to back with no delay. That is normally fine because DataForSEO is a paid API designed for volume, but be aware of it if your plan has a concurrency or per-second limit.
Why is everything lowercase in the export?
Parent and child keywords are lowercased when relationships are recorded, and exact self-references (parent equals child) plus duplicate rows are removed after the crawl. The DOT and CSV exports therefore contain normalised lowercase keywords rather than what Google displayed.

/contact

Want me to run this for you? I run this tool as a managed service, or build something custom around your data. You get the insights without touching the code.