Skip to content

Instantly share code, notes, and snippets.

@k4Shinigami
k4Shinigami / youtubeGetList.md
Created January 28, 2019 19:48
how to fetch all videos from youtube channel using their api

Example with sample payload and sesponses:

Step 1: Channel ID = UC_x5XG1OV2P6uZZ5FSM9Ttw

Step 2:

Request : https://developers.google.com/youtube/v3/docs/channels/list?part=snippet,contentDetails&id=UC_x5XG1OV2P6uZZ5FSM9Ttw

/**
* API response
@k4Shinigami
k4Shinigami / arr-to-params
Created October 2, 2018 14:42
Spread operator with function and param names
function add ([x, y, z]) {
return x + y + z;
}
var arr = [1,2,3];
console.log(add(arr));