Forum Intent Board is a small Python script for founders and marketers doing Reddit lead generation. Give it 5 to 8 keywords from your niche and it finds public Reddit threads where people are asking for a tool, a recommendation or an alternative, then ranks them on a board.
The problem
People ask for product recommendations on Reddit, and those threads are some of the warmest leads there are. Finding them means searching each keyword, skipping the noise, and keeping the threads that show buying intent.
What the app does
- Takes a niche label and up to 8 keywords.
- Searches Reddit for each keyword with
GET /webandsite:reddit.cominquery. - Scores titles and snippets for intent phrases such as "looking for", "alternative to" and "recommend".
- Keeps threads that are on topic and shows intent terms, so you can see why each row made the board.
- Writes
forum_hits.csv, a ranked board and a call log with cost.
How it works
- Search. For each keyword, call
GET /webwithsite:reddit.complus the keyword inquery. - Clean titles. Generic Reddit titles are replaced by the thread's URL slug.
- Keep Reddit links. Drop results whose link is not on reddit.com.
- Score intent with weighted phrase rules you can edit at the top of the script.
- Board. Unique, on-topic threads with intent, sorted by score.
The code
if a.from_raw:
raw = json.load(open(a.from_raw))
else:
cfg = json.load(open(a.keywords)); kws = cfg["keywords"][:8]
key = os.environ.get("DESEARCH_API_KEY") or sys.exit("set DESEARCH_API_KEY")
start = now_local()
days = {"PAST_24_HOURS": 1, "PAST_2_DAYS": 2, "PAST_WEEK": 7, "PAST_2_WEEKS": 14, "PAST_MONTH": 31,
"PAST_2_MONTHS": 62, "PAST_YEAR": 366, "PAST_2_YEARS": 731}.get(a.date_filter)
calls = asyncio.run(run_mcp(kws, a, key))
raw = {"run_date": start.strftime("%Y-%m-%d"), "run_started": start.isoformat(timespec="seconds"), "niche": cfg.get("niche", ""),
"keywords": kws, "date_filter": a.date_filter, "date_filter_days": days, "result_type": a.result_type, "calls": calls}
if a.full_raw:
json.dump(raw, open(a.full_raw, "w"), indent=1)
if not a.no_link_check:
urls = sorted({i.get("link") for c in calls for i in c["results"] if i.get("link")})
print(f"checking {len(urls)} links ...", flush=True)This excerpt reads DESEARCH_API_KEY from the environment and calls run_mcp, which searches Hacker News and Reddit through the MCP ai-search tool. The folder has forum_intent_board.py, an example keywords.json, and the sample run in output/.
Endpoints
GET /web
Example output
From a run on 2026-10-12 for 8 keywords in crypto and on-chain data tools. Reddit rows come from GET /web with site:reddit.com in query.
| Measure | Result |
|---|---|
| Calls | 8 (one GET /web per keyword) |
| Reddit threads on the board | 12 |
A spot check of 20 rows found 13 on topic. Keywords with a product noun ("crypto tax software") gave cleaner boards than broad ones.
Run it yourself
The public examples folder linked above includes the script and a README. Install its requirements, set DESEARCH_API_KEY from console.desearch.ai, and use the run command in that README.
Useful flags: --board-size (default 20) and --from-raw FILE (rebuild with no API calls). Each search is GET /web with query set to site:reddit.com plus the keyword.
What it costs
See pricing for current rates.
Ideas to extend it
- Run it again and only show threads you have not seen before.
- Draft a helpful, disclosed reply for each top thread and review it by hand.
- Add more keywords and intent phrases to the same
GET /webquery.
