Resource: Claim
A claim
links a partner- or user-uploaded video to an asset that the video matches. The claim indicates whether the video matches the audio, video, or audiovisual (audio and video) components of the asset. The claim also specifies the policy that the rights owner wants YouTube to apply to the claimed video.
JSON representation |
---|
{ "kind": string, "policy": { object ( |
Fields | |
---|---|
kind |
The type of the API resource. For |
policy |
The policy provided by the viewing owner on the claim. |
timeCreated |
The time the claim was created. |
contentType |
This value indicates whether the claim covers the audio, video, or audiovisual portion of the claimed content. |
ugcType |
UGC type of the claim (standard, premium, song). |
isPartnerUploaded |
Indicates whether or not the claim is a partner uploaded claim. |
timeStatusLastModified |
The time the claim status and/or status detail was last modified. |
blockOutsideOwnership |
Indicates whether or not the claimed video should be blocked anywhere it is not explicitly owned. |
status |
The claim's status. When updating a claim, you can update its status from |
appliedPolicy |
The applied policy for the viewing owner on the claim. This might not be the same as the final claim policy on the video as it does not consider other partners' policy of the same claim. |
id |
The ID that YouTube assigns and uses to uniquely identify the claim. |
assetId |
The unique YouTube asset ID that identifies the asset associated with the claim. |
videoId |
The unique YouTube video ID that identifies the video associated with the claim. |
origin |
|
matchInfo |
If this claim was auto-generated based on a provided reference, this section will provide details of the match that generated the claim. |
studioInfo |
Contains URLs linking back to claim-related pages in Studio. |
Origin
This object contains information that describes the source of the metadata or ownership data.
JSON representation |
---|
{ "source": string } |
Fields | |
---|---|
source |
|
MatchInfo
Match information about the claim.
JSON representation |
---|
{ "matchSegments": [ { object ( |
Fields | |
---|---|
matchSegments[] |
Details about each match segment. Each item in the list contains information about one match segment associated with the claim. It is possible to have multiple match segments. For example, if the audio and video content of an uploaded video match that of a reference video, there would be two match segments. One segment would describe the audio match and the other would describe the video match. |
referenceId |
The reference ID that generated this match. |
longestMatch |
Details of the longest match between the reference and the user video. |
totalMatch |
Details of the total amount of reference and user video content which matched each other. Note these two values may differ if either the reference or the user video contains a loop. |
MatchSegment
Info about a single match segment on a claim.
JSON representation |
---|
{ "video_segment": { object ( |
Fields | |
---|---|
video_segment |
The |
reference_segment |
The |
channel |
Identifies the manner in which the claimed video matches the reference video. |
manual_segment |
On insert operation of manual claims, the |
Segment
This resource represents a simple segment with start and finish time formatted as a "hh:mm:ss.mmm" string.
JSON representation |
---|
{ "start": string, "duration": string, "kind": string } |
Fields | |
---|---|
start |
The start time of the segment, measured in milliseconds from the beginning. |
duration |
The duration of the segment in milliseconds. |
kind |
The type of the API resource. For segment resources, the value is |
Segment2
This resource represents a another simple segment with start and finish time formatted as a "hh:mm:ss.mmm" string.
JSON representation |
---|
{ "start": string, "kind": string, "finish": string } |
Fields | |
---|---|
start |
The start time of the segment, measured in milliseconds from the beginning. |
kind |
The type of the API resource. For segment resources, the value is |
finish |
The finish time of the segment, measured in milliseconds from the beginning. |
LongestMatch
Longest claim match.
JSON representation |
---|
{ "durationSecs": string, "userVideoOffset": string, "referenceOffset": string } |
Fields | |
---|---|
durationSecs |
The duration of the longest match between the reference and the user video. |
userVideoOffset |
The offset in seconds into the user video at which the longest match began. |
referenceOffset |
The offset in seconds into the reference at which the longest match began. |
TotalMatch
Total claim match.
JSON representation |
---|
{ "userVideoDurationSecs": string, "referenceDurationSecs": string } |
Fields | |
---|---|
userVideoDurationSecs |
The total amount of content in the user video which matched the reference in seconds. |
referenceDurationSecs |
The total amount of content in the reference which matched the user video in seconds. |
Methods |
|
---|---|
|
Retrieves a specific claim by ID. |
|
Creates a claim. |
|
Retrieves a list of claims administered by the content owner associated with the currently authenticated user. |
|
Patches an existing claim by either changing its policy or its status. |
|
Updates an existing claim by either changing its policy or its status. |