Download the PHP package 128na/niconico-rest-client without Composer

On this page you can find all versions of the php package 128na/niconico-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package niconico-rest-client

NicoNicoRestClient

ニコニコ動画の各種API的な何かを使ってデータ取得するライブラリ。 ログイン(セッション)不要のもののみ対応。

install

Usage

With custom http client

Symfony\Contracts\HttpClient\HttpClientInterface を実装しているクライアントであれば利用できます。

キャッシュ機能付きのクライアントを使用する例

Supported APIs

Public APIs

公式から提供されているもの。

https://site.nicovideo.jp/search-api-docs/snapshot

スナップショットAPI

Private APIs

公式には記載されていないがログイン不要なもの。動作保証外。

https://dic.nicovideo.jp/a/%E3%83%8B%E3%82%B3%E3%83%8B%E3%82%B3%E5%8B%95%E7%94%BBapi

https://w.atwiki.jp/nicoapi/

非公開だけど廃止時にアナウンスされる(やさしい

https://www.google.com/search?q=api+site%3Ahttps%3A%2F%2Fblog.nicovideo.jp%2Fniconews

ExtApi(getthumbinfo)

動画単体の情報を取得可能。

CeApi

※group_id=mylist_id

その他

APIではないがデータ取得可能なもの。

Rss

シリーズを取得出来る方法がなかったので無理やる作った感。

Video fields

API仕様によりできるフィールドが異なるため注意。

項目名 Method Snapshot Ext Rss Ce Ce Web 説明
APIs list get userMylist, mylist, user videoInfo videoArray, mylistGroup, mylistList, userMyVideo series
動画ID getContentId contentId video_id video.id video.id [data-watch_id]
再生ページURL getWatchUrl watch_url [email protected] [data-video_url]
動画タイトル getTitle title title title title title [data-title]
動画説明文 getDescription description description description description ×
サムネイルURL getThumbnailUrl thumbnailUrl thumbnail_url [email protected] video.thumbnail_url video.thumbnail_url [data-original]
投稿日時 getStartTime startTime first_retrieve published video.first_retrieve video.first_retrieve .video-item-date (時刻無し、日付のみ)
再生時間(h:i:s) getLengthString length × 60分未満はi:s
再生時間(秒) getLengthSeconds lengthSeconds × video.length_in_seconds video.length_in_seconds [data-video_length]
再生数 getViewCounter viewCounter view_counter × video.view_counter video.view_counter [data-view_counter]
コメント数 getCommentCounter commentCounter comment_num × video.length_in_seconds video.length_in_seconds [data-comment_counter]
マイリスト数 getMylistCounter mylistCounter mylist_counter × video.mylist_counter video.mylist_counter [data-mylist_counter]
いいね数 getLikeCounter likeCounter × × × × [data-like_counter]
最後のコメント日時 getLastCommentTime lastCommentTime × × × × ×
最後のコメント本文 getLastResBody lastResBody last_res_body × × × ×
タグ一覧 getTags tags tags.tag × tags.tag_info.tag × ×
ジャンル名 getGenre genre genre × video.genre.label video.genre.label ×
オーナータイプ getOwnerType × video.option_flag_community video.option_flag_community [data-owner_type] user or channel
オーナーID getOwnerId userId, channelId user_id, ch_id × video.user_id, video.community_id video.user_id, video.community_id [data-owner_id]
オーナー名 getOwnerName × user_nickname, ch_name × × × [data-owner_name]
オーナーアイコンURL getOwnerIconUrl × user_icon_url, ch_icon_url × × × [data-owner_icon_url]
オーナー詳細URL getOwnerUrl × × × × × [data-owner_url]
サムネイル形式 getThumbType × thumb_type × × × ×
埋め込み可 getEmbeddable × embeddable × × × ×
再生にログイン必須 getNoLivePlay × no_live_play × × × ×
動画形式 getMovieType × movie_type × × × × flv,mp4など
高画質容量 getSizeHigh × size_high × × × × bytes
低画質容量 getSizeLow × size_low × × × × bytes
動画説明文(HTML) getDescriptionHTML × × content × × ×
削除フラグ getDeleted × × × video.deleted video.deleted ×
マイリストアイテムID getMylistItemId × × × × mylist.item_id × mylistListのみ
マイリストアイテムの説明 getMylistDescription × × × × mylist.description × mylistListのみ
マイリストアイテム登録日時 getMylistCreateTime × × × × mylist.create_time × mylistListのみ

All versions of niconico-rest-client with dependencies

PHP Build Version
Package Version
Requires symfony/http-client Version ^6.2.7
symfony/dom-crawler Version ^6.2.7
symfony/css-selector Version ^6.2.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package 128na/niconico-rest-client contains the following files

Loading the files please wait ....