You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ Want to access data from the YouTube Data v3 API? Want a Node.js YouTube API wra
12
12
Check out [our website](https://bbothell.me/popyt)!
13
13
14
14
# Examples
15
-
First of all, I recommend that you check out [the documentation](https://bbothell.me/popyt/docs) for all of the methods and what they return. Here are some basic methods:
15
+
## Check out [the documentation](https://bbothell.me/popyt/docs).
16
+
Here are some basic methods:
16
17
17
18
Instantiate the object:
18
19
@@ -35,7 +36,7 @@ const video = await youtube.getVideo('dQw4w9WgXcQ')
35
36
console.log(video)
36
37
```
37
38
38
-
### You can do the same thing with playlists, channels, and comments by replacing `Video` with any of them.###
39
+
You can do the same thing with playlists, channels, and comments by replacing `Video` with any of them.
39
40
40
41
Get a video by URL:
41
42
@@ -51,7 +52,7 @@ const video = await youtube.getVideo('never gonna give you up')
51
52
console.log(video)
52
53
```
53
54
54
-
## Search videos:
55
+
Search videos:
55
56
56
57
```js
57
58
constvideos=awaityoutube.searchVideos('never gonna give you up', 12)
@@ -60,7 +61,7 @@ console.log(videos) // array of 12 partial video objects
60
61
61
62
Note: This wrapper does not implement every feature of the YouTube API. With a single developer working on it, there just isn't time for everything to be implemented. Some of the objectively most-important features have been added. The limits imposed by the wrapper are not imposed by YouTube.
0 commit comments