Skip to content

Commit 4b23fe3

Browse files
committed
YouTube-API-Tutorial
1 parent 8a59f16 commit 4b23fe3

File tree

1 file changed

+15
-0
lines changed
  • Python/YouTube-API/01-Getting-Started

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
from googleapiclient.discovery import build
3+
4+
api_key = '#YOURAPIKEY'
5+
6+
youtube = build('youtube', 'v3', developerKey=api_key)
7+
8+
request = youtube.channels().list(
9+
part='statistics',
10+
forUsername='schafer5'
11+
)
12+
13+
response = request.execute()
14+
15+
print(response)

0 commit comments

Comments
 (0)