我們正在更新 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 服務配額為每日 10,000 個配額點,這個上限足以檢查最多 5000 部影片的 MadeForKids 影片狀態。
- 使用 YouTube Data API 服務呼叫
videos.list
端點。
- 在要求參數中加入相關的影片 ID。
- 至少在要求的
part
參數中加入 id
和 status
部分。
- 檢查傳回的 MFK 狀態
video
資源;該資源會在資源的 status.madeForKids
屬性中傳回。
你可以前往 YouTube 說明中心進一步瞭解 MadeForKids 規範。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-02-23 (世界標準時間)。
[null,null,["上次更新時間: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)."]]