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

# Get album detail

> Get detailed information about a specific album including its media files



## OpenAPI

````yaml get /boxes/{boxId}/media/albums/{albumName}
openapi: 3.0.0
info:
  title: GBOX Open API
  description: GBOX Open API Documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://gbox.ai/api/v1
    description: Production Server
security: []
tags: []
paths:
  /boxes/{boxId}/media/albums/{albumName}:
    get:
      tags:
        - Media
      summary: Get album detail
      description: >-
        Get detailed information about a specific album including its media
        files
      operationId: MediaController_getAlbumDetail
      parameters:
        - name: boxId
          required: true
          in: path
          description: Box ID
          schema:
            example: c9bdc193-b54b-4ddb-a035-5ac0c598d32d
            type: string
        - name: albumName
          required: true
          in: path
          description: Album name
          schema:
            example: Pictures
            type: string
      responses:
        '200':
          description: Album detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Album'
      security:
        - bearer: []
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import GboxSDK from "gbox-sdk";

            const gboxSDK = new GboxSDK({
              apiKey: process.env["GBOX_API_KEY"] // This is the default and can be omitted
            });

            async function main() {
              const box = await gboxSDK.create({ type: "android" });

              const albumInfo = await box.media.getAlbumInfo("Pictures");

              console.log(`Album info: ${JSON.stringify(albumInfo, null, 2)}`);

              const album = await box.media.getAlbum("Pictures");

              const mediaInfo = await album.listMediaInfo();

              console.log(`Media info: ${JSON.stringify(mediaInfo, null, 2)}`);

            }

            main();
        - lang: Python
          source: |-
            import os
            from gbox_sdk import GboxSDK

            def main():
                # Initialize GboxSDK with API key from environment variable
                gbox_sdk = GboxSDK(api_key=os.environ["GBOX_API_KEY"])

                # Create an Android box for media operations
                box = gbox_sdk.create(type="android")

                # Get album information
                album_info = box.media.get_album_info("Pictures")
                print(f"Album info: {album_info}")

                # Get album and list its media information
                album = box.media.get_album("Pictures")
                media_info = album.list_media_info()
                print(f"Media info: {media_info}")

            if __name__ == "__main__":
                main()
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/gbox/gbox-sdk-go\"\n)\n\nfunc main() {\n\t// Initialize GboxSDK with API key from environment variable\n\tgboxSDK := gbox.NewGboxSDK(os.Getenv(\"GBOX_API_KEY\"))\n\n\t// Create an Android box for media operations\n\tbox, err := gboxSDK.Create(context.Background(), gbox.CreateOptions{Type: \"android\"})\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to create android box: %v\", err)\n\t}\n\n\t// Get album information\n\talbumInfo, err := box.Media.GetAlbumInfo(context.Background(), \"Pictures\")\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to get album info: %v\", err)\n\t}\n\tfmt.Printf(\"Album info: %+v\\n\", albumInfo)\n\n\t// Get album and list its media information\n\talbum, err := box.Media.GetAlbum(context.Background(), \"Pictures\")\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to get album: %v\", err)\n\t}\n\tmediaInfo, err := album.ListMediaInfo(context.Background())\n\tif err != nil {\n\t\tlog.Fatalf(\"Failed to list media info: %v\", err)\n\t}\n\tfmt.Printf(\"Media info: %+v\\n\", mediaInfo)\n}"
components:
  schemas:
    Album:
      type: object
      properties:
        name:
          type: string
          description: Name of the album
          title: Album
          example: Vacation Photos
        path:
          type: string
          description: Full path to the album in the box
          title: Album
          example: /sdcard/albums/vacation
        lastModified:
          format: date-time
          type: string
          description: Last modified time of the album
          title: Album
          example: '2021-01-01T00:00:00Z'
        mediaCount:
          type: number
          description: Number of media files in the album
          title: Album
          example: 15
      title: Album
      description: Album representation
      required:
        - name
        - path
        - lastModified
        - mediaCount
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: >-
        Enter your API Key in the format: Bearer <token>. Get it from
        https://gbox.ai

````