Skip to main content
POST
/
registries
/
public-images
/
search
Search Public Container Images
curl --request POST \
  --url https://api.bunny.net/mc/registries/public-images/search \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "registryId": "<string>",
  "prefix": "<string>",
  "size": 5,
  "page": 50
}
'
import requests

url = "https://api.bunny.net/mc/registries/public-images/search"

payload = {
"registryId": "<string>",
"prefix": "<string>",
"size": 5,
"page": 50
}
headers = {
"AccessKey": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {AccessKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({registryId: '<string>', prefix: '<string>', size: 5, page: 50})
};

fetch('https://api.bunny.net/mc/registries/public-images/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bunny.net/mc/registries/public-images/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'registryId' => '<string>',
'prefix' => '<string>',
'size' => 5,
'page' => 50
]),
CURLOPT_HTTPHEADER => [
"AccessKey: <api-key>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.bunny.net/mc/registries/public-images/search"

payload := strings.NewReader("{\n \"registryId\": \"<string>\",\n \"prefix\": \"<string>\",\n \"size\": 5,\n \"page\": 50\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("AccessKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.bunny.net/mc/registries/public-images/search")
.header("AccessKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"registryId\": \"<string>\",\n \"prefix\": \"<string>\",\n \"size\": 5,\n \"page\": 50\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bunny.net/mc/registries/public-images/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["AccessKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"registryId\": \"<string>\",\n \"prefix\": \"<string>\",\n \"size\": 5,\n \"page\": 50\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "namespace": "<string>"
  }
]
{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}
{
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>"
}
],
"id": "<string>"
}
{
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": [
{
"message": "<string>",
"field": "<string>"
}
],
"id": "<string>"
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Body

registryId
string
required

The registry identifier. Can be "dockerhub", "github", or a private registry ID.

Required string length: 1 - 100
prefix
string
required
Required string length: 1 - 100
size
integer<int32>
Required range: 1 <= x <= 100
Example:

5

page
integer<int32>
Required range: 1 <= x <= 100

Response

Public images were successfully retrieved.

id
string
namespace
string
Last modified on June 26, 2026