Skip to main content
POST
/
api
/
reddit
/
posts
/
comments
/reddit/posts/comments
curl --request POST \
  --url https://api.anysite.io/api/reddit/posts/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "post_url": "/r/DogAdvice/comments/1o2g2pq/i_think_i_need_to_rehome_my_dog/"
}'
[
  {
    "@type": "RedditComment",
    "id": "<string>",
    "author": {
      "@type": "RedditAuthor",
      "id": "<string>",
      "name": "<string>"
    },
    "text": "<string>",
    "score": 123,
    "created_at": 123,
    "depth": 0,
    "parent_id": "<string>",
    "is_submitter": false,
    "is_deleted": false,
    "replies_count": 0,
    "replies": []
  }
]

Headers

access-token
string
required

Body

application/json
post_url
string
required

Reddit post URL or path

Examples:

"/r/DogAdvice/comments/1o2g2pq/i_think_i_need_to_rehome_my_dog/"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:RedditComment
author
object | null
text
string | null
score
integer | null
created_at
integer | null
depth
integer
default:0
parent_id
string | null
is_submitter
boolean
default:false
is_deleted
boolean
default:false
replies_count
integer
default:0
replies
RedditComment · object[]
I