---
title: "GET /v1/projects/{project}/locations/{location}/artifacts/{artifact}:getContents"
method: GET
path: "/v1/projects/{project}/locations/{location}/artifacts/{artifact}:getContents"
tags: ["Registry"]
---

# GET /v1/projects/{project}/locations/{location}/artifacts/{artifact}:getContents

`GET /v1/projects/{project}/locations/{location}/artifacts/{artifact}:getContents`

GetArtifactContents returns the contents of a specified artifact.
 If artifacts are stored with GZip compression, the default behavior
 is to return the artifact uncompressed (the mime_type response field
 indicates the exact format returned).

## Path parameters

- `project` string, required
- `location` string, required
- `artifact` string, required

## Response `200`

OK

## Other responses

- `default` — Default error response

## Changes

- **2022-04-20** `60e792df4088` — 1 breaking, 1 info
  - removed the media type `application/octet-stream` for the response with the status `200`
  - added the media type `*/*` for the response with the status `200`
- **2021-12-22** `ce92b3e601d4` — 1 info
  - api tag `Registry` added
- **2021-09-28** `b921d564d178` — 1 info
  - endpoint added
- **2020-10-24** `9c2571d516e8` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/apigee/apis/registry-api/changes/v1/projects/:project/locations/:location/artifacts/:artifact:getContents/get.md)

---

[API](https://skmtc.dev/apigee/apis/registry-api.md) · [All operations](https://skmtc.dev/apigee/apis/registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apigee/registry-api/revisions/382ff6551970/schema)
