我们正在更新 Data API,以便与 YouTube 统计 Shorts 短视频观看次数的方式保持一致。
了解详情
查找视频的 MadeForKids 状态
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
与专门面向儿童的 YouTube 内容的互动(YouTube 将其标记为“MadeForKids”或“MFK”)需要特别注意和注意。
例如,如果您在自己的网站或应用中嵌入被标为 MadeForKids 的 YouTube 视频,那么根据《开发者政策》第 III.E.4.j 节的要求,您必须关闭跟踪功能,并确保关于相应玩家的所有数据收集行为均符合适用的法律,包括《美国儿童在线隐私保护法》(COPPA)。
如果您不确定某个视频是否被标识为 MadeForKids,则可以通过 YouTube Data API 服务按照下面列出的说明,随时查看视频的状态:
- 通过 https://console.cloud.google.com/ 创建或访问您的 Google 开发者帐号。
- 将 YouTube API 添加到您选择的 API 项目(如果尚未添加)。请注意,YouTube API 服务的默认配额是 10000 个每日配额点;这足以检查 MadeForKids 视频的状态(最多 5000 个视频)。
- 使用 YouTube Data API 服务调用
videos.list
端点。
- 在请求参数中添加相关视频 ID。
- 至少在请求的
part
参数中添加 id
和 status
部分。
- 检查返回的 MFK 状态对应的
video
资源,这些信息是在资源的 status.madeForKids
属性中返回的。
您可以访问 YouTube 帮助中心,详细了解 MadeForKids 准则。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-02-23。
[null,null,["最后更新时间 (UTC):2023-02-23。"],[[["\u003cp\u003eContent designated as "MadeForKids" (MFK) on YouTube requires special handling due to specific legal requirements.\u003c/p\u003e\n"],["\u003cp\u003eEmbedding MFK YouTube videos mandates disabling tracking and ensuring data collection complies with laws like COPPA.\u003c/p\u003e\n"],["\u003cp\u003eThe YouTube Data API Service can be used to determine if a video is designated as MFK by calling the \u003ccode\u003evideos.list\u003c/code\u003e endpoint.\u003c/p\u003e\n"],["\u003cp\u003eYou must use a Google developer account and add the YouTube API to a project to use the YouTube Data API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estatus.madeForKids\u003c/code\u003e property within the \u003ccode\u003evideos\u003c/code\u003e resource will define if the video is an MFK video or not, when using the \u003ccode\u003evideos.list\u003c/code\u003e endpoint.\u003c/p\u003e\n"]]],["YouTube content marked \"MadeForKids\" (MFK) necessitates specific handling. Embedding MFK videos requires disabling tracking and ensuring data collection complies with laws like COPPA. To verify a video's MFK status, use the YouTube Data API Service. Access your Google developer account, enable the YouTube API, and use the `videos.list` endpoint. Include video IDs and the `id` and `status` parts in the request. The `status.madeForKids` property reveals the MFK designation.\n"],null,["# Finding the MadeForKids status of a video\n\nInteractions with YouTube content that is specifically directed towards children, which\nYouTube labels \"MadeForKids\" or \"MFK\", require special care and attention.\n\nAs an example, if you embed a YouTube video that is designated MadeForKids on your site or\napp, you are required by [Section III.E.4.j of the\nDeveloper Policies](/youtube/terms/developer-policies#III-E-4-j) to turn off tracking and make sure that all data collection, with\nrespect to that player, is compliant with applicable laws, including U.S. Children's Online\nPrivacy Protection Act (COPPA).\n\nIf you are not sure whether a video is designated MadeForKids, you can check the status of a\nvideo at any given time via the YouTube Data API Service following the instructions outlined\nbelow:\n\n1. Create or access your Google developer account via \u003chttps://console.cloud.google.com/\u003e.\n2. Add the YouTube API to your selected API Project (if you haven't already). Note that the default YouTube API Services quota is 10,000 daily quota points; this is sufficient to check the MadeForKids video status of up to 5000 videos.\n3. Using the YouTube Data API Service, call the [videos.list](/youtube/v3/docs/videos/list) endpoint.\n 1. Include the relevant Video ID(s) in the request parameters.\n 2. Include, at minimum, the `id` and `status` parts in the request's [part](/youtube/v3/docs/videos/list#part) parameter.\n4. Check the [video](/youtube/v3/docs/videos#resource) resource returned for the MFK status, which is returned in the resource's [status.madeForKids](/youtube/v3/docs/videos#status.madeForKids) property.\n\nYou can learn more about MadeForKids guidelines in the\n[YouTube Help Center](https://support.google.com/youtube/answer/9528076)."]]