Docker Hub API requests (not registry API)

As seen in above image, shields.io can get the newest tag version a repository has to offer. I have tried finding information about this on the internet, but couldn’t find almost anything regarding this topic.

What I have found out is that apparently the Docker Hub API seems to be closed. At the same time, you can still issue some API commands. However, I couldn’t come close to the actual curl command that I would need to use to get the newest image version from a specific repository on Docker Hub.

What curl command do I need to get the newest version?

Where is the documentation for the Docker Hub (NOT the [private] registry) API.