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
Category | Requirements |
---|---|
Azure DevOps organization and project | An organization and a project. |
Azure Artifacts feed | An Azure Artifacts feed. |
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.