GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Support for Programmatically Inviting Recipients to Private Videos via YouTube API v3 · Issue #3626 · googleapis/google-api-nodejs-client

Add Support for Programmatically Inviting Recipients to Private Videos via YouTube API v3 #3626

New issue
Copy link
New issue
Copy link
Closed
Closed
Add Support for Programmatically Inviting Recipients to Private Videos via YouTube API v3#3626
Copy link
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@Eprince-hub
Eprince-hub
opened on Feb 11, 2025
Issue body actions

A screenshot that you have tested with "Try this API".

The current YouTube API v3 does not support programmatically inviting users (via email) to private videos, despite this feature being available in the YouTube UI. When attempting to use the recipients field in the videos.update method, developers receive errors, forcing manual sharing and creating workflow inefficiencies.

Current Limitations:

  1. The recipients field is ignored/unsupported in API requests
  2. Developers must manually invite users via the YouTube UI, which is not scalable for applications requiring automation
Image Image Image

What would you like to see in the library?

Extend the YouTube API v3 to support the recipients parameter in the videos.update method, mirroring the UI functionality. This would allow a code like below that currently throws an error

await youtube.videos.update({
  part: ['status', 'recipients'],
  requestBody: {
    id: 'VIDEO_ID',
    status: { privacyStatus: 'private' },
    recipients: ['[email protected]'], // ✅ Valid email(s)
  },
});

This feature would be very useful in some cases like

  1. EdTech Platforms: Grant students/educators access to private course videos programmatically.
  2. Collaborative Content Creation: Platforms allowing multiple contributors to review/edit private videos.
  3. Enterprise Internal Sharing: Automate secure video access for team members without manual UI steps.

Current response when including recipients:

{
  "error": {
    "code": 400,
    "message": "'recipients'",
    "errors": [
      {
        "message": "'recipients'",
        "domain": "youtube.part",
        "reason": "unknownPart",
        "location": "part",
        "locationType": "parameter"
      }
    ]
  }
}

The feature will be beneficial because it will

  1. Align API capabilities with YouTube’s UI features.
  2. Reduce reliance on risky workarounds like credential sharing for manual access.

Describe alternatives you've considered

I tried to use some npm libraries like youtube-studio, but none seems to be doing that. Another option would be to use browser automation like Puppeteer to mimic the UI actions, but this is Fragile and may violate some kind of ToS

Additional context/notes

API Version: youtube.v3
Authentication Method: OAuth 2.0
Environment: Node.js (googleapis v144.0.0)

Activity

  1. googleapis
    deleted a comment from gringomarcos0223 on Feb 21, 2025
  2. d-goog commented on Feb 21, 2025

    @d-goog
    d-goog
    on Feb 21, 2025
    More actions

    Thanks for this thoughtful feature request! The YouTube team can consider this if this request were filed here:

    • https://issuetracker.google.com/issues/new?component=186600&template=874803

    We can only accept JS-client exclusive feature requests here; the proposal appears to benefit the API itself

  3. d-goog
    closed this as completedon Feb 21, 2025
  4. d-goog
    added
    type: questionRequest for information or clarification. Not an issue.
    on Feb 21, 2025
  5. karlhorky commented on Mar 3, 2025

    @karlhorky
    karlhorky
    on Mar 3, 2025
    More actions

    For anyone following along, @Eprince-hub opened a request in the issue tracker over here:

    • https://issuetracker.google.com/issues/399683084
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.