# Get image information from the registry


[API catalog](/reference/api/) · [Docker Engine overview](/reference/api/engine/version/v1.57/) · [Product manual](https://docs.docker.com/engine/) · [OpenAPI specification](/reference/api/engine/version/v1.57.yaml)

API version: 1.57





`GET /distribution/{name}/json`

Return image digest and platform information by contacting the registry.


## Connection and access

[API connection and authentication guidance](/reference/api/engine/version/v1.57/#connection)


Server: `/v1.57`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
null
```

## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --unix-socket "${DOCKER_SOCKET:-/var/run/docker.sock}" \
  --header 'Accept: application/json' \
  'http://localhost/v1.57/distribution/<NAME>/json'
```



## Parameters

### name

Location: path. Required: yes.

Image name or id

```json
{
  "description": "Image name or id",
  "in": "path",
  "name": "name",
  "pointer": "/paths/~1distribution~1{name}~1json/get/parameters/0",
  "required": true,
  "schema": {
    "type": "string"
  }
}
```

## Request and responses

### Response 200 application/json

descriptor and platform information


Schema:

```json
{
  "$ref": "#/components/schemas/DistributionInspect"
}
```










### Response 401 application/json

Failed authentication or no image found


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Example:
```json
{
  "message": "No such image: someimage (tag: latest)"
}
```


### Response 500 application/json

Server error


Schema:

```json
{
  "$ref": "#/components/schemas/ErrorResponse"
}
```









Schema example:
```json
{
  "message": "Something went wrong."
}
```


## Complete operation contract

```json
{
  "description": "Return image digest and platform information by contacting the registry.\n",
  "operationId": "DistributionInspect",
  "parameters": [
    {
      "description": "Image name or id",
      "in": "path",
      "name": "name",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/DistributionInspect"
          }
        }
      },
      "description": "descriptor and platform information"
    },
    "401": {
      "content": {
        "application/json": {
          "example": {
            "message": "No such image: someimage (tag: latest)"
          },
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "Failed authentication or no image found"
    },
    "500": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ErrorResponse"
          }
        }
      },
      "description": "Server error"
    }
  },
  "summary": "Get image information from the registry",
  "tags": [
    "Distribution"
  ]
}
```

## Referenced schemas

- [#/components/schemas/DistributionInspect](/reference/api/engine/version/v1.57/schemas/DistributionInspect/)

- [#/components/schemas/ErrorResponse](/reference/api/engine/version/v1.57/schemas/ErrorResponse/)




