Artifact Details - Get Package Versions

Get a list of package versions, optionally filtering by state.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

GET https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/Feeds/{feedId}/Packages/{packageId}/versions?api-version=5.1-preview.1
GET https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/Feeds/{feedId}/Packages/{packageId}/versions?includeUrls={includeUrls}&isListed={isListed}&isDeleted={isDeleted}&api-version=5.1-preview.1

URI Parameters

Name In Required Type Description
feedId
path True

string

Name or Id of the feed.

organization
path True

string

The name of the Azure DevOps organization.

packageId
path True

string

Id of the package (GUID Id, not name).

project
path

string

Project ID or project name

api-version
query True

string

Version of the API to use. This should be set to '5.1-preview.1' to use this version of the api.

includeUrls
query

boolean

True to include urls for each version. Default is true.

isDeleted
query

boolean

If set specifies whether to return only deleted or non-deleted versions of packages in the response. Default is unset (return all versions).

isListed
query

boolean

Only applicable for NuGet packages. If false, delisted package versions will be returned.

Responses

Name Type Description
200 OK

PackageVersion[]

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.packaging Grants the ability to read feeds and packages. Also grants the ability to search packages.

Definitions

Name Description
FeedView

A view on top of a feed.

FeedViewType

Type of view.

FeedVisibility

Visibility status of the view.

MinimalPackageVersion

Core data about any package, including its id and version information and basic state.

PackageDependency

A dependency on another package version.

PackageFile

A package file for a specific package version, only relevant to package types that contain multiple files per version.

PackageVersion

A specific version of a package.

ProtocolMetadata

Extended metadata for a specific package type.

ReferenceLinks

The class to represent a collection of REST reference links.

UpstreamSource

Upstream source definition, including its Identity, package type, and other associated information.

UpstreamSourceType

Source type, such as Public or Internal.

FeedView

A view on top of a feed.

Name Type Description
_links

ReferenceLinks

Related REST links.

id

string

Id of the view.

name

string

Name of the view.

type

FeedViewType

Type of view.

url

string

Url of the view.

visibility

FeedVisibility

Visibility status of the view.

FeedViewType

Type of view.

Name Type Description
implicit

string

Internal view type that is automatically created and managed by the system.

none

string

Default, unspecified view type.

release

string

View used as a promotion destination to classify released artifacts.

FeedVisibility

Visibility status of the view.

Name Type Description
collection

string

Feed is accessible by all the valid users present in the organization where the feed resides (for example across organization 'myorg' at 'dev.azure.com/myorg')

organization

string

Feed is accessible by all the valid users present in the enterprise where the feed resides. Note that legacy naming and back compat leaves the name of this value out of sync with its new meaning.

private

string

Only accessible by the permissions explicitly set by the feed administrator.

MinimalPackageVersion

Core data about any package, including its id and version information and basic state.

Name Type Description
directUpstreamSourceId

string

Upstream source this package was ingested from.

id

string

Id for the package.

isCachedVersion

boolean

[Obsolete] Used for legacy scenarios and may be removed in future versions.

isDeleted

boolean

True if this package has been deleted.

isLatest

boolean

True if this is the latest version of the package by package type sort order.

isListed

boolean

(NuGet Only) True if this package is listed.

normalizedVersion

string

Normalized version using normalization rules specific to a package type.

packageDescription

string

Package description.

publishDate

string

UTC Date the package was published to the service.

storageId

string

Internal storage id.

version

string

Display version.

views

FeedView[]

List of views containing this package version.

PackageDependency

A dependency on another package version.

Name Type Description
group

string

Dependency package group (an optional classification within some package types).

packageName

string

Dependency package name.

versionRange

string

Dependency package version range.

PackageFile

A package file for a specific package version, only relevant to package types that contain multiple files per version.

Name Type Description
children

PackageFile[]

Hierarchical representation of files.

name

string

File name.

protocolMetadata

ProtocolMetadata

Extended data unique to a specific package type.

PackageVersion

A specific version of a package.

Name Type Description
_links

ReferenceLinks

Related links

author

string

Package version author.

deletedDate

string

UTC date that this package version was deleted.

dependencies

PackageDependency[]

List of dependencies for this package version.

description

string

Package version description.

directUpstreamSourceId

string

Upstream source this package was ingested from.

files

PackageFile[]

Files associated with this package version, only relevant for multi-file package types.

id

string

Id for the package.

isCachedVersion

boolean

[Obsolete] Used for legacy scenarios and may be removed in future versions.

isDeleted

boolean

True if this package has been deleted.

isLatest

boolean

True if this is the latest version of the package by package type sort order.

isListed

boolean

(NuGet Only) True if this package is listed.

normalizedVersion

string

Normalized version using normalization rules specific to a package type.

otherVersions

MinimalPackageVersion[]

Other versions of this package.

packageDescription

string

Package description.

protocolMetadata

ProtocolMetadata

Extended data specific to a package type.

publishDate

string

UTC Date the package was published to the service.

sourceChain

UpstreamSource[]

List of upstream sources through which a package version moved to land in this feed.

storageId

string

Internal storage id.

summary

string

Package version summary.

tags

string[]

Package version tags.

url

string

Package version url.

version

string

Display version.

views

FeedView[]

List of views containing this package version.

ProtocolMetadata

Extended metadata for a specific package type.

Name Type Description
data

object

Extended metadata for a specific package type, formatted to the associated schema version definition.

schemaVersion

integer

Schema version.

The class to represent a collection of REST reference links.

Name Type Description
links

object

The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.

UpstreamSource

Upstream source definition, including its Identity, package type, and other associated information.

Name Type Description
deletedDate

string

UTC date that this upstream was deleted.

displayLocation

string

Locator for connecting to the upstream source in a user friendly format, that may potentially change over time

id

string

Identity of the upstream source.

internalUpstreamCollectionId

string

For an internal upstream type, track the Azure DevOps organization that contains it.

internalUpstreamFeedId

string

For an internal upstream type, track the feed id being referenced.

internalUpstreamViewId

string

For an internal upstream type, track the view of the feed being referenced.

location

string

Consistent locator for connecting to the upstream source.

name

string

Display name.

protocol

string

Package type associated with the upstream source.

upstreamSourceType

UpstreamSourceType

Source type, such as Public or Internal.

UpstreamSourceType

Source type, such as Public or Internal.

Name Type Description
internal

string

Azure DevOps upstream source.

public

string

Publicly available source.