Skip to main content
GET
/
v1
/
reddit
/
posts
/
{post_id}
/
comments
Get post comments
curl --request GET \
  --url https://scrapebadger.com/v1/reddit/posts/{post_id}/comments \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.scrapebadger.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

ScrapeBadger API key

Path Parameters

post_id
string
required

Query Parameters

sort
string
default:confidence

Sort: confidence, top, new, controversial, old, qa

limit
integer
default:25
Required range: 1 <= x <= 100
depth
integer | null
Required range: 0 <= x <= 10

Response

Successful Response