Reddit

List Reddit user comments

Returns flat public comment entries from a public Reddit user's comments feed. A 503 with a Retry-After header means Reddit is temporarily throttling the request; wait that many seconds and retry. If source.type is redlib, public fields and credit weights are preserved.

get/reddit/user/{username}/comments

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/reddit/user/{username}/comments
  • Auth: API key in header x-api-key

Path parameters

usernamestring required

Public Reddit username, without u/

Query parameters

limitinteger

Maximum comments, defaults to 25 and clamps to 100

afterstring

Reddit pagination token

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "comments": [
      {
        "author": {
          "name": "reddit_user",
          "profile_url": "https://www.reddit.com/user/reddit_user/"
        },
        "body": "I agree with this post.",
        "created": "2024-04-19T00:00:00Z",
        "created_utc": 1713484800,
        "depth": 1,
        "id": "kabc123",
        "name": "t1_kabc123",
        "parent_id": "t3_1abcxyz",
        "permalink": "https://www.reddit.com/r/OpenAI/comments/1abcxyz/openai_discussion_thread/kabc123/"
      }
    ],
    "pagination": {
      "after": "t3_1abcxyz",
      "limit": 25
    },
    "source": {
      "type": "rss",
      "url": "https://www.reddit.com/r/OpenAI/.rss"
    },
    "username": "reddit"
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.