Skip to content

The NuGet Search Service

GET
/api/v4/groups/{id}/-/packages/nuget/query

This feature was introduced in GitLab 12.8

id
required
One of:
integer

The group ID or full group path.

q
string
nullable

The search term

Example
MyNuGet
skip
integer
0 nullable

The number of results to skip

Example
1
take
integer
default: 20 nullable

The number of results to return

Example
1
prerelease
boolean
default: true nullable

Include prerelease versions

OK

Media type application/json
object
totalHits
integer
data
Array<object>
object
@type
string
id
string
title
string
totalDownloads
integer
verified
boolean
version
string
versions
object
@id
string
version
string
downloads
integer
tags
string
authors
string
description
string
summary
string
projectUrl
string
licenseUrl
string
iconUrl
string
Example
{
"totalHits": 1,
"data": [
{
"@type": "Package",
"id": "MyNuGetPkg",
"title": "MyNuGetPkg",
"totalDownloads": 1,
"version": "1.3.0.17",
"versions": {
"@id": "https://gitlab.example.com/api/v4/projects/1/packages/nuget/metadata/MyNuGetPkg/1.3.0.17.json",
"version": "1.3.0.17",
"downloads": 1
},
"tags": "tag#1 tag#2",
"authors": "Authors",
"description": "Description",
"summary": "Description",
"projectUrl": "http://sandbox.com/project",
"licenseUrl": "http://sandbox.com/license",
"iconUrl": "http://sandbox.com/icon"
}
]
}

Bad Request

Unauthorized

Forbidden

Not Found