APIs / NuGet / Search packages

NuGet: Search packages

.NET packages on NuGet matching a query, with total downloads, authors, owners, tags, verified prefix and latest version.

GET /v1/nuget/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
querystringOptionalUp to 200 characters
Words to match in the package ID, title, description or tags. Empty lists popular packages.
prereleasebooleanOptionalAny
true to include pre-release versions. Default false.
package_typestringOptionalUp to 50 characters
Only this package type, for example Dependency, DotnetTool or Template.
pageintegerOptionalAny
Results page, from 1.
per_pageintegerOptionalAny
Results per page, 1 to 100. Default 20.

Example request

NuGet
GET/v1/nuget/search?query=json&per_page=10
{
  "success": true,
  "data": {
    "total": 13285,
    "page": 1,
    "has_more": true,
    "count": 10,
    "items": [
      {
        "id": "Newtonsoft.Json",
        "version": "13.0.4",
        "title": "Json.NET",
        "description": "Json.NET is a popular high-performance JSON framework for .NET",
        "authors": [
          "James Newton-King"
        ],
        "owners": [
          "dotnetfoundation",
          "jamesnk",
          "newtonsoft"
        ],
        "total_downloads": 10038357843,
        "verified": true,
        "tags": [
          "json"
        ],
        "project_url": "https://www.newtonsoft.com/json",
        "deprecated": false,
        "url": "https://www.nuget.org/packages/Newtonsoft.Json"
      },
      {
        "id": "System.Text.Json",
        "version": "11.0.0",
        "title": "System.Text.Json",
        "description": "Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded a…",
        "authors": [
          "Microsoft"
        ],
        "owners": [
          "dotnetframework",
          "Microsoft"
        ],
        "total_downloads": 6776014096,
        "verified": true,
        "project_url": "https://dot.net/",
        "deprecated": false,
        "url": "https://www.nuget.org/packages/System.Text.Json"
      },
      {
        "id": "Microsoft.IdentityModel.JsonWebTokens",
        "version": "8.25.0",
        "title": "Microsoft.IdentityModel.JsonWebTokens",
        "description": "Includes types that provide support for creating, serializing and validating JSON Web Tokens. This is a newer, faster version of System.IdentityModel.Tokens.Jwt that has additional functionality.",
        "authors": [
          "Microsoft"
        ],
        "owners": [
          "AzureAD",
          "Microsoft"
        ],
        "total_downloads": 4398686989,
        "verified": true,
        "tags": [
          ".NET",
          "Windows",
          "Authentication"
        ],
        "project_url": "https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet",
        "deprecated": false,
        "url": "https://www.nuget.org/packages/Microsoft.IdentityModel.JsonWebTokens"
      }
    ]
  },
  "meta": {
    "request_id": "req_35ea0e3e439b4a73a954381479ac3bae",
    "credits_charged": 1,
    "credits_remaining": 453
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data.items has these 12 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
idstring
versionstring
titlestring
descriptionstring
authorsstring[]
ownersstring[]
total_downloadsinteger
verifiedboolean
tagsstring[]
project_urlurl
deprecatedboolean
urlurl