2

Is there by NuGet API call to find whether a certain package is set

  1. unlisted
  2. deprecated

And in case of unlisted/ deprecated to get the reason or suggestion references?

1 Answer 1

2

Oh sorry, I see it seems to be quite easy - just call the

https://api.nuget.org/v3/registration5-gz-semver2/{package-id}/index.json

and then search for

  1. items.items.listed (and its boolean val)
  2. items.items.deprecation and its properties e.g. alternatePackage

example: https://api.nuget.org/v3/registration5-gz-semver2/dotnet-tool-outdated/index.json

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.