Skip to main content
POST
/
api
/
niconico
/
videos
/niconico/videos
curl --request POST \
  --url https://api.anysite.io/api/niconico/videos \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "video": "<string>",
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "NiconicoVideo",
    "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>",
    "genre": "<string>",
    "genre_key": "<string>",
    "tags": [],
    "owner": {
      "id": "<string>",
      "@type": "NiconicoOwner",
      "name": "<string>",
      "owner_type": "<string>",
      "image": "<string>",
      "url": "<string>"
    },
    "is_adult": false,
    "is_deleted": false,
    "is_private": false
  }
]

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"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
url
string
required
@type
string
default:NiconicoVideo
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
genre
string | null
genre_key
string | null
tags
object[]
owner
object | null
is_adult
boolean
default:false
is_deleted
boolean
default:false
is_private
boolean
default:false