Vai al contenuto
GET /v1/tag

Top videos under an exact Niconico tag

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/niconico-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/niconico-api/v1/tag" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/niconico-api/v1/tag", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/niconico-api/v1/tag");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/niconico-api/v1/tag",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "tag": "VOCALOID",
        "note": "The top Niconico videos under an exact tag, ranked by views — tags are Niconico's main discovery axis, so this is how a category (VOCALOID, ゲーム/games, 音楽/music, アニメ/anime…) is performing. total_videos is how many videos carry the tag. Pass tag (required), sort (default views) and limit (1-50). Live, cached ~60s.",
        "sort": "views",
        "count": 20,
        "source": "Niconico Snapshot Search API (tagsExact), keyless",
        "videos": [
            {
                "likes": 42744,
                "title": "『初音ミク』千本桜『オリジナル曲PV』",
                "views": 18648461,
                "mylists": 333341,
                "user_id": 449061,
                "comments": 1581065,
                "uploaded": "2011-09-17T19:00:28+09:00",
                "video_url": "https://www.nicovideo.jp/watch/sm15630734",
                "channel_id": null,
                "content_id": "sm15630734",
                "length_seconds": 244
            },
            {
                "likes": 20956,
                "title": "【初音ミク】みくみくにしてあげる♪【してやんよ】",
                "views": 17275854,
                "mylists": 231153,
                "user_id": 70391,
                "comments": 3008410,
                "uploaded": "2007-09-20T01:22:02+09:00",
                "video_url": "https://www.nicovideo.jp/watch/sm1097445",
                "channel_id": null,
                "content_id": "sm1097445",
                "length_seconds": 99
            },
            {
                "likes": 37031,
                "title": "初音ミク が オリジナル曲を歌ってくれたよ「メルト」",
                "views": 17073063,
                "mylists": 310796,
                "user_id": 317063,
                "comments": 1059276,
                "uploaded": "2007-12-07T20:46:02+09:00",
                "video_url": "https://www.nicovideo.jp/watch/sm1715919",
                "channel_id": null,
                "content_id": "sm1715919",
                "length_seconds": 256
            },
            {
                "likes": 31737,
                "title": "初音ミク・巡音ルカ オリジナル曲 「ワールズエンド・ダンスホール」",
                "views": 16079119,
                "mylists": 210755,
                "user_id": 11912389,
                "comments": 656255,
                "uploaded": "2010-05-18T10:46:14+09:00",
                "video_url": "https://www.nicovideo.jp/watch/sm10759623",
                "channel_id": null,
                "content_id": "sm10759623",
                "length_seconds": 217
            },
            {
                "likes": 22093,
                "title": "【オリジナル曲PV】マトリョシカ【初音ミク・GUMI】",
                "views": 15424984,
                "mylists": 235412,
                "user_id": 380847,
                "comments": 371334,
                "uploaded": "2010-08-19T22:25:45+09:00",
                "video_url": "https://www.nicovideo.jp/watch/sm11809611",
                "channel_id": null,
                "content_id": "sm11809611",
            
…