Microsoft NuGet Query API

The Query API from Microsoft NuGet — 1 operation(s) for query.

OpenAPI Specification

microsoft-nuget-query-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: NuGet Server API (V3) Autocomplete Query API
  description: Minimal OpenAPI definition for the NuGet V3 HTTP protocol covering the service index, package content (PackageBaseAddress), package metadata (RegistrationsBaseUrl), search, autocomplete, and package publish.
  version: '3'
  x-generated-from: https://learn.microsoft.com/en-us/nuget/api/overview
  x-generated-by: claude-crawl-2026-05-08
servers:
- url: https://api.nuget.org/v3
  description: nuget.org V3 service host
tags:
- name: Query
paths:
  /query:
    get:
      summary: Search query service
      operationId: searchPackages
      parameters:
      - in: query
        name: q
        schema:
          type: string
      - in: query
        name: skip
        schema:
          type: integer
      - in: query
        name: take
        schema:
          type: integer
      - in: query
        name: prerelease
        schema:
          type: boolean
      - in: query
        name: semVerLevel
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericObject'
      tags:
      - Query
components:
  schemas:
    GenericObject:
      type: object
      additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-NuGet-ApiKey