Retrieve all Metadata

Tags: #<Tag:0x00007f05080535c0> #<Tag:0x00007f0508053408>


I’m trying to use acoustid through the code at
However i’m only getting track name and artist names, how can I get all the available metadata for a song?

Thanking you,



You need to use the returned recording ID with a MusicBrainz API client to get the rest of the metadata. Not a Python programmer, though, so I’m afraid my attempt to point you to one would be no better than Google (which returns several).


Ah okay, Thanks man :slight_smile:
But i’m still a bit confused, if anyone could help me out it’d be great!


@adityamenon: If you have pyacoustid and musicbrainzngs I guess something like that should work (my code should be py2/py3 compatible):

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from pprint import pprint

import acoustid
import musicbrainzngs

# replace by your own

# replace by your own
musicbrainzngs.set_useragent("loujine-test", "0.0.1",

# replace
filename = "..."

for result in acoustid.match(API_KEY, filename):
    mbid = result[1]
    recording = musicbrainzngs.get_recording_by_id(mbid, includes=['artists', 'releases', 'media'])

Here recording should contain the JSON data