Microsoft has moved nuget api from v2 to v3. Note: v2 is deprecated.Powershell gallery seems to only have a v2 end point. Does anyone know if there is a v3 endpoint.
V2 endpoint -> https://www.powershellgallery.com/api/v2/
Ref: https://docs.microsoft.com/en-us/nuget/nuget-org/overview-nuget-org