Skip to main content
POST
/
api
/
pikabu
/
stories
/
comments
/pikabu/stories/comments
curl --request POST \
  --url https://api.anysite.io/api/pikabu/stories/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "story": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@pikabu_comment",
    "parent_id": "<string>",
    "text": "<string>",
    "rating": 123,
    "plus_count": 123,
    "minus_count": 123,
    "created_at": "<string>",
    "is_hidden": false,
    "author": {
      "@type": "@pikabu_user_ref",
      "id": "<string>",
      "name": "<string>",
      "alias": "<string>",
      "image": "<string>",
      "profile_url": "<string>",
      "role": "<string>",
      "subscriber_count": 123
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
story
string
required

Story id or URL

Minimum string length: 1
Examples:

"14064975"

"https://pikabu.ru/story/moy_kumir_14064975"

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
string
required
@type
string
default:@pikabu_comment
parent_id
string | null
text
string | null
rating
integer | null
plus_count
integer | null
minus_count
integer | null
created_at
string | null
is_hidden
boolean
default:false
author
PikabuUserRef · object