Is there a way to get all recordings for a work either through web API or Python

Is there a way to get all recordings for a work either through web API or Python?
Alternative, I could use a SQL statement.

See the api documentation:
https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2

Find the work id and look up that entry and ask fore recording-rels to get the recordings of that work for example:
https://musicbrainz.org/ws/2/work/4bb47ffc-9006-32cf-8aa9-e213334550dc?inc=recording-rels&fmt=json

4 Likes

Thanks. I had gone over the documentation before posting and had tried the structure in the second link, but had no luck… wanted to see if I was missing something silly.

I think it was a data issue (I was trying to use a single movement from a classical piece as a work).
I had more luck when I tried a less granular work just now.
Thanks for clarifying.