Accessing per track personnel via api

I am a beginner python developer. I am trying to access the per track personnel listing. Like for this release:

I can’t find a way to do that. I have code that will take a given album by name and list the tracks.
I am currently using the musicbrainzngs python wrapper. I’m also beginning to wonder if that is the best method. It looks like, from its GitHub page, that it hasn’t been updated in years.
Thanks

I’m not too familar with musicbrainzngs

But generally for the webservice if you want to get additional information you use the inc parameter on the request. See also MusicBrainz API - MusicBrainz

To get all the credits for recordings and works you want to include recordings, recording-level-rels, work-level-rels, artist-rels and work-rels, likely also artist-credits. See this request:

https://musicbrainz.org/ws/2/release/b7f998ec-32ca-43c7-a93e-d6d1456df45c?inc=artist-credits+recordings+recording-level-rels+work-level-rels+artist-rels+work-rels&fmt=json

The relatonships will be provided for each entity in the relations key.

In musicbrainzngs all the lookup functions provide a includes parameter. So something like this should get you the data you want (untested):

release = musicbrainzngs.get_release_by_id(
  "b7f998ec-32ca-43c7-a93e-d6d1456df45c",
  includes=[
    "recordings", "recording-level-rels", "work-level-rels",
    "artist-rels", "work-rels"
  ]
)
3 Likes

Thanks! That was very helpful.
I didn’t realize the inc were necessary.