List collections
curl --request GET \
--url https://api.identityhub.app/collectionsimport requests
url = "https://api.identityhub.app/collections"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/collections', 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.identityhub.app/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.identityhub.app/collections"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.identityhub.app/collections")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"address": "EQBx...abc",
"name": "TON Footstep SBT",
"description": "Awarded for completing a TON Footstep task",
"image": "https://cache.tonapi.io/imgproxy/footstep.webp",
"type": "SBT",
"importance": "HIGH",
"isSbt": true,
"category": "achievement",
"isWinner": false,
"source": "internal",
"creatorAddress": "EQCx...def",
"nextItemIndex": 150,
"externalLink": null,
"socialLinks": [],
"holdersCount": 142,
"createdAt": "2025-06-15T12:00:00.000Z",
"onChainCreatedAt": "2025-06-15T12:00:00.000Z"
}
],
"total": 123,
"page": 123,
"pageSize": 123,
"totalPages": 123,
"hasMore": true
}
}Collections
List collections
Returns paginated list of badge collections with optional filters. Internal collections in DRAFT status are excluded.
GET
/
collections
List collections
curl --request GET \
--url https://api.identityhub.app/collectionsimport requests
url = "https://api.identityhub.app/collections"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/collections', 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.identityhub.app/collections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.identityhub.app/collections"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.identityhub.app/collections")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/collections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"items": [
{
"address": "EQBx...abc",
"name": "TON Footstep SBT",
"description": "Awarded for completing a TON Footstep task",
"image": "https://cache.tonapi.io/imgproxy/footstep.webp",
"type": "SBT",
"importance": "HIGH",
"isSbt": true,
"category": "achievement",
"isWinner": false,
"source": "internal",
"creatorAddress": "EQCx...def",
"nextItemIndex": 150,
"externalLink": null,
"socialLinks": [],
"holdersCount": 142,
"createdAt": "2025-06-15T12:00:00.000Z",
"onChainCreatedAt": "2025-06-15T12:00:00.000Z"
}
],
"total": 123,
"page": 123,
"pageSize": 123,
"totalPages": 123,
"hasMore": true
}
}Query Parameters
Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 100Search by collection name
Filter by collection type
Filter by importance
Filter SBT-only collections
Filter by category
Filter by source: internal or external
Available options:
internal, external Sort field
Available options:
name, holdersCount, createdAt, onChainCreatedAt Sort direction: asc or desc
Available options:
asc, desc