Ricardo Rodriguez
Ricardo Rodriguez

Reputation: 179

How get video view count youtube api with Nodejs

since a few days I have been looking for information on how I can get the count of reproductions of a particular YouTube video. The google documentation of how to do it with Nodejs does not clarify the doubt. If any of you knows how to help me. I would appreciate the help

Upvotes: 1

Views: 391

Answers (1)

Benjamin Loison
Benjamin Loison

Reputation: 5642

You need to download the following URL in NodeJS and extract the viewCount value: https://www.googleapis.com/youtube/v3/videos?part=statistics&id=VIDEO_ID&key=YOUR_API_KEY

Upvotes: 1

Related Questions