Search Comments
Comments matching a query across Reddit, about 9 a page.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
query*stringWhat to search for.
sort?stringrelevance (the default), hot, top, new or comments.
Value in
"relevance""hot""top""new""comments"time?stringhour, day, week, month, year or all (the default).
Value in
"hour""day""week""month""year""all"cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.reddit.searchComments({ query: "espresso machine" });Example Response
{ "data": [ { "id": "19syv7bmabsjk", "postId": "1y1rk4q", "parentId": "19syntvx06v5x", "text": "Haha, when I was a teenager working at McDonald's they roughly showed me the drive thru coffee machine and left me to it. An older \"automatic\" espresso machine where you would sit a takeaway cup, press the button for the coffee that had been ordered, and it would do a shot of coffee and some shitty frothed milk. Easy as!!\n\nSomebody ordered a long black, I pressed the long black button. The cup was…", "createdAt": "2026-11-21T07:55:16.078Z", "author": { "id": "", "username": "Euphorbiatch", "displayName": null, "avatarUrl": null, "verified": false, "url": "https://www.reddit.com/user/Euphorbiatch/" }, "likes": 2607, "replies": null, "ext": { "url": "https://www.reddit.com/r/mildlyinfuriating/comments/1y1rk4q/i_asked_for_a_iced_coffee_with_only_cream_and/19syv7bmabsjk/", "depth": null, "score": 2607, "byPoster": false, "removed": false, "stickied": false, "subreddit": "mildlyinfuriating", "postTitle": "I asked for a iced coffee with only cream and this is what they handed me", "awards": null } }, { "id": "19t1g61oo5xxg", "postId": "1y31bj7", "parentId": null, "text": "Dodgers are going to be seeing some very sleepy faces and sagging lids without the espresso machine next year …:/", "createdAt": "2026-11-22T22:06:40.814Z", "author": { "id": "", "username": "Idwant2baliar", "displayName": null, "avatarUrl": null, "verified": false, "url": "https://www.reddit.com/user/Idwant2baliar/" }, "likes": 1092, "replies": null, "ext": { "url": "https://www.reddit.com/r/baseball/comments/1y31bj7/passan_breaking_twotime_cy_young_award_winner/19t1g61oo5xxg/", "depth": null, "score": 1092, "byPoster": false, "removed": false, "stickied": false, "subreddit": "baseball", "postTitle": "[Passan] BREAKING: Two-time Cy Young Award winner Tarik Skubal and the New York Mets are in agreement on a nine-year, $450 million contract, sources tell ESPN. The deal includes a $45 million signing bonus, no opt-outs and a no-trade clause.", "awards": null } } ], "pagination": { "nextCursor": "L3N2Yy9zaHJlZGRpdC9zZWFyY2gvP3E9ZXNwcmVzc28rbWFjaGluZSZ0eXBlPWNvbW1lbnRzJnNvcnQ9cmVsZXZhbmNlJnQ9YWxsJmN1cnNvcj1leUpqWVc1a2FXUmhkR1Z6WDNKbGRIVnlibVZrSWpvaWUxd2ljMlZqZEdsdmJsOHhYM0JwY0dWc2FXNWxYekJmWjJ4dlltRnNYMjF2WkdsbWFXVnljMXdpT2x3aU1Wd2lMRndpYzJWamRHbHZibDh4WDNCcGNHVnNhVzVsWHpGZmJHOWpZV3hmYlc5a2FXWnBaWEp6WENJNlhDSXhYQ0lzWENKelpXTjBhVzl1WHpKZmNHbHdaV3hwYm1WZk1WOWpiMjF0Wlc1MFgzTmxZWEpqYUZ3aU9sd2lN…", "hasMore": true }}