# Download Music as MP3

**Use case:** 

Download a public YouTube Music track as an MP3 file. Get a file link and track details in one dataset row.

## Input

```json
{
  "urls": [
    {
      "url": "https://music.youtube.com/watch?v=jNQXAC9IVRw"
    }
  ],
  "format": "mp3",
  "country": "US",
  "captionLanguage": "en"
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "string"
  },
  "artistName": {
    "label": "Artist or channel",
    "format": "string"
  },
  "audioFormat": {
    "label": "Audio format",
    "format": "string"
  },
  "audioCodec": {
    "label": "Audio codec",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Duration seconds",
    "format": "integer"
  },
  "fileSizeBytes": {
    "label": "File size bytes",
    "format": "integer"
  },
  "downloadUrl": {
    "label": "Download URL",
    "format": "string"
  },
  "thumbnailUrl": {
    "label": "Thumbnail URL",
    "format": "string"
  },
  "sourceUrl": {
    "label": "Source URL",
    "format": "string"
  },
  "publishedDate": {
    "label": "Published date",
    "format": "string"
  },
  "viewCount": {
    "label": "Views",
    "format": "integer"
  },
  "likeCount": {
    "label": "Likes",
    "format": "integer"
  },
  "commentCount": {
    "label": "Comments",
    "format": "integer"
  },
  "bitrateKbps": {
    "label": "Bitrate kbps",
    "format": "number"
  },
  "sampleRateHz": {
    "label": "Sample rate Hz",
    "format": "integer"
  },
  "captions": {
    "label": "Captions",
    "format": "object"
  },
  "submittedUrl": {
    "label": "Submitted URL",
    "format": "string"
  },
  "videoId": {
    "label": "Video ID",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [YouTube Music Downloader](https://apify.com/maximedupre/youtube-music-downloader) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/youtube-music-downloader) to learn more, explore other use cases, and run it yourself.