---
title: "Docker Hub API: Repository | Perceptlayer"
description: "One Docker Hub repository: description, pulls, stars, categories and dates."
url: https://perceptlayer.com/apis/docker-hub/repository
---

[APIs](https://perceptlayer.com/apis) / [Docker Hub](https://perceptlayer.com/apis/docker-hub) / Repository

# Docker Hub: Repository

One Docker Hub repository: description, pulls, stars, categories and dates.

GET `/v1/docker-hub/repository`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `name` | string | Required | Up to 200 characters Repository, namespace/name (for example bitnami/redis), or a name alone for an official image (nginx). |

## Example request

Docker Hub

GET /v1/docker-hub/repository?name=nginx 

```
{
  "success": true,
  "data": {
    "name": "library/nginx",
    "namespace": "library",
    "description": "Official build of Nginx.",
    "full_description": "# Quick reference\n\n-\t**Maintained by**:  \n\t[the NGINX Docker Maintainers](https://github.com/nginx/docker-nginx)\n\n-\t**Where to get help**:  \n\t[the Docker Community Slack](https://dockr.ly/comm-slack), [Server Fault](https://serverfault.com/…",
    "stars": 21441,
    "pulls": 13664218186,
    "official": true,
    "categories": [
      "Web servers"
    ],
    "last_updated": "2026-11-26T01:52:28.413351Z",
    "created_at": "2014-06-05T19:14:45Z",
    "storage_bytes": 264588199102,
    "url": "https://hub.docker.com/_/nginx"
  },
  "meta": {
    "request_id": "req_619f491ae28240b8857fbbb846160f5f",
    "credits_charged": 1,
    "credits_remaining": 1987
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/docker-hub?try=repository#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 12 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `name` | string |
| `namespace` | string |
| `description` | string |
| `full_description` | string |
| `stars` | integer |
| `pulls` | integer |
| `official` | boolean |
| `categories` | string\[\] |
| `last_updated` | string |
| `created_at` | string |
| `storage_bytes` | integer |
| `url` | url |
