Most "intent data" tells you that someone from a company visited a page. A much stronger signal is a person writing, in public, "we're leaving Shopify, what should we use?" or "HubSpot got too expensive for our team, alternatives?".

If you run an outbound agency, a migration service, or you sell an alternative to a big tool, those threads are your best leads. This tutorial builds a small Python script that turns them into a weekly CSV you can hand to an SDR or load into a CRM.

It uses the B2B Buying Intent Signals API, which I built. It collects public posts from Reddit, Hacker News, Lobsters, Dev.to and Stack Exchange, scores each one from 1 to 10 for buying intent, and extracts the tools named. There are 410+ scored high-intent signals so far; the most named tools are Shopify, HubSpot and Stripe.

1. Get a key

Subscribe to the free BASIC plan on RapidAPI (50 calls/month, no card) and copy your X-RapidAPI-Key. Export it:

export RAPIDAPI_KEY="your-key" 

2. One call, one competitor

The tool parameter keeps only signals whose mentioned_tools contains that name (case-insensitive, exact token). min_score sets the intent cutoff (default 7), urgency can be low, medium or high, and limit goes up to 50.

curl -s "https://b2b-buying-intent-signals.p.rapidapi.com/api/v1/signals?tool=shopify&min_score=8&limit=20" \ -H "X-RapidAPI-Key: $RAPIDAPI_KEY" \ -H "X-RapidAPI-Host: b2b-buying-intent-signals.p.rapidapi.com" 

Each row looks like this (shape only, values shortened):

{ "platform": "reddit", "source_url": "https://www.reddit.com/r/ecommerce/comments/...", "title": "Migrating from Shift4Shop to Shopify with NetSuite?", "intent_score": 8, "category": "...", "problem_summary": "Merchant wants to move platforms without breaking their ERP sync.", "mentioned_tools": ["Shift4Shop", "Shopify", "NetSuite"], "urgency": "medium", "created_at": "2026-11-20T10:12:00Z" } 

3. The weekly lead list script

The script below loops over the tools you sell against, keeps only strong signals, removes duplicates (a thread that names both HubSpot and Salesforce comes back twice), and writes a CSV.

import csv, os, time, requests HOST = "b2b-buying-intent-signals.p.rapidapi.com" HEADERS = {"X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"], "X-RapidAPI-Host": HOST} # The tools your clients replace. One API call per tool. COMPETITORS = ["shopify", "hubspot", "stripe", "salesforce", "zendesk"] MIN_SCORE = 8 def fetch(tool): r = requests.get( f"https://{HOST}/api/v1/signals", headers=HEADERS, params={"tool": tool, "min_score": MIN_SCORE, "limit": 50}, timeout=30, ) r.raise_for_status() return r.json()["data"] seen, rows = set(), [] for tool in COMPETITORS: for s in fetch(tool): if s["source_url"] in seen: continue seen.add(s["source_url"]) rows.append({ "competitor": tool, "score": s["intent_score"], "urgency": s["urgency"], "title": s["title"], "summary": s["problem_summary"], "tools": ", ".join(s["mentioned_tools"]), "url": s["source_url"], "date": s["created_at"][:10], }) time.sleep(1) rows.sort(key=lambda r: (-r["score"], r["urgency"] != "high")) with open("switch_leads.csv", "w", newline="") as f: w = csv.DictWriter(f, fieldnames=rows[0].keys() if rows else ["url"]) w.writeheader() w.writerows(rows) print(f"{len(rows)} unique leads written to switch_leads.csv") 

Run it once a week with cron:

0 8 * * MON cd ~/leads && python3 weekly_leads.py 

4. Turn a row into a first line

The point of a public signal is that you don't need a fake personalization trick. The summary and tools columns already tell you what to say:

"Saw your post about moving off Shift4Shop while keeping NetSuite in sync. We've done that migration a few times; happy to share what broke and how we fixed it."

Always open the original thread before you write, and respect the community: don't spam the thread itself. The signal tells you who is shopping and why; the outreach is still yours.

5. How many calls you actually need

Calls are the only thing to budget, so here is the math for the script above (5 competitors = 5 calls per run):

Schedule Calls / month Plan that fits
Weekly ~22 BASIC, free (50)
Daily ~150 PRO, $19 (2,000)
Every hour ~3,600 ULTRA, $49 (10,000)
Hourly, 20 tools / several clients ~14,400+ MEGA, $149 (50,000)

Caps are hard: no overage, calls just stop at the limit. Start weekly on the free plan, look at the CSV, and only move up if the leads are worth a faster cadence.

Wrap-up

  • One parameter (tool) turns a noisy keyword feed into a competitor-switch list.
  • Dedupe by source_url, sort by score and urgency, export CSV.
  • Weekly fits the free plan; daily alerts fit PRO.

Free key and playground: https://rapidapi.com/JamesBasset/api/b2b-buying-intent-signals

If you try it for an agency or a migration business, I'd like to hear which competitors you track.