AI agents cannot invite reviewers to private YouTube videos via YouTube Data API
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- node.js, typescript
- Área
- api
Línea de trabajo
Comienza con el repositorio de reproducción enlazado, ejecuta index.ts con las variables de entorno documentadas e inspecciona su solicitud directa a videos.update usando part=recipients. Compara esa solicitud con la documentación de la API de YouTube videos y el issue relacionado #3626; se considerará terminado cuando se confirme una superficie de API/cliente compatible para añadir, enumerar y eliminar espectadores invitados, o cuando exista documentación clara de que no existe ninguna.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Please make sure you have searched for information in the following guides.
- Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
- Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
- Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
- Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
- Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
- Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples
A screenshot that you have tested with "Try this API".
Errors from the screenshot:
Property "recipients" does not exist in object specification.
You have invalid or missing required parameter values above. If you execute anyway, the response will likely be an error.
API response from the screenshot:
{
"error": {
"code": 400,
"message": "'recipients'",
"errors": [
{
"message": "'recipients'",
"domain": "youtube.part",
"reason": "unknownPart",
"location": "part",
"locationType": "parameter"
}
]
}
}
Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.
https://github.com/karlhorky/repro-youtube-api-private-video-recipients
A step-by-step description of how to reproduce the issue, based on the linked reproduction.
- Clone the linked reproduction repository.
- Set
YOUTUBE_ACCESS_TOKENto an OAuth access token for the Google account that owns the test video. - Set
YOUTUBE_VIDEO_IDto the ID of a video owned by that account. - From the repository root, run:
YOUTUBE_ACCESS_TOKEN='...' YOUTUBE_VIDEO_ID='...' node index.ts - The script calls the YouTube Data API
videos.updateendpoint directly withfetch, usingpart=recipients. - The request body includes the video ID and an attempted invited-viewer list.
- The API rejects the request because
recipientsis not a supportedpart.
Expected: the API supports adding invited viewers to a private YouTube video, or documents the supported equivalent.
Actual: the API rejects the request before any invited-viewer validation can happen, because there does not appear to be a supported API surface for private-video invited viewers.
A clear and concise description of what the bug is, and what you expected to happen.
AI-agent workflow blocked: AI agents can upload or update private YouTube videos through the API, but cannot invite specific human reviewers to those private videos.
(also applies to regular scripts and other automation)
YouTube Studio supports account-based access control for private videos: a creator can invite specific Google accounts by email address to view a private video.
The YouTube Data API and generated Node.js client do not appear to expose this same capability.
I expected the API to allow automation of the same private-sharing workflow available in YouTube Studio:
- Set a video to Private
- Add invited viewers by email address / Google account
- List invited viewers
- Remove invited viewers
Instead, the API rejects the recipients part as unsupported.
This blocks AI agents (for example with Antigravity CLI or Codex CLI or Claude Code, etc). A common agentic workflow is:
- Upload or generate a draft video
- Keep it private
- Invite a specific reviewer, client, student or teammate
- Wait for human review
- Update the video, publish it later or revoke access
Because the API cannot manage invited viewers, AI agents and other automation systems using private videos are pushed toward:
- brittle browser automation against YouTube Studio using Playwright MCP or similar
- unofficial client libraries that depend on undocumented YouTube Studio internals, such as https://github.com/adasq/youtube-studio
A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
I expect this behavior because YouTube Studio already supports this private-video sharing workflow in the UI:
Video:
https://github.com/user-attachments/assets/4dbacac6-28bb-462c-898f-6ae0a672de67
Screenshots:
The YouTube Data API currently documents status.privacyStatus for videos, including private, but there does not appear to be a documented way to manage the invited users for a private video:
https://developers.google.com/youtube/v3/docs/videos
This means there is a mismatch between YouTube Studio functionality and the public API/client surface.
A related earlier report also ran into the same missing API surface when trying to use a recipients part:
Expected behavior:
The API should expose a documented way to manage private-video invited viewers, for example:
- Adding invited viewers: support a
privateSharing/recipientspart onvideos.update, avideos.permissions.insertmethod or another documented endpoint for adding account-based private video access - Listing invited viewers: support a
privateSharing/recipientspart onvideos.list, avideos.permissions.listmethod or another documented endpoint for reading the current invited-viewer list - Removing invited viewers: support a
privateSharing/recipientspart onvideos.update, avideos.permissions.deletemethod or another documented endpoint for revoking account-based private video access - Validating invited viewers: return clear errors for invalid emails, non-Google accounts, quota issues and permission issues
At minimum, the API should support:
- Adding invited viewers
- Listing invited viewers
- Removing invited viewers
- Returning clear validation errors for invalid emails, non-Google accounts, quota issues and permission issues
- Lenguaje dominante
- TypeScript
- Estrellas
- 12.3k
- Forks
- 2k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 25
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googleapis/google-api-nodejs-client
-
[Discovery Engine] streamAnswer is typed as one AnswerQueryResponse, but REST returns frame arraysAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
googleapis/google-api-nodejs-client#3930 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
googleapis/google-api-nodejs-client#3927 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
size: l type: feature request
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
googleapis/google-api-nodejs-client#3926 ·
Los mantenedores suelen responder en 1 día
-
type: feature request
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
googleapis/google-api-nodejs-client#3903 ·
Los mantenedores suelen responder en 1 día
-
If a service is deprecated and its the last version fo the library, we need to fully deprecate itAbiertotype: process
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
googleapis/google-api-nodejs-client#3898 ·
Los mantenedores suelen responder en 1 día
Todos los issues de googleapis/google-api-nodejs-client
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
rohitg00/agentmemory#1428 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
boxlite-ai/boxlite#1729 ·
Los mantenedores suelen responder en 1 día
-
Detect Deno tasks from deno.jsonAbiertodetectors enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
SM260845/readme-gen#1 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
angular/angularfire#3774 ·
Los mantenedores suelen responder en 2 días