If you check the Videos insert method in the documentation. You will find that it states that it requires authorization

Authorization requires that you request permission of the user to access their data. In your case to insert into a users YouTube account you need their permission.
API keys on the other hand are only used to get read only access access public data. You cant access a private user account with it.
Answer from Linda Lawton - DaImTo on Stack OverflowGoogle
developers.google.com โบ youtube โบ data api โบ upload a video
Upload a Video | YouTube Data API | Google for Developers
September 14, 2026 - This guide provides and explains a Python script that uploads a YouTube video using the YouTube Data API. The code uses the Google APIs Client Library for Python.
Python Youtube API v3 Uploading Video with API Key - Stack Overflow
Is it possible to upload videos to Youtube with python through the Youtube v3 API and an API Key? from googleapiclient.discovery import build from googleapiclient.http import MediaFileUpload API_K... More on stackoverflow.com
google api - How can I simply use the Youtube API to Upload Videos? - Stack Overflow
Enable the YouTube Data API v3 for your project. Create OAuth 2.0 credentials (Client ID and Client Secret) for a desktop application. Use these credentials in your application. First of all you need a method to handle OAuth 2.0 authentication then you just need to add a method for uploading videos. Here's a example how you can implement a YouTubeAPI class in python ... More on stackoverflow.com
YouTube API Upload Video
What error did you get when you tried the example? More on reddit.com
Using Youtube API wrapper to Schedule Upload?
If this wrapper doesn't make that option available, you'll have to use the standard YouTube API. But you wouldn't want to try to use both, since they wouldn't talk to each other and you'd need to authenticate separately with both. More on reddit.com
PyPI
pypi.org โบ project โบ simple-youtube-api
simple-youtube-api
JavaScript is disabled in your browser. Please enable JavaScript to proceed ยท A required part of this site couldnโt load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser
YouTube
youtube.com โบ watch
How to Upload Videos with the YouTube API (using Python) - YouTube
Learn how to upload a new video with the YouTube API and Python. This tutorial uses YouTube Data API v3.Check out videoflo on GitHub (and follow me there too...
Published: July 13, 2021
Toolify
toolify.ai โบ ai-news โบ learn-to-upload-videos-using-youtube-data-api-with-python-105182
Learn to Upload Videos using YouTube Data API with Python
December 26, 2023 - We covered the installation of necessary packages, creating a project on the Google Cloud Platform, enabling the YouTube Data API, configuring consent screen, creating credentials, obtaining client secrets JSON, updating the Python script, uploading videos to YouTube, and troubleshooting and verifying the application.
YouTube
youtube.com โบ watch
How to Upload Videos to YouTube Using Python (YouTube API v3 Tutorial) - YouTube
Want to automate your YouTube uploads using Python? In this video, Iโll show you step-by-step how to upload a video to YouTube using the YouTube Data API v3!...
Published: June 13, 2025
Learn Data Analysis
learndataanalysis.org โบ home โบ how to upload a video to youtube using youtube data api in python
How to upload a video to YouTube using YouTube Data API in Python - Learn Data Analysis
January 18, 2022 - import datetime from Google import Create_Service from googleapiclient.http import MediaFileUpload CLIENT_SECRET_FILE = '<client file.json>' API_NAME = 'youtube' API_VERSION = 'v3' SCOPES = ['https://www.googleapis.com/auth/youtube.upload'] service = Create_Service(CLIENT_SECRET_FILE, API_NAME, API_VERSION, SCOPES) upload_date_time = datetime.datetime(2020, 12, 25, 12, 30, 0).isoformat() + '.000Z' request_body = { 'snippet': { 'categoryI': 19, 'title': 'Upload Testing', 'description': 'Hello World Description', 'tags': ['Travel', 'video test', 'Travel Tips'] }, 'status': { 'privacyStatus': 'pr
YouTube
youtube.com โบ watch
Upload Videos to YouTube with the Data API in Python - YouTube
How to use the YouTube Data API v3 to upload videos to your channel from Python scripts and the command line.๐ upload_video.py โบ https://github.com/nonoesp/...
Published: June 6, 2022