The IndexesClient.IndexedAssetsClient class provides methods to manage indexed assets within an index.
Before you begin, create an index if you don’t have one.
Upload your content using direct or multipart uploads. The platform creates an asset and returns its unique identifier.
For URL uploads larger than 200 MB, check the asset status using the assets.retrieve method until status is ready before proceeding.
Index your content using the indexes.indexed_assets.create method.
Monitor the indexing status until it shows ready using the indexes.indexed_assets.retrieve method.
Description: This method indexes an uploaded asset to make it searchable and analyzable. Indexing processes your content and extracts information that enables the platform to search and analyze your videos.
This operation is asynchronous. The platform returns an indexed asset ID immediately and processes your content in the background. Monitor the indexing status to know when your content is ready to use.
Your asset must meet the requirements based on your workflow:
If you want to both search and analyze your videos, the most restrictive requirements apply.
This method is rate-limited. For details, see the Rate limits page.
Function signature and example:
Returns an IndexedAssetsCreateResponse object containing the unique identifier of the indexed asset.
The IndexedAssetsCreateResponse class contains the following properties:
Description: This method retrieves information about an indexed asset, including its status, metadata, and optional embeddings or transcription.
Use this method to:
Monitor the indexing progress:
status field until it shows readyRetrieve the asset metadata:
Retrieve the embeddings:
embeddingOption parameter to retrieve video embeddingsRetrieve transcriptions:
Returns an IndexedAssetDetailed object containing detailed information about the indexed asset.
The IndexedAssetDetailed class extends IndexedAsset and contains the following additional properties:
The IndexedAssetDetailed class also inherits all properties from IndexedAsset:
The IndexedAssetSystemMetadata class contains the following properties:
The HlsObject class contains the following properties:
The TranscriptionDataItem class contains the following properties:
Description: This method updates one or more fields of the metadata of an indexed asset. You can also delete a field by setting it to null.
Function signature and example:
Returns None.
Description: This method returns a list of the indexed assets in the specified index. By default, the platform returns your indexed assets sorted by creation date, with the newest at the top of the list.
Function signature and example:
Returns a SyncPager[IndexedAsset] object that allows you to iterate through the paginated indexed asset results.
The SyncPager[T] class contains the following properties and methods:
The IndexedAsset class contains the following properties:
Description: This method returns a list of indexed assets that reference the specified asset. Each entry includes the indexed asset ID and the index it belongs to.
Function signature and example:
Returns a SyncPager[IndexedAssetSummary] object that allows you to iterate through the paginated results.
The SyncPager[T] class contains the following properties and methods:
The IndexedAssetSummary class contains the following properties:
The IndexedAssetSummaryIndex class contains the following properties:
List indexed assets for an asset
Description: This method deletes all the information about the specified indexed asset. This action cannot be undone.
Function signature and example:
Returns None.