This package is created for get comment api from Youtube.
Requirment
- Youtube API KEY v3, from google develover console.
- VideoId, from youtube. (you can use youtube-api-search)
how to use:
-
Import
import YTComment from 'youtube-api-comment';
-
Use
YTComment({ key:API_KEY, videoId: term.videoId, maxResults: term.maxResults }, (comments) => { console.log(comments); });