Search packages across your feeds
Azure DevOps Services
Finding the right package for your project can be challenging, especially when there are many versions and dependencies involved. In this article, learn how to use Code Search to perform functional package search in Azure DevOps, which allows you to search for packages based on their functionality, metadata, and code snippets.
Prerequisites
An Azure DevOps organization and a project. Create an organization or a project if you haven't already.
An Azure Artifacts feed. Create a feed, if you don't have one already.
Search packages
Sign in to your project (
https://dev.azure.com/{Your_Organization}/{Your_Project}
).Enter "package" in the search box.
Select from the dropdown menus to search by feeds, views, or package types.
You can search within all feeds of the organization by default, regardless of the project you’re in.
The Views filter shows up only when you select a single feed from the Feeds filter. This filter lets you display packages from a particular view.
You can use the Type filter to choose the package type you want to search for (for example, NuGet packages).
Search with the REST API
You can use the Azure DevOps REST API to search for packages in a specific organization. For more information, see Fetch package search results.
Example
POST https://almsearch.dev.azure.com/ORGANIZATION_NAME/_apis/search/packagesearchresults?api-version=7.0
{
"$orderBy": null,
"$top": 100,
"$skip": 0,
"searchText": "react-calendar",
"filters": {
"ProtocolType": "Npm"
}
}
Search upstream sources
Using upstream sources, you can consume packages from public registries and other Azure Artifacts feeds. For more information, see Search upstream.
Note
You can only search for packages in upstream sources from your feed in Azure DevOps Services. NuGet Package Explorer doesn't support searching for upstream packages. For more information, see Download NuGet packages.
Next steps
Related articles
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for