Skip to main content
POST
/
api
/
niconico
/
users
/
videos
/niconico/users/videos
curl --request POST \
  --url https://api.anysite.io/api/niconico/users/videos \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 2,
  "timeout": 300,
  "sort_key": "registered_at",
  "sort_order": "desc"
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "NiconicoVideoCard",
    "video_title": "<string>",
    "content_type": "<string>",
    "description": "<string>",
    "duration_seconds": 123,
    "view_count": 123,
    "comment_count": 123,
    "mylist_count": 123,
    "like_count": 123,
    "registered_at": 123,
    "image": "<string>",
    "latest_comment": "<string>",
    "is_channel_video": false,
    "is_payment_required": false,
    "owner": {
      "id": "<string>",
      "@type": "NiconicoOwner",
      "name": "<string>",
      "owner_type": "<string>",
      "image": "<string>",
      "url": "<string>"
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
string
required

Niconico user ID or profile URL

Minimum string length: 1
Examples:

"53610183"

"https://www.nicovideo.jp/user/53610183"

count
integer
required

Max number of videos to fetch

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort_key
enum<string>
default:registered_at

Result ordering key

Available options:
registered_at,
view_count,
like_count,
comment_count,
mylist_count,
duration,
last_comment_time
sort_order
enum<string>
default:desc

Sort direction

Available options:
desc,
asc

Response

Successful Response

id
string
required
url
string
required
@type
string
default:NiconicoVideoCard
video_title
string | null
content_type
string | null
description
string | null
duration_seconds
integer | null
view_count
integer | null
comment_count
integer | null
mylist_count
integer | null
like_count
integer | null
registered_at
integer | null
image
string | null
latest_comment
string | null
is_channel_video
boolean
default:false
is_payment_required
boolean
default:false
owner
object | null