Skip to main content
POST
/
api
/
reddit
/
posts
/reddit/posts
curl --request POST \
  --url https://api.anysite.io/api/reddit/posts \
  --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": "RedditPostDetail",
    "id": "<string>",
    "title": "<string>",
    "url": "<string>",
    "author": {
      "@type": "RedditAuthor",
      "id": "<string>",
      "name": "<string>"
    },
    "subreddit": "<string>",
    "subreddit_id": "<string>",
    "created_at": 123,
    "score": 123,
    "comment_count": 123,
    "post_type": "<string>",
    "content_url": "<string>",
    "text": "<string>",
    "nsfw": false
  }
]

Headers

access-token
string
required

Body

application/json
post_url
string
required

Reddit post URL or path (e.g., /r/DogAdvice/comments/1o2g2pq/title/ or full URL)

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
title
string
required
url
string
required
@type
string
default:RedditPostDetail
author
object | null
subreddit
string | null
subreddit_id
string | null
created_at
integer | null
score
integer | null
comment_count
integer | null
post_type
string | null
content_url
string | null
text
string | null
nsfw
boolean
default:false
I