Skip to content

Search

GET/v1/reddit/search1 credit

Searches all of Reddit and returns matching posts, or matching comments with `filter=comments`.

01Query parameters

NameTypeDescription
queryrequiredstringThe search text, e.g. `golang generics`.
filteroptionalstringWhat to search: posts (answered in `posts`) or comments (answered in `comments`).Default: postsAccepted values:postscomments
sortoptionalstringSort order. Reddit's default when omitted.Accepted values:relevancenewtopcomment_count
timeframeoptionalstringLimits results to this period.Accepted values:alldayweekmonthyear
afteroptionalstringThe `after` of the previous answer, to fetch the next page.
trimoptionalboolean`true` drops some fields from each post (such as `post_id`, `created_at_iso`, `permalink`, `thumbnail`, `position`).Default: false

02Request

curl "https://api.scrapesocial.ai/v1/reddit/search?query=golang+generics" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/reddit/search?query=golang%20generics

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "posts": [
    {
      "id": "1nr88zk",
      "post_id": "t3_1nr88zk",
      "author": null,
      "author_fullname": null,
      "subreddit": "golang",
      "title": "my work colleagues use generics everywhere for everything",
      "selftext": null,
      "selftext_html": null,
      "downs": 0,
      "name": "t3_1nr88zk",
      "upvote_ratio": null,
      "ups": 296,
      "total_awards_received": null,
      "score": 296,
      "created": 1758909492,
      "created_utc": 1758909492,
      "created_at_iso": "2025-09-26T17:58:12.000Z",
      "num_comments": 160,
      "url": "https://www.reddit.com/r/golang/comments/1nr88zk/my_work_colleagues_use_generics_everywhere_for/",
      "permalink": "/r/golang/comments/1nr88zk/my_work_colleagues_use_generics_everywhere_for/",
      "thumbnail": null,
      "thumbnail_blurred": false,
      "position": 0,
      "subreddit_subscribers": null,
      "is_video": false,
      "over_18": false,
      "spoiler": false,
      "relative_position": 0
    },
    {
      "id": "1h1w0lm",
      "post_id": "t3_1h1w0lm",
      "author": "branh0913",
      "author_fullname": "t2_u7m4j",
      "subreddit": "golang",
      "title": "Do you use generics?  What has been your experience?",
      "selftext": null,
      "selftext_html": null,
      "downs": 0,
      "name": "t3_1h1w0lm",
      "upvote_ratio": null,
      "ups": 31,
      "total_awards_received": null,
      "score": 31,
      "created": 1732800730,
      "created_utc": 1732800730,
      "created_at_iso": "2024-11-28T13:32:10.000Z",
      "num_comments": 56,
      "url": "https://www.reddit.com/r/golang/comments/1h1w0lm/do_you_use_generics_what_has_been_your_experience/",
      "permalink": "/r/golang/comments/1h1w0lm/do_you_use_generics_what_has_been_your_experience/",
      "thumbnail": null,
      "thumbnail_blurred": false,
      "position": 1,
      "subreddit_subscribers": null,
      "is_video": false,
      "over_18": false,
      "spoiler": false,
      "relative_position": 1
    }
  ],
  "after": "eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiMVwiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIyXCIsXCJzZWN0aW9uXzJfcGlwZWxpbmVfMTFfcXVlcnlfc3VnZ2VzdGlvbnNcIjpcIjZcIixcInNlY3Rpb25fMl9waXBlbGluZV84X2R5bmFtaWNfMF9wb3N0X3NlYXJjaFwiOlwiN1wiLFwic2VjdGlvbl8zX3BpcGVsaW5lXzBfZHluYW1pY18wX3N1YnJlZGRpdF9zZWFyY2hcIjpcIjVcIixcInNlY3Rpb25fM19waXBlbGlu…"
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

About 7 posts per page (comment searches a few more), plus `after`, an opaque string to pass back as `after` for the next page; pages can overlap. Post results carry no body (`selftext` null), and `upvote_ratio` and `total_awards_received` are null. A search with no results returns an empty list for 0 credits. An unknown `filter`, `sort` or `timeframe` is a free 400.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.