curl --request GET \
--url https://api.videodb.io/collection/{collection_id} \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"id": "default",
"name": "My Collection",
"description": "Collection description",
"is_public": false,
"owner": "u-12345",
"created_at": "2023-11-07T05:31:56Z"
}
}Retrieve details of a specific collection
curl --request GET \
--url https://api.videodb.io/collection/{collection_id} \
--header 'x-access-token: <api-key>'{
"success": true,
"data": {
"id": "default",
"name": "My Collection",
"description": "Collection description",
"is_public": false,
"owner": "u-12345",
"created_at": "2023-11-07T05:31:56Z"
}
}"default" to get your default collection.
import videodb
conn = videodb.connect(api_key="your_api_key")
# Get default collection
coll = conn.get_collection()
# Get specific collection
coll = conn.get_collection("c-a1b2c3d4")
print(f"Collection: {coll.name}")
"default" to access your default collection