Skip to main content
POST
/
api
/
reddit
/
user
/
comments
/reddit/user/comments
curl --request POST \
  --url https://api.anysite.io/api/reddit/user/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "username": "<string>",
  "timeout": 300,
  "count": 25
}
'
[
  {
    "id": "<string>",
    "permalink": "<string>",
    "@type": "RedditUserComment",
    "author": {
      "id": "<string>",
      "name": "<string>",
      "@type": "RedditAuthor"
    },
    "text": "<string>",
    "score": 123,
    "created_at": 123,
    "post_url": "<string>",
    "subreddit": "<string>"
  }
]

Authorizations

access-token
string
header
required

Headers

access-token
string
required

Body

application/json
username
string
required

Reddit username

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
count
integer
default:25

Max result count

Response

Successful Response

id
string
required
@type
string
default:RedditUserComment
author
RedditAuthor · object
text
string | null
score
integer | null
created_at
integer | null
post_url
string | null
subreddit
string | null