cURL
curl --request GET \ --url https://api.videodb.io/audio/ \ --header 'x-access-token: <api-key>'
{ "success": true, "data": { "audios": [ { "id": "a-12345", "name": "audio.mp3", "collection_id": "default", "length": 60, "size": 524288, "created_at": "2023-11-07T05:31:56Z" } ] } }
Retrieve a paginated list of all audio files in your collection
import videodb conn = videodb.connect(api_key="your_api_key") coll = conn.get_collection() # List all audio files audios = coll.get_audios() for audio in audios: print(f"{audio.id}: {audio.name} ({audio.length}s)")
a-
a-abc123def
length
API key for authentication (sk-xxx format)
"default"
List of audios
true
Show child attributes