Skip to content

API reference / VOD analysis

Get a playable URL for the encoded video

GET
/vod-analysis/{id}/stream

Only available once the resource is FINISHED. Returns the URL of the playlist endpoint with a short-lived, per-resource ticket embedded in it. Hand playlistUrl to the player as-is: a media element sends no headers, so the ticket in the URL is the credential. The ticket grants playback of this one resource until expiresAt; nothing else. Call again for a fresh one when it expires.

id
required
string

The analysis’s opaque id, returned by createVodAnalysis or listVodAnalyses.

OK

Media typeapplication/json
object
playlistUrl
required

Absolute playback URL. Give it to the player unchanged.

string format: uri
expiresAt
required

When the ticket stops opening the playlists. Segments already listed keep playing.

string format: date-time

Example

{
"playlistUrl": "https://api.example.com/api/v1/vod-analysis/7f3c2a1e/playlist.m3u8?ticket=eyJhbGciOi"
}

Missing, invalid or expired credentials (UNAUTHENTICATED).

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

Human-readable, safe to show to the user. For VALIDATION with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and details lists them.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}

No such resource for this caller (NOT_FOUND). Other users’ resources look the same.

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

Human-readable, safe to show to the user. For VALIDATION with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and details lists them.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}

The resource is in a state that does not allow this operation (INVALID_STATE).

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

Human-readable, safe to show to the user. For VALIDATION with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and details lists them.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}

Unexpected error

Media typeapplication/json
object
code
required

Stable machine-readable code. Clients branch on this, never on message.

string
Allowed values: VALIDATION UNAUTHENTICATED INVALID_TOKEN FORBIDDEN EMAIL_NOT_VERIFIED NOT_FOUND INVALID_STATE UPLOAD_INCOMPLETE QUOTA_EXCEEDED RATE_LIMITED UPSTREAM_ERROR CLIPS_NOT_CONFIGURED CLIPS_UNAVAILABLE INTERNAL
message
required

Human-readable, safe to show to the user. For VALIDATION with a single detail, it states that detail’s reason, naming the field where the reason needs it; with several, it is generic and details lists them.

string
details

Optional field-level or limit-level detail.

Array<object>
object
field

The request field the detail refers to, if any; for QUOTA_EXCEEDED, the limit that was hit.

string
message
required
string

Example

{
"code": "VALIDATION",
"message": "The file is larger than the limit of 2147483648 bytes.",
"details": [
{
"field": "sizeBytes",
"message": "must be at most 2147483648"
}
]
}