Short answer: run the query through /google/search and read the discussions array. When Google shows its "Discussions and forums" block, each thread comes back with its title, link, site, forum name, comment count and age. There is no separate endpoint and no extra charge: the block is part of the normal 1-credit search answer.
The request
curl -X POST 'https://api.serpbase.dev/google/search' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{"q":"best mechanical keyboard for programming","gl":"us","hl":"en"}'
What comes back
We ran this on 29 November 2026. The answer took 6.5 seconds and held three threads in discussions, the fifth block on the page (shortened):
"discussions": [
{
"rank": 1,
"position": 5,
"title": "(Mechanical) Keyboard recommendation for a programmer",
"link": "https://www.reddit.com/r/keyboards/comments/1in2ade/mechanical_keyboard_recommendation_for_a/",
"source": "Reddit",
"forum": "r/keyboards",
"comments": "3 comments",
"date": "1y"
},
{
"rank": 2,
"position": 5,
"title": "Mechanical keyboard for programming?",
"link": "https://www.reddit.com/r/MechanicalKeyboards/comments/jafhol/mechanical_keyboard_for_programming/",
"source": "Reddit",
"forum": "r/MechanicalKeyboards",
"comments": "10+ comments",
"date": "6y"
}
]
The third thread was a Facebook group post ("source": "Facebook", "forum": "Mechanical Keyboards", "comments": "8 comments").
| Field | What it holds |
|---|---|
title | Thread title |
link | Thread address |
source | The site: Reddit, Quora, Facebook |
forum | Subreddit, group or space name |
comments | Count as Google prints it: 3 comments, 10+ comments, 40+ answers |
date | Age as printed: 1y on phone pages, 1 year ago on desktop |
position | Which block of the page the module is (1 = top) |
rank | Order inside the module |
The block comes and goes
Google decides per query and per device whether to show it. Three keywords, both devices, same day:
| Query | Phone | Desktop |
|---|---|---|
| best mechanical keyboard for programming | 3 threads (Reddit, Reddit, Facebook) | none |
| is a standing desk worth it | none | 3 threads (Reddit, Reddit, Facebook) |
| how to tie a tie | none | 2 threads (Quora) |
So if you need forum threads for a keyword, ask for both devices.
Python: forum threads for one keyword, both devices
import time, requests
API = "https://api.serpbase.dev"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
def post(path, body):
return requests.post(API + path, headers=HEADERS, json=body, timeout=60).json()
def discussions(q, device):
r = post("/google/search", {"q": q, "gl": "us", "hl": "en", "device": device})
if r["status"] != 0:
raise RuntimeError(r.get("error"))
seen, out = set(), []
for d in r.get("discussions", []):
key = (d["title"], d.get("forum"))
if key in seen or not d.get("link"):
continue
seen.add(key)
out.append(d)
return out
for device in ("mobile", "desktop"):
rows = discussions("is a standing desk worth it", device)
print(device, len(rows), "threads")
for d in rows:
print(" ", d["source"], "|", d.get("forum"), "|", d.get("comments"), "|", d["title"])
time.sleep(1)
Our run of this script, later the same day, printed mobile 0 threads and desktop 3 threads: a Reddit thread from r/BuyItForLife (200+ comments), a Quora question (30+ answers) and a Bogleheads forum thread with no forum name or comment count. The three desktop threads were not the same three as in the table above: the block changes between runs.
Things that trip people up
- No
discussionskey is a normal answer. Fields that are not on the page are left out, not sent empty. User.get("discussions", []). - Deduplicate on desktop. In our desktop answers each thread appeared twice, the second time without a
link. Keep the entry that has a link, as the script does. commentsanddateare text.10+ commentsis a floor, not a count, and one Quora thread had neither field. Parse them only if you need to sort.- Some links are Google wrappers. Reddit and Quora links came back direct; the Facebook ones were
google.com/gotoaddresses. The free link resolver turns those into the real address. - This is what Google shows, not a forum search. You get the two to four threads Google picked for the query, not every thread on Reddit.
Related
Posts from X, Instagram, TikTok and Reddit under "What people are saying" are a different block, returned in social_posts in the same answer. For phone against desktop differences in general, see mobile vs desktop results.
Cost and limits
One search is 1 credit whether or not the block is there; failed requests are not charged. Credits cost $0.25–$0.50 per 1,000 depending on the plan, and new accounts get 500 free credits without a card.
- Parameters and the full response: Google web search docs
- Try it in the browser: Google web search
- Credit packs: pricing