> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Audio Details

> Retrieve detailed information about a specific audio file

Retrieve metadata for a specific audio file by its ID.

<CodeGroup>
  ```python Python theme={null}
  import videodb

  conn = videodb.connect(api_key="your_api_key")
  coll = conn.get_collection()

  # Get audio details
  audio = coll.get_audio("a-abc123def")
  print(f"ID: {audio.id}")
  print(f"Name: {audio.name}")
  print(f"Duration: {audio.length}s")
  print(f"Collection: {audio.collection_id}")
  ```

  ```javascript Node.js theme={null}
  import { connect } from 'videodb';

  const conn = connect({ apiKey: 'your_api_key' });
  const coll = await conn.getCollection();

  // Get audio details
  const audio = await coll.getAudio("a-abc123def");
  console.log(`ID: ${audio.id}`);
  console.log(`Name: ${audio.name}`);
  console.log(`Duration: ${audio.length}s`);
  console.log(`Collection: ${audio.collection_id}`);
  ```
</CodeGroup>

<Note>
  * Audio IDs always start with `a-` prefix
  * The `length` property contains duration in seconds
  * Use this to retrieve metadata before generating streams or download URLs
</Note>

<CardGroup cols={2}>
  <Card title="List All Audio" icon="list" href="/api-reference/audio/list_audio">
    View all audio files in collection
  </Card>

  <Card title="Generate URL" icon="link" href="/api-reference/audio/generate_audio_url">
    Create streaming or download URLs
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /audio/{audio_id}
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /audio/{audio_id}:
    get:
      summary: Get audio details
      parameters:
        - name: audio_id
          in: path
          required: true
          schema:
            type: string
            pattern: ^a-
            example: a-12345
        - name: collection_id
          in: query
          schema:
            type: string
            example: default
      responses:
        '200':
          description: Audio details
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/Audio'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Audio:
      type: object
      properties:
        id:
          type: string
          example: a-12345
        name:
          type: string
          example: audio.mp3
        collection_id:
          type: string
          example: default
        length:
          type: number
          example: 60
        size:
          type: number
          example: 524288
        created_at:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````