Skip to content

API reference / VOD analysis

List my VOD analyses

GET
/vod-analysis

Newest first. A minimal projection; use getVodAnalysis for the full resource.

limit
integer
default: 20 >= 1 <= 100

Maximum number of items to return, newest first. The response can contain fewer items.

offset
integer
0

Number of items to skip, starting from the newest. Use the same limit when fetching later pages.

OK

Media typeapplication/json
object
items
required
Array<object>

A summary of one analysis. title, description, sceneCount, keywords and durationSeconds come from the analysis results and are absent until it is FINISHED (title may be present earlier if given at create).

object
id
required
string
state
required
  • UPLOADING: created, waiting for the client to upload and call start
  • QUEUED: started; the video’s length is checked, then it waits to be processed
  • PROCESSING: encoding and analysis running
  • FINISHED: results available
  • FAILED: could not start or finish, or the video was too long; see error
  • CANCELLED: stopped by you or the processing service
string
Allowed values: UPLOADING QUEUED PROCESSING FINISHED FAILED CANCELLED
fileName
required

Name of the uploaded file.

string
createdAt
required
string format: date-time
title

Given at create, else inferred by the analysis.

string
description

Summary of the whole video, from the analysis.

string
sceneCount
integer
keywords
Array<string>
durationSeconds
number format: double
total
required

Total number of resources of the caller, regardless of paging.

integer
limit
required
integer
offset
required
integer

Example

{
"items": [
{
"id": "7f3c2a1e-0b4d-4c7e-9a52-1d2e3f4a5b6c",
"state": "UPLOADING",
"fileName": "episode-01.mp4",
"title": "Los Angeles 1947",
"description": "A noir mystery set in Los Angeles in 1947.",
"sceneCount": 9,
"keywords": [
"Los Angeles",
"1947",
"mystery"
],
"durationSeconds": 719.02
}
]
}

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"
}
]
}

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"
}
]
}