開発者向け

API・連携ドキュメント

SocksNode を連携する方法は2つあります。HTTP(S) または SOCKS5 でプロキシゲートウェイに直接接続する方法と、REST API を通じて帯域幅・使用状況・プロキシをプログラムで管理する方法です。

このページの内容

静的 IP と IP Vault

概要

静的データセンター IP と住宅 ISP IP の購入・一覧・更新、IP Vault のアドレスと帯域の購入・管理を、ダッシュボードと同じ操作でコードから行えます。

お金を使う呼び出し(購入と更新)には purchase 権限付きの API キーが必要で、ウォレット残高のみで支払われます。先にチャージしてください。残高不足は 402 を返し、注文は作成されません。静的 IP の注文はバックグラウンドで納品されるため、完了まで注文をポーリングしてください。

https://socksnode.com/api/v1

認証

ベース URL https://socksnode.com/api/v1。Dashboard → API accessでキーを作成し、Bearer トークンとして送信してください。キーはスコープ付きです — 必要なものだけをリクエストしてください。

スコープ付与される権限
read:usage残高と使用状況分析
read:proxies保存済みプロキシ認証情報の一覧表示
write:proxies新しいプロキシ認証情報の生成
purchaseローテーションの住宅・データセンター・モバイルプロキシ用のGB購入、静的IPとISP IPの購入・更新、4G/5Gポートのレンタル・更新、自動更新の設定、24時間IPとIP Vaultのアドレス・帯域の購入 — 残高から支払われます。

レート制限: キーごとに毎分120リクエスト(プロキシ生成はさらに制限されます)。キーは秘密に保ち、サーバーサイドで管理してください。

GET /api/v1/account HTTP/1.1
Host: socksnode.com
Authorization: Bearer sk_YOUR_API_KEY

エラー

エラーは、対応する HTTP ステータスとともに JSON ボディ { "error": { "code", "message" } } を返します:

ステータス意味
400リクエストボディまたはパラメータが無効です
401API キーがない、無効、または失効しています
402プロキシを生成するための帯域幅残高が不足しています
403API キーに必要なスコープがありません
404見つからないか、あなたのものではありません。
409ポートの状態により現在は実行できません(例: 期限切れ)。
429レート制限を超過しました — Retry-After ヘッダーを参照してください
503製品はメンテナンス中です。少し後に再試行してください。
HTTP/1.1 402 Payment Required
Content-Type: application/json

{
  "error": {
    "code": "no_bandwidth",
    "message": "…"
  }
}

静的データセンターIP・ISP IP

静的 IP カタログ

GET/static/catalog

スコープ: read:proxies

クエリパラメータ

  • typestring必須

    dedicated_ipv4・shared_ipv4・ipv6 はデータセンター IP、isp は住宅 ISP IP です。

    dedicated_ipv4shared_ipv4ipv6isp

curl "https://socksnode.com/api/v1/static/catalog?type=dedicated_ipv4" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "type": "dedicated_ipv4",
  "periodsDays": [5, 10, 20, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360],
  "maxQuantity": 100,
  "countries": [
    { "code": "us", "name": "United States", "available": 1000, "cities": [{ "id": 3, "name": "New York", "available": 120 }] }
  ]
}

静的注文の見積もり

GET/static/quote

スコープ: read:proxies

クエリパラメータ

  • typestring必須

    dedicated_ipv4・shared_ipv4・ipv6 はデータセンター IP、isp は住宅 ISP IP です。

    dedicated_ipv4shared_ipv4ipv6isp

  • countrystring必須

    カタログの 2 文字の国コード。

  • quantityinteger必須

    IP の数(1–100)。

  • periodDaysinteger必須

    レンタル日数(このタイプでカタログに載っている期間のいずれか)。

curl "https://socksnode.com/api/v1/static/quote?type=isp&country=us&quantity=5&periodDays=30" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "type": "isp",
  "country": "us",
  "quantity": 5,
  "periodDays": 30,
  "unitPriceUsd": 3.4,
  "totalUsd": 17
}

静的 IP を購入

POST/static/orders

スコープ: purchase

ボディパラメータ

  • typestring必須

    dedicated_ipv4・shared_ipv4・ipv6 はデータセンター IP、isp は住宅 ISP IP です。

    dedicated_ipv4shared_ipv4ipv6isp

  • countrystring必須

    カタログの 2 文字の国コード。

  • cityIdinteger任意

    カタログの都市 id(データセンターのみ)。省略で任意の都市。

  • quantityinteger必須

    IP の数(1–100)。

  • periodDaysinteger必須

    レンタル日数(このタイプでカタログに載っている期間のいずれか)。

  • couponCodestring任意

    割引コード(あれば)。

curl -X POST "https://socksnode.com/api/v1/static/orders" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "dedicated_ipv4",
    "country": "us",
    "quantity": 2,
    "periodDays": 30
  }'
レスポンス201
{
  "id": "clx…",
  "orderNumber": "SN-…",
  "status": "paid",
  "type": "dedicated_ipv4",
  "country": "us",
  "quantity": 2,
  "periodDays": 30,
  "amountUsd": 4.6,
  "delivery": "pending"
}

静的注文のステータス

GET/static/orders/{id}

スコープ: read:proxies

パスパラメータ

  • idstring必須

    注文時に返された id。

curl "https://socksnode.com/api/v1/static/orders/ORDER_ID" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "id": "clx…",
  "status": "paid",
  "delivery": "done",
  "delivered": 2,
  "quantity": 2,
  "refundedUsd": 0,
  "ips": [ … ]
}

静的 IP 一覧

GET/static

スコープ: read:proxies

クエリパラメータ

  • typestring任意

    一覧にする静的 IP の種類。

    alldatacenterispデフォルト: all

curl "https://socksnode.com/api/v1/static" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "data": [
    {
      "id": "clx…",
      "ip": "203.0.113.25",
      "host": "203.0.113.25",
      "portHttp": 50100,
      "portSocks5": 50101,
      "username": "u3k2…",
      "password": "…",
      "type": "dedicated_ipv4",
      "countryCode": "us",
      "status": "active",
      "expiresAt": "2026-11-03T10:00:00.000Z",
      "daysLeft": 30,
      "autoRenew": false
    }
  ]
}

静的 IP を更新

POST/static/renew

スコープ: purchase

ボディパラメータ

  • idsstring[]必須

    更新する静的 IP の id(データセンターと ISP は別々に呼び出し)。

  • periodDaysinteger必須

    レンタル日数(このタイプでカタログに載っている期間のいずれか)。

curl -X POST "https://socksnode.com/api/v1/static/renew" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "STATIC_ID"
    ],
    "periodDays": 30
  }'
レスポンス201
{
  "jobId": "clx…",
  "renewed": 1,
  "chargedUsd": 2.3,
  "delivery": "pending"
}

静的 IP を変更

PATCH/static/{id}

スコープ: write:proxies

パスパラメータ

  • idstring必須

    静的 IP の id。

ボディパラメータ

  • autoRenewboolean任意

    期限前にウォレット残高で自動更新します。

  • namestring任意

    IP のラベル。

  • notestring任意

    非公開メモ。

curl -X PATCH "https://socksnode.com/api/v1/static/STATIC_ID" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "autoRenew": true
  }'
レスポンス200
{
  "id": "clx…",
  "autoRenew": true,
  …
}

24時間専用住宅IP

24時間住宅IP(/day-ip):国・州・都市・ISPごとに販売中のアドレスを一覧し、ref で特定のアドレスを、または件数で条件に合うアドレスを購入できます。保有アドレスの一覧、メモ、お気に入り、不正チェック、速度測定も可能です。各アドレスは最大24時間、GB無制限で使えます。購入後10分以内に使えないアドレスは返金できます。

24時間IP:国と価格

GET/day-ip/countries

スコープ: read:proxies

クエリパラメータ

  • poolstring任意

    どのネットワークのカタログか:a(既定)または b。対応国が異なるため、それぞれ別の一覧を返します。

    abデフォルト: a

curl "https://socksnode.com/api/v1/day-ip/countries" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "priceUsd": 0.09,
  "count": 219,
  "data": [{ "code": "US", "name": "United States" }]
}

24時間IP:州・都市・ISP

GET/day-ip/places

スコープ: read:proxies

クエリパラメータ

  • levelstring必須

    一覧にするもの:state(州)、city(都市)、asn(ISPネットワーク)。ネットワーク b では asn の代わりに isp。

    statecityasnisp

  • countrystring必須

    2文字の国コード(例:US)。

  • statestring任意

    /day-ip/places が返す州または地域。

  • poolstring任意

    どのネットワークのカタログか:a(既定)または b。対応国が異なるため、それぞれ別の一覧を返します。

    abデフォルト: a

curl "https://socksnode.com/api/v1/day-ip/places?level=city&country=US&state=Texas" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "level": "city",
  "country": "US",
  "data": [{ "value": "Dallas", "label": "Dallas" }]
}

24時間IP:販売中のアドレス

GET/day-ip/shop

スコープ: read:proxies

クエリパラメータ

  • countrystring必須

    2文字の国コード(例:US)。

  • statestring任意

    /day-ip/places が返す州または地域。

  • citystring任意

    /day-ip/places が返す都市。州の指定は不要です。

  • asninteger任意

    ISPのネットワーク番号(例:7922)。

  • freshboolean任意

    true で直近90秒のコピーではなく一覧を取り直します。

  • moreboolean任意

    true で新しい分を一覧に追加します(最大500)。1回の一覧は最大100件で、IP範囲での検索はできないため、一覧を増やして探してください。

  • ispstring任意

    ネットワーク名。/day-ip/places が返す文字列と完全に一致(ネットワーク b)。

  • zipstring任意

    郵便番号。完全一致(ネットワーク b)。

  • poolstring任意

    どのネットワークか:a(既定)または b。b は country が必須で、asn の代わりに isp と zip で絞り込み、各アドレスに ping が付きます。fresh と more は適用されません。

    abデフォルト: a

curl "https://socksnode.com/api/v1/day-ip/shop?country=US&state=Texas" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "priceUsd": 0.09,
  "walletUsd": 12.4,
  "count": 98,
  "data": [
    { "ref": "DO7fs76WkECuwM", "ip": "73.12.148.*", "cc": "US", "state": "Texas", "city": "Dallas", "isp": "Comcast Cable Communications, LLC", "asn": 7922 }
  ]
}

24時間IP:購入

POST/day-ip/ips

スコープ: purchase

ボディパラメータ

  • refsstring[]任意

    購入するアドレス:/day-ip/shop の各 ref。ref は約5分間購入できます。最大50。

  • countrystring任意

    refs の代わりに:この国で条件に合うアドレスを購入(state、city、asn で絞り込み)。

  • statestring任意

    /day-ip/places が返す州または地域。

  • citystring任意

    /day-ip/places が返す都市。州の指定は不要です。

  • asninteger任意

    ISPのネットワーク番号(例:7922)。

  • countinteger任意

    country と併用:購入数(1〜50)。

  • ispstring任意

    ネットワーク名。/day-ip/places が返す文字列と完全に一致(ネットワーク b)。

  • poolstring任意

    どのネットワークか:a(既定)または b。b は指定したアドレスのみを販売します。count でなく refs と country を送ってください。

    abデフォルト: a

curl -X POST "https://socksnode.com/api/v1/day-ip/ips" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "refs": [
      "SHOP_REF_1",
      "SHOP_REF_2"
    ]
  }'
レスポンス201
{
  "bought": [
    { "id": "cmv…", "proxy": "vault.socksnode.com:27311:user-ip:pass", "ip": "73.12.148.20", "country": "US", "city": "Dallas", "isp": "Comcast Cable Communications, LLC", "asn": 7922, "expiresAt": "2026-10-12T15:36:40Z" }
  ],
  "chargedUsd": 0.18,
  "refundedUsd": 0
}

24時間IP:保有IPの一覧

GET/day-ip/ips

スコープ: read:proxies

クエリパラメータ

  • viewstring任意

    active:24時間以内のアドレス/all:直近7日間のものも含む。

    activeallデフォルト: active

curl "https://socksnode.com/api/v1/day-ip/ips" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "view": "active",
  "count": 1,
  "data": [
    { "id": "cmv…", "proxy": "vault.socksnode.com:27311:user-ip:pass", "ip": "73.12.148.20", "country": "US", "status": "active", "expiresAt": "2026-10-12T15:36:40Z", "fraud": { "score": 12, "risk": "low", "listed": false }, "speedMs": 1840, "note": "shop #3", "favorite": true }
  ]
}

24時間IP:メモとお気に入り

PATCH/day-ip/ips/{id}

スコープ: write:proxies

パスパラメータ

  • idstring必須

    保有している24時間IPの id。

ボディパラメータ

  • notestring任意

    アドレスへのメモ(200文字まで)。

  • favoriteboolean任意

    お気に入りに追加・解除。

curl -X PATCH "https://socksnode.com/api/v1/day-ip/ips/DAY_IP_ID" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "note": "shop #3",
    "favorite": true
  }'
レスポンス200
{
  "id": "cmv…",
  "ok": true
}

24時間IP:使えないIPの返金

POST/day-ip/ips/{id}/refund

スコープ: write:proxies

パスパラメータ

  • idstring必須

    保有している24時間IPの id。

curl -X POST "https://socksnode.com/api/v1/day-ip/ips/DAY_IP_ID/refund" \
  -H "Authorization: Bearer sk_YOUR_API_KEY"
レスポンス200
{
  "id": "cmv…",
  "result": "refunded",
  "windowMinutes": 10
}

24時間IP:使えないIPをまとめて返金

POST/day-ip/ips/refund

スコープ: write:proxies

ボディパラメータ

  • idsstring[]必須

    返金する24時間IPの id(最大1ー50)。まず各IPをもう一度接続して確かめ、各 id がどうなったか(refunded / still_online / expired)を返します。

curl -X POST "https://socksnode.com/api/v1/day-ip/ips/refund" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "DAY_IP_ID_1",
      "DAY_IP_ID_2"
    ]
  }'
レスポンス200
{
  "refunded": 1,
  "stillOnline": 1,
  "expired": 0,
  "windowMinutes": 10,
  "data": [
    { "id": "cmv…", "result": "refunded", "why": "dead", "usd": 0.09 },
    { "id": "cmw…", "result": "still_online", "usd": 0 }
  ]
}

24時間IP:不正チェック

POST/day-ip/ips/fraud

スコープ: purchase

ボディパラメータ

  • idsstring[]必須

    保有する24時間IPの id(最大50)。1件 $0.003 を残高から。

curl -X POST "https://socksnode.com/api/v1/day-ip/ips/fraud" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "DAY_IP_ID"
    ]
  }'
レスポンス200
{
  "checked": 1,
  "failed": 0,
  "chargedUsd": 0.003,
  "data": [{ "id": "cmv…", "ip": "73.12.148.20", "fraud": { "score": 12, "risk": "low", "listed": false } }]
}

24時間IP:稼働確認(オンライン/オフライン)

POST/day-ip/ips/speed

スコープ: read:proxies

ボディパラメータ

  • idsstring[]必須

    保有する24時間IPの id(最大20)。

curl -X POST "https://socksnode.com/api/v1/day-ip/ips/speed" \
  -H "Authorization: Bearer sk_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "DAY_IP_ID"
    ]
  }'
レスポンス200
{
  "data": [{ "id": "cmv…", "ip": "73.12.148.20", "online": true, "speedMs": 1840 }]
}

構築の準備はできましたか?

ダッシュボードで認証情報を生成するか、API キーを作成して自動化しましょう。