Vidispine
Retrieving item information [VC 21.3 GEN]
Item content can be retrieved from different resources, the query parameters used are the same for the different resources. Below a table of the different supported resources can be seen.
Name | BASE_PATH |
|---|---|
Search |
|
Specific items |
|
Libraries |
|
Collections |
|
Get item information
By using a content parameter, much information can be gathered in one single call to the API.
Get information
GET {item-content-resource}
Retrieves the types of content that are specified in content. If URIs are included then the parameters type or tag needs to be set.
Query Parameters: |
|
Produces: |
|
Role: | _metadata_read ( |
Role: | _item_uri ( |
Role: | _thumbnail_read ( |
Role: | _access_control_read ( |
Role: | _item_id_read ( |
Example
Retrieving terse metadata and thumbnails for an item.
GET /API/item/VX-123/?content=metadata,thumbnail&terse=yes<ItemDocument id="VX-123">
<thumbnails>
<uri>http://example.com/API/thumbnail/VX-1/VX-123/0@1000000</uri>
<uri>http://example.com/API/thumbnail/VX-1/VX-123/1000000@1000000</uri>
<uri>http://example.com/API/thumbnail/VX-1/VX-123/2000000@1000000</uri>
</thumbnails>
<terse>
<durationSeconds end="+INF" start="-INF">2.04</durationSeconds>
<durationTimeCode end="+INF" start="-INF">2040000@1000000</durationTimeCode>
<field_A end="7" start="3">ABC</field_A>
<title end="+INF" start="-INF">This is an imported item!</title>
<user end="+INF" start="-INF">testUser</user>
</terse>
</ItemDocument>Get item content in the search result
The parameters above can also be used when searching (Search). Note that only content the user has sufficient permissions for will be retrieved.
Example
Retrieving the URIs to all AVI containers that can be accessed either by HTTP or FTP for all items.
GET /API/item/?content=uri&type=avi&scheme=http,ftp<ItemListDocument xmlns="http://xml.vidispine.com/schema/vidispine">
<item id="VX-123">
<files>
<uri>ftp://example.com/VX-123_VX-2189.avi</uri>
</files>
<timespan start="-INF" end="+INF"/>
</item>
<item id="VX-124">
<files/>
<timespan start="-INF" end="+INF"/>
</item>
<item id="VX-125">
<files>
<uri>http://example.com/VX-125_VX-3180.avi</uri>
<uri>ftp://example.com/VX-125_VX-3180.avi</uri>
</files>
<timespan start="-INF" end="+INF"/>
</item>
</ItemListDocument>Retrieving URIs to the content of an item
The URI retrieval method is a scaled-down version of the Get information method above.
Get item URI
GET /item/(item-id)/uri
Retrieves the URI to any container contained in the item that matches the specified type or the files contained in a shape that matches the given tags.
Query Parameters: |
|
Produces: |
|
Role: | _item_uri |
Example
GET /item/VX-123/uri?type=avi&tag=lowres
Accept: application/xml<URIListDocument xmlns="http://xml.vidispine.com/schema/vidispine">
<uri>http://example.com/VX-123_VX-5003.avi</uri>
<uri>ftp://user:password@example.com/VX-123_VX-5003.avi</uri>
</URIListDocument>