1 | # simpleyt
|
2 |
|
3 | [![image](https://img.shields.io/github/license/kimcore/simpleYT?style=flat-square)](https://github.com/kimcore/simpleYT/blob/master/LICENSE)
|
4 |
|
5 | [![image](https://nodei.co/npm/simpleyt.png?downloads=true&stars=true)](https://nodei.co/npm/simpleyt/)
|
6 |
|
7 | > Simple youtube search library without need of an api key
|
8 |
|
9 | ## Usage
|
10 | ```js
|
11 | const simpleYT = require('simpleyt')
|
12 | const query = 'JUSTHIS'
|
13 | simpleYT(query, {
|
14 | filter: 'video', // Filter only videos
|
15 | localAddress: '2001:470:1234:5678::a',
|
16 | family: 6
|
17 | // Other parameters are passed to miniget
|
18 | }).then(console.log)
|
19 | ```
|
20 | ## Result
|
21 | ```js
|
22 | [
|
23 | {
|
24 | type: 'video',
|
25 | identifier: 'iMTblJbmam4',
|
26 | uri: 'https://www.youtube.com/watch?v=iMTblJbmam4',
|
27 | title: "[ENG/CC][4K] JUSTHIS(저스디스)의 킬링벌스를 라이브로! I IndiGO, Diablo, Gone, DF KV Freestyle, That Ain't Real 등",
|
28 | author: {
|
29 | name: 'dingo freestyle',
|
30 | profile: 'https://yt3.ggpht.com/a-/AOh14GiiLlR1duwARrL4IWqmVVZcuH-mdVnQLunfTw=s68-c-k-c0x00ffffff-no-rj-mo',
|
31 | uri: 'https://www.youtube.com/user/nunnaamo'
|
32 | },
|
33 | length: { ms: 794000, sec: 794 },
|
34 | isStream: false,
|
35 | thumbnails: [ [Object], [Object], [Object], [Object] ]
|
36 | },
|
37 | ...
|
38 | ]
|
39 | ```
|
40 |
|
41 |
|