Music

Get detailed music information by ID

Retrieve full details for a music item including artist biography, genre and mood metadata, popularity score, and download statistics.

get/v1/music/{music-id}

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/music/{music-id}
  • Auth: API key in header x-magnific-api-key

Path parameters

music-idinteger required

Unique numeric identifier of the music item

Response

OK

idinteger required

Unique identifier of the music item

titlestring required

Music title

cover_urlstring nullable

URL to the music cover image

file_urlstring nullable

Direct S3/CDN URL to the audio file

preview_urlstring nullable

Preview URL

download_urlstring nullable

URL to download the music

secondsinteger

Music duration in seconds

timestring

Music duration formatted as minutes and seconds

popularityinteger

Popularity score

is_premiumboolean

Whether the music is premium

is_activeboolean

Whether the music is active

created_atstring date-time

Music creation timestamp

downloadsinteger

Total number of downloads

favoritesinteger

Total number of favorites

in_playlistsinteger

Number of playlists containing this music

Example response

{
  "favorites": 350,
  "file_url": "file_url",
  "cover_url": "cover_url",
  "is_active": true,
  "artist": {
    "cover_url": "cover_url",
    "name": "John Doe",
    "bio": "bio",
    "id": 1,
    "track_count": 42
  },
  "moods": [
    {
      "cover_url": "cover_url",
      "is_active": true,
      "name": "Happy",
      "id": 1,
      "order": 1
    },
    {
      "cover_url": "cover_url",
      "is_active": true,
      "name": "Happy",
      "id": 1,
      "order": 1
    }
  ],
  "created_at": "2000-01-23T04:56:07.000+00:00",
  "in_playlists": 15,
  "title": "Summer Vibes",
  "seconds": 225,
  "is_premium": true,
  "downloads": 1200,
  "genres": [
    {
      "cover_url": "cover_url",
      "is_active": true,
      "name": "Electronic",
      "description": "description",
      "id": 1,
      "order": 1
    },
    {
      "cover_url": "cover_url",
      "is_active": true,
      "name": "Electronic",
      "description": "description",
      "id": 1,
      "order": 1
    }
  ],
  "preview_url": "preview_url",
  "popularity": 85,
  "download_url": "download_url",
  "id": 1,
  "time": "3:45"
}

Changes

No recorded changes to this operation across all 1 revision of this API.