Skip to content

List Indexes

Shows how to list video indexes.

This example assumes using TwelveLabs; is in scope and apiKey contains your TwelveLabs API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
using var client = new TwelveLabsClient(apiKey);

// List all video indexes in your account.
var response = await client.SubpackageIndexes.ListAsync(
    xApiKey: apiKey);

// The response contains a paginated list of indexes.
foreach (var index in response.Data!)
{
    Console.WriteLine($"Index: {index.IndexName} (ID: {index.Id}, Videos: {index.VideoCount})");
}