How to get lyricist and composer by API?

The composer/lyricist information is on the Work entity, not the Recording, so you should look for the “inc=work-rels” option in the API.

You can take a look at older messages on the forum where this was mentioned, e.g.

3 Likes