Skip to main content
POST
/
api
/
habr
/
articles
/
comments
/habr/articles/comments
curl --request POST \
  --url https://api.anysite.io/api/habr/articles/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "article": "<string>",
  "timeout": 300,
  "lang": "ru"
}
'
[
  {
    "id": "<string>",
    "@type": "@habr_comment",
    "parent_id": "<string>",
    "level": 123,
    "text": "<string>",
    "score": 123,
    "vote_count": 123,
    "vote_count_plus": 123,
    "vote_count_minus": 123,
    "is_pinned": false,
    "is_post_author": false,
    "published_at": "<string>",
    "edited_at": "<string>",
    "author": {
      "id": "<string>",
      "alias": "<string>",
      "@type": "@habr_author",
      "fullname": "<string>",
      "speciality": "<string>",
      "image": "<string>",
      "rating": 123,
      "score": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
article
string
required

Article id or URL

Minimum string length: 1
Examples:

"1047492"

"https://habr.com/ru/articles/1047492/"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
lang
enum<string>
default:ru

Content language

Available options:
ru,
en

Response

Successful Response

id
string
required
@type
string
default:@habr_comment
parent_id
string | null
level
integer | null
text
string | null
score
integer | null
vote_count
integer | null
vote_count_plus
integer | null
vote_count_minus
integer | null
is_pinned
boolean
default:false
is_post_author
boolean
default:false
published_at
string | null
edited_at
string | null
author
HabrAuthor · object