Skip to main content
POST
/
api
/
hackernews
/
items
/
comments
/hackernews/items/comments
curl --request POST \
  --url https://api.anysite.io/api/hackernews/items/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "id": 123,
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": 123,
    "@type": "@hackernews_comment",
    "author": "<string>",
    "text": "<string>",
    "score": 123,
    "created_at": 123,
    "parent_id": 123,
    "comment_ids": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
id
integer
required

Numeric Hacker News story or item id

Examples:

8863

126809

count
integer
required

Max number of comments to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
integer
required
@type
string
default:@hackernews_comment
author
string | null
text
string | null
score
integer | null
created_at
integer | null
parent_id
integer | null
comment_ids
integer[]