How to get releases list from from python

Hi,
I need to get the releases list from github url in json format because I have to develop a notification service which alert a new version presence.
I tried to follow this guide https://docs.github.com/en/rest/reference/repos#list-releases
but not all github url can respond in json format.
For example:

curl \
  -H "Accept: application/vnd.github.v3+json" \
  https://github.com/justjanne/powerline-go/releases

doesn’ t works. I can see only text/html content

How could i resolve it?

Regards