---
title: "NuGet API: Search packages | Perceptlayer"
description: ".NET packages on NuGet matching a query, with total downloads, authors, owners, tags, verified prefix and latest version."
url: https://perceptlayer.com/apis/nuget/search
---

[APIs](https://perceptlayer.com/apis) / [NuGet](https://perceptlayer.com/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.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 200 characters Words to match in the package ID, title, description or tags. Empty lists popular packages. |
| `prerelease` | boolean | Optional | Any true to include pre-release versions. Default false. |
| `package_type` | string | Optional | Up to 50 characters Only this package type, for example Dependency, DotnetTool or Template. |
| `page` | integer | Optional | Any Results page, from 1. |
| `per_page` | integer | Optional | Any 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 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/nuget?try=search#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.

| Field | Type |
| --- | --- |
| `id` | string |
| `version` | string |
| `title` | string |
| `description` | string |
| `authors` | string\[\] |
| `owners` | string\[\] |
| `total_downloads` | integer |
| `verified` | boolean |
| `tags` | string\[\] |
| `project_url` | url |
| `deprecated` | boolean |
| `url` | url |
