Sayiqa commited on
Commit
67bbb13
·
verified ·
1 Parent(s): 135a11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -222,7 +222,7 @@ def get_video_metadata(video_id):
222
  Fetches video metadata such as title and description using the YouTube Data API.
223
  """
224
  try:
225
- YOUTUBE_API_KEY = "YOUR_YOUTUBE_API_KEY" # Replace with your YouTube Data API key
226
  youtube = build("youtube", "v3", developerKey=YOUTUBE_API_KEY)
227
  request = youtube.videos().list(part="snippet", id=video_id)
228
  response = request.execute()
 
222
  Fetches video metadata such as title and description using the YouTube Data API.
223
  """
224
  try:
225
+ YOUTUBE_API_KEY = "AIzaSyD_SDF4lC3vpHVAMnBOcN2ZCTz7dRjUc98" # Replace with your YouTube Data API key
226
  youtube = build("youtube", "v3", developerKey=YOUTUBE_API_KEY)
227
  request = youtube.videos().list(part="snippet", id=video_id)
228
  response = request.execute()