管理
プロジェクト使用量の取得
プロジェクトの現在のクレジットサイクル内のクレジット使用量、サブスクリプションの詳細、およびサービスごとのリクエスト数を取得します。
GET
/
v0
/
admin
/
projects
/
{id}
/
usage
プロジェクト使用状況の取得
curl --request GET \
--url 'https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key='import requests
url = "https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=', 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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=",
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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key="
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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=")
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{
"creditsRemaining": 486100,
"creditsUsed": 13900,
"prepaidCreditsRemaining": 50000,
"prepaidCreditsUsed": 0,
"creditCycle": {
"start": "2026-04-01",
"end": "2026-05-01"
},
"subscriptionDetails": {
"billingCycle": {
"start": "2026-04-01",
"end": "2026-05-01"
},
"creditsLimit": 500000,
"plan": "business"
},
"credits": {
"rpc": 4500,
"enhancedApi": 1200,
"walletApi": 0,
"das": 5000,
"webhooks": 800,
"laserstreamGrpc": 1500,
"laserstreamWebsocket": 800,
"preConfirmations": 100,
"archival": 0,
"photon": 0,
"other": 0
},
"requests": {
"rpc": 4500,
"enhancedApi": 1200,
"walletApi": 0,
"das": 5000,
"webhooks": 800,
"preConfirmations": 50,
"archival": 0,
"photon": 0,
"other": 0
},
"dataTransfer": {
"laserstreamGrpc": 15000000,
"laserstreamWebsocket": 8000000
}
}{
"statusCode": 400,
"message": "無効なプロジェクトID",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "欠落または無効なAPIキー",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "このプロジェクトに対してAdmin APIが有効になっていません",
"error": "Forbidden"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests",
"error": "Too Many Requests"
}{
"statusCode": 500,
"message": "内部サーバーエラー",
"error": "Internal Server Error"
}概要
現在のクレジットサイクルにおけるプロジェクトのクレジット消費の全体像を返し、残りのクレジット、サブスクリプションプランの詳細、およびサービスタイプ(RPC、DAS、gRPC、WebSocketなど)別のリクエストの内訳を含みます。 すべてのクレジット数値は、サブスクリプションの請求の基準点から導き出されたcreditCycleに関連付けられています。これは、クレジットが蓄積およびリセットされる期間です。すべてのプロジェクトに含まれており、無料プランも含まれます。subscriptionDetails.billingCycleは請求ウィンドウであり、情報の提供を目的としており、無料プランには適用されません(無料プランは請求されません)。
リクエストパラメータ
レスポンスフィールド
現在のクレジットサイクルにおける各製品のクレジット消費量(全体のクレジット)。すべての製品をカバーします。値は一度集計され、請求に合うように最後に丸められるため、製品ごとのクレジットは丸められた後に
creditsUsedと正確には一致しない場合があります。リクエスト数の計数は、リクエスト計測された製品のみに適用され、現在のクレジットサイクルのものです。LaserStream製品(
laserstreamGrpc、laserstreamWebsocket)はここには表示されず、dataTransferを参照してください。フィールド: rpc、enhancedApi、walletApi、das、webhooks、preConfirmations、archival、photon、other。現在のクレジットサイクル内でのバンド幅計測されたLaserStream製品のみの転送バイト数。これらの製品は転送されたデータによって課金され、リクエスト数ではありません。そのためここに表示され、
creditsでも表示され、requestsには表示されません。フィールド: laserstreamGrpc、laserstreamWebsocket。リクエストパラメータ
パスパラメータ
レスポンス
プロジェクトの使用状況が正常に取得されました。
このページは役に立ちましたか?
⌘I
プロジェクト使用状況の取得
curl --request GET \
--url 'https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key='import requests
url = "https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=', 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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=",
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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key="
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://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.helius.xyz/v0/admin/projects/{id}/usage?api-key=")
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{
"creditsRemaining": 486100,
"creditsUsed": 13900,
"prepaidCreditsRemaining": 50000,
"prepaidCreditsUsed": 0,
"creditCycle": {
"start": "2026-04-01",
"end": "2026-05-01"
},
"subscriptionDetails": {
"billingCycle": {
"start": "2026-04-01",
"end": "2026-05-01"
},
"creditsLimit": 500000,
"plan": "business"
},
"credits": {
"rpc": 4500,
"enhancedApi": 1200,
"walletApi": 0,
"das": 5000,
"webhooks": 800,
"laserstreamGrpc": 1500,
"laserstreamWebsocket": 800,
"preConfirmations": 100,
"archival": 0,
"photon": 0,
"other": 0
},
"requests": {
"rpc": 4500,
"enhancedApi": 1200,
"walletApi": 0,
"das": 5000,
"webhooks": 800,
"preConfirmations": 50,
"archival": 0,
"photon": 0,
"other": 0
},
"dataTransfer": {
"laserstreamGrpc": 15000000,
"laserstreamWebsocket": 8000000
}
}{
"statusCode": 400,
"message": "無効なプロジェクトID",
"error": "Bad Request"
}{
"statusCode": 401,
"message": "欠落または無効なAPIキー",
"error": "Unauthorized"
}{
"statusCode": 403,
"message": "このプロジェクトに対してAdmin APIが有効になっていません",
"error": "Forbidden"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests",
"error": "Too Many Requests"
}{
"statusCode": 500,
"message": "内部サーバーエラー",
"error": "Internal Server Error"
}