---
title: "Get the content of an image by type java"
method: GET
path: "/images/{imageDigest}/content/java"
tags: ["Images"]
---

# Get the content of an image by type java

`GET /images/{imageDigest}/content/java`

## Path parameters

- `imageDigest` string, required

## Headers

- `x-anchore-account` string

## Response `200`

Content of specified type from the image

- ContentJAVAPackageResponse — Java package content listings from images
  - `imageDigest` string
  - `content_type` string
  - `content` object[]
    - `package` string
    - `implementation-version` string
    - `specification-version` string
    - `maven-version` string
    - `location` string
    - `type` string
    - `origin` string
    - `cpes` string[] — A list of Common Platform Enumerations that may uniquely identify the package

## Other responses

- `500` — Internal error

## Changes

- **2020-11-04** `ce07c565cfc8` — 2 info
  - api tag `Image Content` removed
  - api tag `Queries` removed
- **2020-03-17** `001d1fd95836` — 2 info
  - api tag `Image Content` added
  - api tag `Queries` added

[Change history](https://skmtc.dev/anchore/apis/anchore-engine-api-server/changes/images/:imageDigest/content/java/get.md)

---

[API](https://skmtc.dev/anchore/apis/anchore-engine-api-server.md) · [All operations](https://skmtc.dev/anchore/apis/anchore-engine-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anchore/anchore-engine-api-server/revisions/afb4f60ab44a/schema)
