APIs / Docker Hub / Search repositories
Docker Hub: Search repositories
Docker Hub image repositories matching a query, with pulls, stars and whether the image is official.
GET /v1/docker-hub/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 200 characters Words to match in the repository name or description. |
page | integer | Optional | Any Results page, from 1. |
page_size | integer | Optional | Any Results per page, 1 to 100. Default 20. |
Example request
Docker Hub
GET/v1/docker-hub/search?query=nginx&page_size=10
{
"success": true,
"data": {
"total": 297082,
"page": 1,
"has_more": true,
"count": 10,
"items": [
{
"name": "nginx",
"description": "Official build of Nginx.",
"stars": 21438,
"pulls": 13654538231,
"official": true,
"automated": false,
"url": "https://hub.docker.com/_/nginx"
},
{
"name": "nginx/nginx-ingress",
"description": "NGINX and NGINX Plus Ingress Controllers for Kubernetes",
"stars": 124,
"pulls": 1089096520,
"official": false,
"automated": false,
"url": "https://hub.docker.com/r/nginx/nginx-ingress"
},
{
"name": "nginx/nginx-prometheus-exporter",
"description": "NGINX Prometheus Exporter for NGINX and NGINX Plus",
"stars": 53,
"pulls": 93031540,
"official": false,
"automated": false,
"url": "https://hub.docker.com/r/nginx/nginx-prometheus-exporter"
}
]
},
"meta": {
"request_id": "req_02a362a34484491da65821ecbf6e4996",
"credits_charged": 1,
"credits_remaining": 1996
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 7 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 |
description | string |
stars | integer |
pulls | integer |
official | boolean |
automated | boolean |
url | url |