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

  1. Sign in to your project (https://dev.azure.com/{your_organization}/{your_project}).

  2. Enter "package" in the search box.

  3. Select from the dropdown menus to search by feeds, views, or package types.

    Screenshot showing the filter panel options.

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