เรากำลังอัปเดต Data API ให้สอดคล้องกับวิธีที่ YouTube นับยอดดูสำหรับ Shorts
ดูข้อมูลเพิ่มเติม
VideoAbuseReportReasons
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล videoAbuseReportReason
มีข้อมูลเกี่ยวกับสาเหตุที่วิดีโออาจถูกแจ้งว่าไม่เหมาะสมเนื่องจากมีเนื้อหาที่เป็นการละเมิด เมื่อแอปพลิเคชันเรียกใช้เมธอด videos.reportAbuse
เพื่อรายงานวิดีโอที่มีการละเมิด คำขอจะใช้ข้อมูลจากแหล่งข้อมูล videoAbuseReportReason
เพื่อระบุเหตุผลที่รายงานวิดีโอ
เมธอด
API รองรับวิธีการต่อไปนี้สำหรับทรัพยากร videoAbuseReportReasons
- list
- ดูรายการเหตุผลที่สามารถใช้เพื่อรายงานวิดีโอที่มีการละเมิด
ลองใช้เลย
การนําเสนอทรัพยากร
โครงสร้าง JSON ต่อไปนี้แสดงรูปแบบของแหล่งข้อมูล videoAbuseReportReason
{
"kind": "youtube#videoAbuseReportReason",
"etag": etag,
"id": string,
"snippet": {
"label": string,
"secondaryReasons": [
{
"id": string,
"label": string
}
]
}
}
พร็อพเพอร์ตี้
ตารางต่อไปนี้จะกำหนดพร็อพเพอร์ตี้ที่ปรากฏในทรัพยากรนี้
พร็อพเพอร์ตี้ |
kind |
string
ระบุประเภทของทรัพยากร API ค่าจะเป็น youtube#videoAbuseReportReason |
etag |
etag
Etag ของทรัพยากรนี้ |
id |
string
รหัสที่ YouTube ใช้ระบุเหตุผล เมื่อเรียกใช้เมธอด videos.reportAbuse แอปพลิเคชันควรใช้ค่านี้เพื่อตั้งค่าพร็อพเพอร์ตี้ reasonId |
snippet |
object
ออบเจ็กต์ snippet มีรายละเอียดพื้นฐานเกี่ยวกับเหตุผล |
snippet.label |
string
ข้อความป้ายกำกับที่แปลแล้วสำหรับเหตุผลในการรายงานการละเมิด |
snippet.secondaryReasons[] |
list
รายการเหตุผลรองที่เชื่อมโยงกับเหตุผล หากมี (อาจมีตั้งแต่ 0 ขึ้นไป) |
snippet.secondaryReasons[].id |
string
รหัสที่ YouTube ใช้ระบุเหตุผลรอง เมื่อเรียกใช้เมธอด videos.reportAbuse แอปพลิเคชันควรใช้ค่านี้เพื่อตั้งค่าพร็อพเพอร์ตี้ secondaryReasonId |
snippet.secondaryReasons[].label |
string
ข้อความป้ายกำกับที่แปลแล้วสำหรับเหตุผลรอง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[null,null,["อัปเดตล่าสุด 2025-08-21 UTC"],[[["\u003cp\u003eA \u003ccode\u003evideoAbuseReportReason\u003c/code\u003e resource provides the reasons for flagging a video as abusive.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003evideos.reportAbuse\u003c/code\u003e method utilizes \u003ccode\u003evideoAbuseReportReason\u003c/code\u003e data to specify why a video is being reported.\u003c/p\u003e\n"],["\u003cp\u003eThe API's \u003ccode\u003evideoAbuseReportReasons.list\u003c/code\u003e method lets users get a list of reasons for reporting abusive videos.\u003c/p\u003e\n"],["\u003cp\u003eThe resource is represented in JSON format, containing an id, kind, etag and snippet, along with additional nested information, such as secondary reasons.\u003c/p\u003e\n"],["\u003cp\u003eEach of the labels and secondary reasons available to report a video with also have an ID that is used when using the \u003ccode\u003evideos.reportAbuse\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `videoAbuseReportReason` resource provides data for flagging abusive video content. It contains an ID, localized label, and optional secondary reasons, each with their ID and label. The `videos.reportAbuse` method uses the `videoAbuseReportReason` data, which you can list by calling the `videoAbuseReportReasons/list` method. The resource's `id` property is used in the `videos.reportAbuse` method to define the reason for the report. Secondary reasons are listed in the `snippet` property.\n"],null,["# VideoAbuseReportReasons\n\nA **videoAbuseReportReason** resource contains information about a reason that a video would be flagged for containing abusive content. When your application calls the [videos.reportAbuse](/youtube/v3/docs/videos/reportAbuse) method to report an abusive video, the request uses the information from a `videoAbuseReportReason` resource to identify the reason that the video is being reported.\n\nMethods\n-------\n\nThe API supports the following methods for `videoAbuseReportReasons` resources:\n\n[list](/youtube/v3/docs/videoAbuseReportReasons/list)\n: Retrieve a list of reasons that can be used to report abusive videos.\n [Try it now](/youtube/v3/docs/videoAbuseReportReasons/list#usage).\n\nResource representation\n-----------------------\n\nThe following JSON structure shows the format of a `videoAbuseReportReason` resource: \n\n```text\n{\n \"kind\": \"youtube#videoAbuseReportReason\",\n \"etag\": etag,\n \"id\": string,\n \"snippet\": {\n \"label\": string,\n \"secondaryReasons\": [\n {\n \"id\": string,\n \"label\": string\n }\n ]\n }\n}\n```\n\n### Properties\n\nThe following table defines the properties that appear in this resource:\n\n| Properties ||\n|------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies the API resource's type. The value will be `youtube#videoAbuseReportReason`. |\n| `etag` | `etag` The Etag of this resource. |\n| `id` | `string` The ID that YouTube uses to identify the reason. When calling the `videos.reportAbuse` method, your application should use this value to set the [reasonId](/youtube/v3/docs/videos/reportAbuse#reasonId) property. |\n| `snippet` | `object` The `snippet` object contains basic details about the reason. |\n| snippet.`label` | `string` The localized label text for the abuse report reason. |\n| snippet.`secondaryReasons[]` | `list` A list of secondary reasons associated with the reason, if any are available. (There might be 0 or more.) |\n| snippet.secondaryReasons[].`id` | `string` The ID that YouTube uses to identify the secondary reason. When calling the `videos.reportAbuse` method, your application should use this value to set the [secondaryReasonId](/youtube/v3/docs/videos/reportAbuse#secondaryReasonId) property. |\n| snippet.secondaryReasons[].`label` | `string` The localized label text for the secondary reason. |"]]