Skip to main content
POST
/
api
/
niconico
/
videos
/
comments
/niconico/videos/comments
curl --request POST \
  --url https://api.anysite.io/api/niconico/videos/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "video": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "NiconicoComment",
    "no": 123,
    "text": "<string>",
    "fork": "<string>",
    "vpos_ms": 123,
    "posted_at": 123,
    "nicoru_count": 123,
    "score": 123,
    "user_id": "<string>",
    "is_premium": false,
    "commands": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
video
string
required

Niconico video ID or watch URL

Minimum string length: 1
Examples:

"sm9"

"https://www.nicovideo.jp/watch/sm9"

count
integer
required

Max number of comments to fetch

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:NiconicoComment
no
integer | null
text
string | null
fork
string | null
vpos_ms
integer | null
posted_at
integer | null
nicoru_count
integer | null
score
integer | null
user_id
string | null
is_premium
boolean
default:false
commands
string[]