Refer to Docker Hub API reference
You can create token with username and password on /v2/users/login, or you have PAT.
Access repo URL with token.
i.e. curl --header "Authorization:Bearer {token}" https://hub.docker.com/v2/repositories/library
Change parameter "page" and "page_size" to get more, or check the key "next" of returned json.