Skip to main content
POST
/
api
/
habr
/
users
/
comments
/habr/users/comments
curl --request POST \
  --url https://api.anysite.io/api/habr/users/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 2,
  "timeout": 300,
  "lang": "ru"
}
'
[
  {
    "id": "<string>",
    "@type": "@habr_user_comment",
    "text": "<string>",
    "score": 123,
    "vote_count": 123,
    "published_at": "<string>",
    "edited_at": "<string>",
    "article_id": "<string>",
    "article_title": "<string>",
    "article_type": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
string
required

User alias or profile URL

Minimum string length: 1
Examples:

"denis-19"

"https://habr.com/ru/users/denis-19/"

count
integer
required

Max result count

Required range: x >= 1
Example:

20

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_user_comment
text
string | null
score
integer | null
vote_count
integer | null
published_at
string | null
edited_at
string | null
article_id
string | null
article_title
string | null
article_type
string | null