cURL
curl --request POST \ --url https://api.videodb.io/audio/{audio_id}/generate_url \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "format": "mp3", "quality": "high" } '
{ "success": true, "data": { "stream_url": "https://stream.videodb.io/a/12345" } }
Generate a shareable streaming URL for an audio file
import videodb conn = videodb.connect(api_key="your_api_key") coll = conn.get_collection() audio = coll.get_audio("a-abc123def") # Generate download/streaming URL url = audio.generate_url() print(f"Audio URL: {url}") # https://cdn.videodb.io/v3/{collection}/{audio}.mp3
API key for authentication (sk-xxx format)
"a-12345"
mp3
wav
flac
"mp3"
low
medium
high
"high"
Stream URL generated
true
Show child attributes