Analyze YouTube Tracks
The analysis of a YouTube track with all the available classifiers will automatically be started upon creation.
However, in case the analysis limit for a time period has already been reached, the analysis
will not be enqueued
and must be manually enqueued at a later point (when the limit got reset/increased) using the
Mutation.youTubeTrackEnqueue
field.
Depending on the account type the eligible analysis for that account will be enqueued upon
invoking the Mutation.youTubeTrackEnqueue
mutation.
The Mutation.youTubeTrackEnqueue
returns the YouTubeTrackEnqueueResult
GraphQL union type
which can either be YouTubeTrackEnqueueSuccess
or YouTubeTrackEnqueueError
.
Enqueue succeeded
In case the Mutation.youTubeTrackEnqueue
result is YouTubeTrackEnqueueSuccess
, the library
track got successfully enqueued.
Enqueue failure
In case the Mutation.youTubeTrackEnqueue
result is YouTubeTrackEnqueueError
, the library
track could not be enqueued.
The error
and message
field on the YouTubeTrackEnqueueError
contain a detailed description
on why the library track could not be enqueued.
Error code overview
Error code | Meaning |
---|---|
limitExceeded | The analysis limit was exceeded. |
invalidYouTubeLink | The YouTube link provided was incorrect |
videoDurationExceeded | The YouTube video is too long (limit is 10 minutes) |
Next steps
A detailed overview can be found on the GraphQL schema documentation: