-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Retrieve Full Direct Dependency Information via API #148
Comments
I think GetDependencies does return the full list of dependencies. Do you have an example that you see the full list is not returned? |
I am using two different APIs from https://api.deps.dev/v3alpha/systems/npm/packages/react/versions/18.2.0. |
The first API returns the dependent count and the second API returns the list of dependencies. Which data are you looking for? |
I want to find an API that can provide all the dependencies of a software package. The issue I see with the two APIs mentioned above is that the dependency list returned by the second API does not correspond to the number of direct dependents in the first API. I hope to use an API to retrieve the names of all direct dependencies, and I'm wondering if that's possible. |
as I said, the first API returns the dependent count and the second API returns the list of dependencies so they are about different sets of data. If you are looking for all the dependencies of a package, GetDependencies should do the work. |
According to what you said, the first API indicates that React has 4,792 direct dependencies. Therefore, the second API, GetDependencies, should provide me with the names and corresponding relationships of those 4,792 dependency packages. Why are there only two packages? |
The first API indicates that |
Thank you, I understand now. I appreciate your response. |
Hello,
I have been using deps.dev to collect package dependency information and I came across the documentation mentioning the following API:
GetDependencies GET /v3alpha/systems/{versionKey.system}/packages/{versionKey.name}/versions/{versionKey.version}:dependencies
However, when using this API, I found that it only provides a simple example and doesn't return the full direct dependencies of a package.I am wondering if there is a way to retrieve the complete list of direct dependencies through this API or another method.
Thank you for your help!
The text was updated successfully, but these errors were encountered: