LoginSignup
33

More than 5 years have passed since last update.

ニコニコ動画のsearch API仕様整理

Last updated at Posted at 2013-02-24

リクエスト形式

http://ext.nicovideo.jp/api/search/${検索タイプ}/${検索文字列}${パラメータ}

※ニコニコ動画にログインしてないと利用できない。

検索タイプ

${検索タイプ}でキーワード検索かタグ検索かを指定する。

意味 サンプル
search キーワード http://ext.nicovideo.jp/api/search/search/iM@S%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=f&order=d
tag タグ(完全一致) http://ext.nicovideo.jp/api/search/tag/iM@S%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=f&order=d

検索文字列

検索したい文字列を指定。

パラメータ

mode

詳細不明。知らなくても使える!

page

ページ番号。1〜50。

51ページ以上は取得できない。

sort

ソート項目を指定。

意味 サンプル
n new_commentか? 最新のコメント http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=n&order=d
v view_counter 再生数 http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=v&order=d
m mylist_counter マイリスト http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=m&order=d
r num_res コメント数 http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=r&order=d
f first_retrieve 投稿日時 http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=f&order=d
l length 再生時間 http://ext.nicovideo.jp/api/search/search/im@s%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=l&order=d

order

昇順か降順かを指定。

意味 サンプル
d desc 降順 http://ext.nicovideo.jp/api/search/search/iM@S%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=f&order=d
a asc 昇順 http://ext.nicovideo.jp/api/search/tag/iM@S%E6%9E%B6%E7%A9%BA%E6%88%A6%E8%A8%98?mode=watch&page=1&sort=f&order=a

結果

JSON形式で返ってくる。

32件ずつ。

結果の詳細についてはまた時間がある時にでも…

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33