SerpBase
Back to Blog

Google Discussions and Forums API: Reddit and Quora Threads as JSON

Google's Discussions and forums block comes back in the discussions field of a search: thread title, link, site, forum and comment count. Tested on three queries and both devices.

November 29, 2026
By SerpBase Team4 min read

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").

FieldWhat it holds
titleThread title
linkThread address
sourceThe site: Reddit, Quora, Facebook
forumSubreddit, group or space name
commentsCount as Google prints it: 3 comments, 10+ comments, 40+ answers
dateAge as printed: 1y on phone pages, 1 year ago on desktop
positionWhich block of the page the module is (1 = top)
rankOrder 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:

QueryPhoneDesktop
best mechanical keyboard for programming3 threads (Reddit, Reddit, Facebook)none
is a standing desk worth itnone3 threads (Reddit, Reddit, Facebook)
how to tie a tienone2 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 discussions key is a normal answer. Fields that are not on the page are left out, not sent empty. Use r.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.
  • comments and date are text. 10+ comments is 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/goto addresses. 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.