List contests
curl --request GET \
--url https://api.identityhub.app/contestsimport requests
url = "https://api.identityhub.app/contests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/contests', 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/contests",
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/contests"
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/contests")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/contests")
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": [
{
"id": "contest_001",
"slug": "hack-a-ton-2025",
"title": "Hack-a-TON 2025",
"shortDescription": "Build the future of TON",
"details": "Full contest details in Markdown...",
"rules": "See contest page",
"prizePool": "$50,000",
"imageUrl": null,
"judgeUserIds": [],
"status": "OPEN",
"directLinkEnabled": false,
"fields": null,
"submissionStart": "2025-01-01T00:00:00.000Z",
"submissionEnd": "2025-02-01T00:00:00.000Z",
"votingStart": "2025-02-01T00:00:00.000Z",
"votingEnd": "2025-02-15T00:00:00.000Z",
"createdById": "admin_001",
"createdAt": "2024-12-01T00:00:00.000Z",
"updatedAt": "2024-12-01T00:00:00.000Z",
"displayStatus": "active"
}
],
"total": 123,
"page": 123,
"pageSize": 123,
"totalPages": 123,
"hasMore": true
}
}Contests
List contests
Returns paginated list of contests. Filterable by display status (active/completed).
GET
/
contests
List contests
curl --request GET \
--url https://api.identityhub.app/contestsimport requests
url = "https://api.identityhub.app/contests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.identityhub.app/contests', 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/contests",
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/contests"
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/contests")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.identityhub.app/contests")
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": [
{
"id": "contest_001",
"slug": "hack-a-ton-2025",
"title": "Hack-a-TON 2025",
"shortDescription": "Build the future of TON",
"details": "Full contest details in Markdown...",
"rules": "See contest page",
"prizePool": "$50,000",
"imageUrl": null,
"judgeUserIds": [],
"status": "OPEN",
"directLinkEnabled": false,
"fields": null,
"submissionStart": "2025-01-01T00:00:00.000Z",
"submissionEnd": "2025-02-01T00:00:00.000Z",
"votingStart": "2025-02-01T00:00:00.000Z",
"votingEnd": "2025-02-15T00:00:00.000Z",
"createdById": "admin_001",
"createdAt": "2024-12-01T00:00:00.000Z",
"updatedAt": "2024-12-01T00:00:00.000Z",
"displayStatus": "active"
}
],
"total": 123,
"page": 123,
"pageSize": 123,
"totalPages": 123,
"hasMore": true
}
}Query Parameters
Page number (1-based)
Required range:
1 <= x <= 9007199254740991Items per page (1-100)
Required range:
1 <= x <= 100Filter: active or completed
Available options:
active, completed