初回リクエストを 2分で.
新規アカウント作成から実際の注文送信まで4ステップで完了します。残高が入金された Streamrise アカウントとチャンネル URL をご用意ください。
Streamrise アカウントを作成
stream-rise.com で登録します(登録は無料です)。残高をチャージすると、各注文の料金がその残高から引き落とされます。
API キーをコピー
アカウント→設定→API
キーは 設定 に表示されており、すぐにコピーできます(いつでも再生成可能です)。パスワードと同様に厳重に管理してください。このキーを持つ誰でも残高を使用できてしまいます。
キーを環境変数に設定
export STREAMRISE_KEY=YOUR_API_KEY最初の注文を送信
1回の呼び出しで注文を作成できます。200 レスポンスには注文 ID と初期ステータスが含まれます。
curl "https://stream-rise.com/api/newOrder?key=$STREAMRISE_KEY&service=twitchViewers&channel=yourchannel&amount=100"{
"orderId": 12345,
"order": {
"id": 12345,
"service": "twitchViewers",
"channel": "yourchannel",
"amount": 100,
"status": "active"
}
}"status": "active" が表示されれば稼働中です。すべてのリクエストに キーを付与.
すべてのリクエストに API キーを含める必要があります。key クエリパラメーター、JSON ボディ内の key フィールド、または key Cookie のいずれかで渡してください。キーはアカウントの 設定 → API から確認できます。
# As a query parameter — native /api/* endpoints
GET https://stream-rise.com/api/getOrders?key=YOUR_API_KEY
# In the JSON body — PerfectPanel endpoint
POST https://stream-rise.com/perfectPanel
{ "key": "YOUR_API_KEY", "action": "balance" }キーの指定方法
PerfectPanel は JSON ボディの key を読み取り、ネイティブの /api/* はクエリ文字列から読み取ります。key Cookie も利用できるため、お使いの環境で最も扱いやすい方法を選べます。
キー不要の読み取りエンドポイント
フィールド検証(/api/validateOrderProperty)は公開されているため、アカウントを作成する前でもチャンネル名のチェックが可能です。
キーを入手する
アカウントの 設定 → API を開いてキーをコピーまたは再生成してください。アカウント作成は無料で、注文ごとの料金のみ残高から差し引かれます。
API リファレンス.
PerfectPanel
"action" フィールドで切り替える単一の POST エンドポイントです。PerfectPanel プロトコルに対応する SMM パネル向けソフトウェアにそのまま組み込めます。
アカウントごとの割引適用後の最新単価を含む、全サービスカタログを返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | services | "services" を指定する必要があります。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"services"}'[
{
"service": 1,
"name": "Twitch Viewers",
"type": "Default",
"category": "Twitch",
"rate": 0.9,
"min": 10,
"max": 10000,
"refill": true,
"cancel": false
},
{
"service": 2,
"name": "Twitch Chatbots",
"type": "Custom Comments",
"category": "Twitch",
"rate": 8,
"min": 10,
"max": 1500,
"refill": true,
"cancel": false
}
]現在のアカウント残高と通貨を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | balance | "balance" を指定する必要があります。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"balance"}'{
"balance": 100.84,
"currency": "USD"
}1件の注文の請求額、開始カウント、ステータス、残数量を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | status | "status" を指定する必要があります。 |
order | string | 必須 | — | 単一の注文 ID。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"status","order":12345}'{
"orderid": 12345,
"charge": null,
"start_count": null,
"status": "in_progress",
"remains": 100,
"currency": "USD"
}{
"error": "Incorrect order ID"
}複数の注文のステータスを、注文 ID をキーとしてまとめて返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | status | "status" を指定する必要があります。 |
orders | string | 必須 | — | カンマ区切りの注文 ID。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"status","orders":"12345,12346,99999"}'{
"12345": {
"orderid": 12345,
"charge": null,
"start_count": null,
"status": "completed",
"remains": 100,
"currency": "USD"
},
"12346": {
"orderid": 12346,
"charge": null,
"start_count": null,
"status": "in_progress",
"remains": 50,
"currency": "USD"
},
"99999": {
"error": "Incorrect order ID"
}
}注文を作成します。サービスはサービス一覧にある数値の PerfectPanel ID で指定します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | add | "add" を指定する必要があります。 |
service | integer | 必須 | — | サービス一覧の数値サービス ID。 |
link | string | 必須 | — | 注文対象の完全なチャンネル URL。 |
quantity | integer | 必須 | — | 配信する数量(サービスの最小値〜最大値の範囲内)。 |
interval | string | 任意 | — | 視聴者サービス向け:連続するユニット配信間の遅延(ミリ秒)。サービスの制限範囲内にクランプされます(/api/getParamsLimits を参照)。 |
comments | string | 任意 | — | チャットボットサービス向け:改行区切りのカスタムメッセージ。 |
periodAmount | string | 任意 | — | 期間型サービス向け:注文の稼働時間。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"add","service":1,"link":"https://twitch.tv/username","quantity":100}'const res = await fetch("https://stream-rise.com/perfectPanel", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
key: "YOUR_API_KEY",
action: "add",
service: 1,
link: "https://twitch.tv/username",
quantity: 100
})
});
const data = await res.json();import requests
res = requests.post(
"https://stream-rise.com/perfectPanel",
json={
"key": "YOUR_API_KEY",
"action": "add",
"service": 1,
"link": "https://twitch.tv/username",
"quantity": 100,
},
)
data = res.json(){
"orderId": 23501,
"order": 23501
}{
"error": "noBalance"
}1件以上の注文をキャンセルします。キャンセル機能はリクエストに応じてアカウント単位で有効化され、対応サービスでのみ利用できます。条件を満たさない場合はエラーが返されます。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
action | string | 必須 | cancel | "cancel" を指定する必要があります。 |
orders | string | 必須 | — | カンマ区切りの注文 ID。 |
curl -X POST https://stream-rise.com/perfectPanel -H "Content-Type: application/json" -d '{"key":"YOUR_API_KEY","action":"cancel","orders":"23501,23502"}'[
{
"order": null,
"cancel": {
"error": "Access denied"
}
}
][
{
"order": 23501,
"cancel": {
"error": "Incorrect order ID"
}
}
]サービスカタログ
ネイティブカタログエンドポイントです。PerfectPanel の "services" より高機能で、ファミリー、サービス別フィールド、価格表、各種制限値を取得できます。
サービスファミリー(プラットフォーム)とその表示順を一覧で返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
curl "https://stream-rise.com/api/getFamilyServices?key=YOUR_API_KEY"[
{
"service": "twitch",
"order": 1
},
{
"service": "kick",
"order": 10
},
{
"service": "tiktok",
"order": 20
},
{
"service": "youtube",
"order": 30
}
]ファミリーごとにグループ化された全サービスと、サービス別のフィールドメタデータを返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
curl "https://stream-rise.com/api/getServices?key=YOUR_API_KEY"{
"services": {
"twitch": {
"twitchViewers": {
"service": "twitchViewers",
"serviceFamily": "twitch",
"serviceType": "viewers",
"serviceSubType": "hourly",
"enabled": true,
"availableParamsToSend": [ … ],
"fieldsData": { … }
},
"twitchChatBotsViewers": {
"service": "twitchChatBotsViewers",
"serviceFamily": "twitch",
"serviceType": "viewers",
"serviceSubType": "period",
"enabled": true,
"availableParamsToSend": [ … ],
"fieldsData": { … }
}
},
"kick": { … }
},
"types": {
"channel": "text",
"amount": "integer",
"interval": "integer",
"claimPoints": "boolean"
},
"fieldMeta": { … }
}サービスの価格表(ティアごとの単価)を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
service | string | 任意 | — | 絞り込み:名前にこの文字列を含むサービスのみ。 |
curl "https://stream-rise.com/api/getPrices?key=YOUR_API_KEY&service=twitchViewers"{
"twitchViewers": {
"0": {
"0": 0.0038
}
},
"twitchViewersPeriod": {
"0": {
"0": 0.0048,
"500": 0.0042
},
"1": {
"0": 0.045,
"500": 0.039,
"1000": 0.0355
}
}
}注文作成時に各サービスが受け付けるフィールドの一覧を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
curl "https://stream-rise.com/api/availableToSend?key=YOUR_API_KEY"{
"whiteList": {
"twitchViewers": {
"service": "twitchViewers",
"availableParamsToSend": [
"channel",
"amount",
"interval",
"viewersInList",
"uniqueViewerPercent",
…
]
},
"twitchChatBotsViewers": {
"service": "twitchChatBotsViewers",
"availableParamsToSend": [
"channel",
"amount",
"interval",
"messageInterval",
"textToSend",
…
]
}
},
"types": {
"channel": "text",
"amount": "integer",
"interval": "integer",
"textToSend": "text",
"claimPoints": "boolean"
}
}既存の注文で各サービスが変更を許可しているフィールドの一覧を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
curl "https://stream-rise.com/api/availableToChange?key=YOUR_API_KEY"{
"whiteList": {
"twitchViewers": {
"service": "twitchViewers",
"availableParamsToChange": [
"channel",
"amount",
"interval",
"viewersInList",
…
]
},
"twitchChatBotsViewers": {
"service": "twitchChatBotsViewers",
"availableParamsToChange": [
"channel",
"amount",
"interval",
"messageInterval",
"textToSend",
…
]
}
},
"types": {
"channel": "text",
"amount": "integer",
"interval": "integer",
"textToSend": "text"
}
}既存の注文で各サービスがアップグレードを許可しているフィールドの一覧を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
curl "https://stream-rise.com/api/availableToUpgrade?key=YOUR_API_KEY"{
"whiteList": {
"twitchViewers": {
"service": "twitchViewers",
"availableParamsToUpgrade": []
},
"twitchViewersPeriod": {
"service": "twitchViewersPeriod",
"availableParamsToUpgrade": [
"time",
"raidsAmount",
"init_amount",
"init_viewersInList",
"init_chatBots"
]
}
},
"types": {
"time": "bigint",
"raidsAmount": "integer",
"init_amount": "integer",
"init_viewersInList": "integer",
"init_chatBots": "integer"
}
}サービスの各数値フィールドにおける最小値・最大値の上下限を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
service | string | 任意 | — | 制限値を取得する対象のサービス。 |
curl "https://stream-rise.com/api/getParamsLimits?key=YOUR_API_KEY&service=twitchViewers"{
"amount": {
"min": 0,
"max": 10000
},
"interval": {
"min": 60,
"max": 1547483647
},
"viewersInList": {
"min": 0,
"max": 10000
},
"uniqueViewerPercent": {
"min": 0,
"max": 100
}
}送信前に単一の注文フィールド(例:チャンネル名)を検証します。API キーは不要です。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
service | string | 必須 | — | フィールドが属するサービス。 |
field | string | 必須 | — | フィールド名(例:"channel")。 |
value | string | 必須 | — | 検証する値。 |
curl "https://stream-rise.com/api/validateOrderProperty?service=twitchViewers&field=channel&value=username"{
"online": false,
"viewers": 0,
"broadcaster_language": "en"
}{
"type": "fieldError",
"message": "fieldError",
"details": [
{
"field": "channel",
"message": "error_field_channel",
"type": "wrongChannel"
}
]
}注文
ネイティブ注文管理です。注文の作成、取得、変更、一時停止、削除を行えます。サービスは文字列名(例:twitchViewers)で指定します。
注文を作成し、注文 ID と初期ステータスを返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
service | string | 必須 | — | サービス名(例:twitchViewers)。 |
channel | string | 必須 | — | 対象のチャンネル名または URL。 |
amount | integer | 必須 | — | 配信する数量。 |
period | string | 任意 | — | 期間型サービス向け:期間タイプ。 |
periodAmount | string | 任意 | — | 期間型サービス向け:注文の稼働時間。 |
interval | string | 任意 | — | 視聴者サービス向け:連続するユニット配信間の遅延(ミリ秒)。サービスの制限範囲内にクランプされます(/api/getParamsLimits を参照)。 |
comments | string | 任意 | — | チャットボットサービス向け:改行区切りのメッセージ。 |
curl "https://stream-rise.com/api/newOrder?key=YOUR_API_KEY&service=twitchViewers&channel=username&amount=100"const res = await fetch(
"https://stream-rise.com/api/newOrder?key=YOUR_API_KEY&service=twitchViewers&channel=username&amount=100"
);
const data = await res.json();import requests
res = requests.get(
"https://stream-rise.com/api/newOrder",
params={
"key": "YOUR_API_KEY",
"service": "twitchViewers",
"channel": "username",
"amount": 100,
},
)
data = res.json(){
"orderId": 12345,
"order": 12345
}{
"error": "wrongChannel"
}{
"error": "noBalance"
}ID をキーとして注文を返します。必要に応じて特定の ID で絞り込めます。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
ids | string | 任意 | — | 絞り込み用のカンマ区切り ID。 |
curl "https://stream-rise.com/api/getOrders?key=YOUR_API_KEY"{
"12345": {
"id": 12345,
"service": "twitchViewers",
"channel": "username",
"amount": 100,
"interval": 50,
"pause": false,
"online": true,
"activeThreads": 100,
"completed": false,
"orderTime": 1794022254843,
"endTime": 1794026088675,
…
},
"12346": {
"id": 12346,
"service": "twitchChatBotsViewers",
"channel": "username2",
"amount": 50,
"interval": 500,
"pause": true,
"online": false,
"activeThreads": 0,
"completed": false,
"orderTime": 1794011254843,
"endTime": null,
…
}
}ソート・検索・ページネーション対応の注文一覧ページと、任意で総件数を返します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
start | number | 任意 | — | 先頭行のインデックス(0始まり)。 |
end | number | 任意 | — | 末尾行のインデックス。 |
total | boolean | 任意 | — | 総行数を含めるかどうか。 |
sortKey | string | 任意 | — | ソート対象のカラム(例:orderTime)。 |
sortDirection | string | 任意 | — | "asc" または "desc"。 |
searchValue | string | 任意 | — | フリーテキスト検索フィルター。 |
serviceType | string | 任意 | — | サービスタイプで絞り込み。 |
ids | string | 任意 | — | 絞り込み用のカンマ区切り ID。 |
curl "https://stream-rise.com/api/getOrdersPage?key=YOUR_API_KEY&start=0&end=15&total=true&sortKey=orderTime&sortDirection=desc"{
"history": [
{
"id": 12345,
"service": "twitchViewers",
"channel": "username",
"amount": 100,
"pause": false,
"online": true,
"completed": false,
"orderTime": 1794022254843,
…
}
],
"total": 42
}稼働中の注文の配信を一時停止します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
curl "https://stream-rise.com/api/pauseOrder?key=YOUR_API_KEY&id=12345"OKForbidden一時停止中の注文を再開します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
curl "https://stream-rise.com/api/resumeOrder?key=YOUR_API_KEY&id=12345"OKForbiddenNot Found注文を完全に削除します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
curl "https://stream-rise.com/api/deleteOrder?key=YOUR_API_KEY&id=12345"OKForbiddenNot Found注文アップグレードの価格と割引額を、実際には適用せずに計算します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
order | object | 必須 | — | 見積もりを計算する新しい注文プロパティ。 |
curl -X POST "https://stream-rise.com/api/calculateUpgradePrice?key=YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id":12345,"order":{"amount":200}}'{
"price": 5.5,
"totalDiscount": 0.55,
"fieldCosts": {
"amount": 6.05
}
}Not Found既存の注文にアップグレード(数量の追加など)を適用します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
order | object | 必須 | — | 新しい注文プロパティ。 |
curl -X POST "https://stream-rise.com/api/upgradeOrder?key=YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id":12345,"order":{"amount":200}}'OK{
"type": "not_enough_money",
"action": "notification",
"message": "not_enough_money"
}{
"error": "no changes"
}配信先チャンネルなど、注文の編集可能なプロパティを変更します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | あなたの API キー。 |
id | string | 必須 | — | 注文 ID。 |
order | object | 必須 | — | 変更するプロパティ。 |
curl -X POST "https://stream-rise.com/api/changeOrder?key=YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id":12345,"order":{"channel":"new_channel_name"}}'OK{
"error": {
"channel": "wrongChannel"
}
}{
"error": "orderCompleted"
}リアルタイム
WebSocket 経由でプッシュされる注文ステータスです。Streamrise パネルと同じライブ配信ストリームを使用しています。ポーリングループの代わりにご利用ください(フォールバックとして /api/getOrders も引き続き利用可能です)。従来の HTTP Webhook(指定 URL への POST)は計画中で、まだ提供されていません。
wss://stream-rise.com へ WebSocket 接続を開き、最初のメッセージで API キーを送信したあと、ordersUpdates スレッドを購読します。新しい注文が作成されると即座に完全なスナップショットが届き、その後は変更されたフィールドのみが差分として集約され 250 ms ごとに送信されます。送信されるのは、そのキーに読み取り権限があるフィールドのみです。キーあたりの同時接続数には上限があり、デフォルトでは同時に 25 ソケットまで開けます(パートナー上限はキーごとに設定されます)。開いている Streamrise パネルのタブもそのうちの 1 つとしてカウントされます。ストリームにはすべての注文が含まれるため、特定の注文だけを追跡する場合はクライアント側で id によりフィルタリングしてください。配信を停止するには ordersUpdates の unsubscribe メッセージを送信します。
| フィールド | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
key | string | 必須 | — | 接続直後の 1 通目のメッセージ:"key" に API キーを入れた JSON オブジェクトです。有効なキーの場合は "auth" が返ります。誤ったキーの場合は返信がなく、キー検証中に送信されたメッセージは破棄され、その後のメッセージには "no auth" が返ります。再度 "key" を含むメッセージを送ると検証がやり直されます。 |
event | string | 必須 | — | "auth" 応答の後に送る 2 通目以降のメッセージ:フィードを開始する場合は "subscribe"、停止する場合は "unsubscribe" を指定します。 |
thread | string | 必須 | — | "event" とあわせて送信します。すべての注文のフィードである "ordersUpdates" を指定してください。 |
# wscat (npm i -g wscat). Lines with > are what you send, lines with < are server replies.
wscat -c wss://stream-rise.com
< {"event":"socketClientId","socketClientId":13}
> {"key": "YOUR_API_KEY"}
< {"event":"auth","message":"Authenticated","socketsLeft":24}
> {"event": "subscribe", "thread": "ordersUpdates"}
< {"event":"subscribe","message":"subscribed to ordersUpdates"}
< {"event":"threadMessage","thread":"ordersUpdates","message":{"orders":{"12345":{"activeThreads":87,"online":true}}}}const WebSocket = require('ws');
const ws = new WebSocket('wss://stream-rise.com');
ws.on('open', () => ws.send(JSON.stringify({ key: 'YOUR_API_KEY' })));
ws.on('message', (m) => {
const msg = JSON.parse(m.toString());
if (msg.event === 'auth') {
ws.send(JSON.stringify({ event: 'subscribe', thread: 'ordersUpdates' }));
}
if (msg.event === 'threadMessage' && msg.thread === 'ordersUpdates') {
console.log(msg.message.orders); // { "<orderId>": { ...changed fields } }
}
if (msg.event === 'too many' || msg.event === 'no auth' || msg.event === 'error') {
console.error(msg); // too many sockets / wrong key / rejected command
}
});
ws.on('close', (code) => console.log('closed', code)); // reconnect hereimport asyncio, json, websockets
async def main():
async with websockets.connect("wss://stream-rise.com") as ws:
await ws.send(json.dumps({"key": "YOUR_API_KEY"}))
async for raw in ws:
msg = json.loads(raw)
if msg.get("event") == "auth":
await ws.send(json.dumps({"event": "subscribe", "thread": "ordersUpdates"}))
if msg.get("event") == "threadMessage" and msg.get("thread") == "ordersUpdates":
print(msg["message"]["orders"]) # { "<orderId>": { ...changed fields } }
if msg.get("event") in ("too many", "no auth", "error"):
print("error:", msg) # too many sockets / wrong key / rejected command
asyncio.run(main()){
"event": "socketClientId",
"socketClientId": 13
}{
"event": "auth",
"message": "Authenticated",
"socketsLeft": 24
}{
"event": "subscribe",
"message": "subscribed to ordersUpdates"
}{
"event": "threadMessage",
"thread": "ordersUpdates",
"message": {
"orders": {
"12345": {
"id": 12345,
"channel": "username",
"service": "twitchViewers",
"amount": 100,
"activeThreads": 0,
"online": false,
"pause": false,
"completed": false,
"price": "1.5"
}
}
}
}{
"event": "threadMessage",
"thread": "ordersUpdates",
"message": {
"orders": {
"12345": {
"activeThreads": 87,
"online": true
},
"12346": {
"pause": true
}
}
}
}{
"event": "unsubscribe",
"message": "unsubscribed from ordersUpdates"
}{
"event": "no auth",
"message": "you should authenticate to use socket, send your key in key property"
}{
"event": "too many",
"message": "Too many sockets connected for this client"
}すべてのエラーを 明確に解説.
ネイティブの /api/* 呼び出しでは、失敗時に 2xx 以外のステータスを返します。バリデーションやビジネス上のエラー(例:wrongChannel や noBalance)では JSON の "error" フィールド付きで 400、キーの欠落または無効では 401、注文が不明または他アカウント所有の場合は 403 または 404(/api/changeOrder は不正なキーでも 404 を返します)、キー単位のレート制限を超過した場合は 429(待機して後で再試行してください)、書き込みを確認できなかった場合は 503 outcomeUnknown(再試行前に /api/getOrders で確認してください)が返ります。/api/getOrders は 200 を返し、不明または他アカウントの ID をサイレントに除外するため、結果に含まれない ID は存在しないか権限がありません。PerfectPanel でも同じ 401、429、add のコード(400、503)に加え、予期しないサーバーエラーとして 520 が使われます。"Incorrect order ID" や "Incorrect service ID" のような参照・検証・アクセスエラーのみがボディにエラーを含めて 200 OK で返るため、"error" フィールドとあわせて HTTP ステータスも必ず確認してください。エラーの形式は文字列、またはネイティブ /api/* 由来のフィールド別理由マップの 2 種類のいずれかです。以下のテキストで絞り込めます。
PerfectPanel エラー
{ "error": "Incorrect order ID" }ネイティブフィールドエラー
{ "error": { "channel": "channelEmpty" } }| スコープ | エラーレスポンス | 発生条件 | 対処方法 |
|---|---|---|---|
perfectPanel | { "error": "Incorrect order ID" } | 注文 ID が不明であるか、このキーの管轄外です。 | その ID が現在のアカウントに発行されたものか確認してください。 |
perfectPanel | { "error": "Access denied" } | このキーにはその操作が許可されていません。 | 該当の操作が許可されたキーを使用してください。 |
perfectPanel | { "error": "Service doesn't support cancel" } | このサービスはキャンセルできません。 | まずカタログ上でサービスの cancel を確認してください。 |
/api/* | { "error": { "channel": "channelEmpty" } } | 必須フィールドが空のままです。 | フィールドキーを確認して値を指定してください。 |
/api/* | { "error": { "channel": "Channel not found" } } | チャンネルが存在しないか、到達できません。 | まず /api/validateOrderProperty で検証してください。 |
/api/* | { "error": { "channel": "Invalid channel name" } } | 変更またはアップグレード時にフィールド検証に失敗しました。 | 指定されたフィールドを修正して再送信してください。 |
both | { "error": "..." } | key が指定されていないか、誤っているか、失効しています。 | アカウントの「設定 → API」から有効なキーを送信してください。 |
私たちが 目指す水準. 目標値
これらは運用上の目標値であり、契約上の保証ではありません。ご質問や障害のご報告は /contacts までご連絡ください。
安定稼働と バージョンレス.
Streamrise API は安定しており、バージョン管理を行わない設計です。既存の呼び出しを壊すことなく新しいサービス、フィールド、エンドポイントが追加されるため、バージョン切り替えの追跡や廃止期限への対応は不要です。
PerfectPanel 互換エンドポイントとネイティブの /api/* インターフェースの 2 系統を提供し、どちらも同じ key で認証できます。
既存のリクエストやレスポンス形式を変更せずに、新しいサービスやフィールドが追加されます。
Webhook、リクエストレートティア、および公開変更履歴をロードマップに予定しています。
運用担当チームに 直接相談.
開発者向けサポート、 優先ルーティング.
API に関するお問い合わせは通常のキューをスキップして対応します。注文 ID と実行した正確なリクエストをお送りいただければ、直接トレースして調査します。
Streamrise の API キーはどうすれば取得できますか?
Streamrise アカウントにサインインして 設定 → API を開くとキーが表示され、すぐにコピーできます(いつでも再生成可能です)。残高から支出できるため、パスワードと同様に厳重に取り扱ってください。
Streamrise API のレート制限はありますか?
現在、強制的なリクエストレート制限はありません。一括呼び出し時は節度あるペースでの送信をお願いします。公開ボリュームティアはロードマップで予定しています。
Streamrise に Webhook はありますか?
まだありません。Webhook は計画中です。現在は配信状況の追跡に /api/getOrders または PerfectPanel の status をポーリングしてください。
Streamrise では注文の補充(リフィル)や返金に対応していますか?
現在、専用のリフィルエンドポイントはありません。未配信またはキャンセルされた数量分は残高へ返金されます。
API はバージョン管理されていますか?
いいえ。API は安定したバージョンレス設計であり、既存の呼び出しを壊さずに新しいサービスやフィールドが追加されます。
リトライ時の重複注文を防ぐにはどうすればよいですか?
現在べき等キー(idempotency key)は用意されていないため、すでに処理された可能性のある書き込みを闇雲にリトライせず、まず /api/getOrders で確認してください。