GroundsocialDocs

API · Cross-platform search

GET /search/forums

Reddit, Hacker News and Stack Overflow searched together, with top comments on the most discussed threads. Metered.

RequestGET /v1/search/forums
Operation idsearch.forums.get
Cost10 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Reddit, Hacker News and Stack Overflow searched together, with top comments on the most discussed threads. Metered.

Query parameters

NameTypeRequiredDescription
querystringyesSearch words. Example: postgres vs mysql.
sourcesstring | string[]noAny of reddit, hackernews, stackoverflow (default all).
excludestring | string[]noSources to leave out.
commentsinteger | nullnoThreads to open for top comments (default 3).
timeframe"day" | "week" | "month" | "year" | "all"noWindow, from now. One of day, week, month, year, all.
lookback_daysintegernoWindow in days, from now.
sort"relevance" | "date" | "engagement"norelevance (default, each platform’s own ranking), date (newest first) or engagement. One of relevance, date, engagement.

Responses

StatusMeaningSchema
200Forum threads, with top comments on the hero threads.
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404Nothing matched on any platform.Error
429Too many requests. Wait for Retry-After seconds.Error
503Cross-platform search is temporarily unavailable. Retryable; nothing was charged.Error

Errors use one shape everywhere; see Errors for every code and what to do.