Packages
Overview
Routes prefixed with /package relate to fetching package data. Packages are cut-down versions of manifests with extra data used by winget.run. This section of the docs will discuss basic package routes with the 'advanced' ones being covered under 'search'.
Schema
Below is the package schema in Typescript format:
Package;
Non-manifest fields
Multiple non-manifest fields exist on the package model. These mainly determine if and how a package is displayed on the homepage of winget.run;
- Featured
- IconUrl (image url)
- Banner (image url)
- Logo (image url)
Routes
Package related routes are outlined below:
Publisher packages
This route can be used to view all packages created by a single publisher.
This route returns paginated results.
Allowed sort fields: Latest.Name, Latest.Publisher, UpdatedAt.
Url
/v2/packages/:publisher
Successful response
No data response
Single package
This route can be used to fetch info for a single package.
Url
/v2/packages/:publisher/:packageName
Successful response
No data response
Featured packages
This route returns a non-paginated list of all packages marked as 'featured'. This list should not exceed a few packages.
Url
/v2/featured