YouTube API Scopes - Complete Reference
This document provides a comprehensive list of all YouTube API scopes available for OAuth 2.0 authentication.
Table of Contents
- YouTube Data API v3 Scopes
- YouTube Analytics API Scopes
- YouTube Reporting API Scopes
- YouTube Live Streaming API Scopes
- Scope Usage Guidelines
- Best Practices
YouTube Data API v3 Scopes
Basic Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/youtube |
Manage your YouTube account |
Full access |
https://www.googleapis.com/auth/youtube.readonly |
View your YouTube account |
Read-only |
https://www.googleapis.com/auth/youtube.upload |
Upload YouTube videos |
Upload only |
Channel-Specific Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/youtube.channel-memberships.creator |
Manage YouTube channel memberships |
Creator access |
Force SSL Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/youtubepartner |
View and manage your assets and associated content on YouTube |
Partner access |
https://www.googleapis.com/auth/youtubepartner-channel-audit |
View private information of your YouTube content |
Audit access |
YouTube Analytics API Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/yt-analytics.readonly |
View YouTube Analytics reports for your YouTube content |
Read-only |
https://www.googleapis.com/auth/yt-analytics-monetary.readonly |
View monetary reports for your YouTube content |
Financial read-only |
YouTube Reporting API Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/youtube.readonly |
View YouTube reporting data |
Read-only |
https://www.googleapis.com/auth/yt-analytics.readonly |
View YouTube Analytics reports |
Read-only |
YouTube Live Streaming API Scopes
| Scope |
Description |
Access Level |
https://www.googleapis.com/auth/youtube |
Manage YouTube live streams |
Full access |
https://www.googleapis.com/auth/youtube.readonly |
View YouTube live stream information |
Read-only |
https://www.googleapis.com/auth/youtube.upload |
Upload YouTube live stream content |
Upload access |
Scope Usage Guidelines
Choosing the Right Scope
- Principle of Least Privilege: Always request the minimum scope required for your application
- User Experience: Fewer scopes = better user adoption
- Security: More restrictive scopes reduce potential security risks
Common Scope Combinations
Basic Video Upload
Channel Management
Analytics Dashboard
Content Creator App
Best Practices
Scope Request Best Practices
- Incremental Authorization: Request additional scopes as needed rather than all at once
- Scope Explanation: Provide clear explanations to users about why each scope is needed
- Error Handling: Handle scope-related errors gracefully
- Token Management: Store and refresh tokens securely
Security Considerations
- Never hardcode scopes in client-side code
- Use server-side authentication for sensitive operations
- Regularly review the scopes your application uses
- Monitor for scope changes in API updates
Example OAuth 2.0 Flow with Scopes
Complete Scope Reference
All YouTube API Scopes
Scope Comparison Table
| Scope |
Read |
Write |
Upload |
Analytics |
Partner |
Memberships |
youtube |
✅ |
✅ |
✅ |
❌ |
❌ |
❌ |
youtube.readonly |
✅ |
❌ |
❌ |
❌ |
❌ |
❌ |
youtube.upload |
❌ |
❌ |
✅ |
❌ |
❌ |
❌ |
youtubepartner |
✅ |
✅ |
✅ |
❌ |
✅ |
❌ |
yt-analytics.readonly |
✅ |
❌ |
❌ |
✅ |
❌ |
❌ |
youtube.channel-memberships.creator |
✅ |
✅ |
❌ |
❌ |
❌ |
✅ |
Additional Resources
Troubleshooting
Common Scope-Related Issues
- Insufficient Permissions: Ensure you're requesting the correct scope for the operation
- Scope Mismatch: Verify the token was obtained with the required scopes
- Expired Tokens: Implement token refresh logic
- User Denied Scopes: Handle authorization failures gracefully
Debugging Tips
This comprehensive list covers all available YouTube API scopes with detailed explanations of their purposes and usage guidelines.