Node Speed 技術仕様 API ドキュメント

Cloudflareエッジ環境の利点を活かした、超高速・超省パケットな回線実測検証用のクロスドメイン(CORS)対応オープンAPI仕様です。
GET/api/download
スピードテスト測定用の高圧縮バイナリデータをストリーミングダウンロードします。
仕様: 最大サイズ約 1 GB(パケット配信自動サチュレート設計) | Content-Type: application/octet-stream
JavaScript 実装サンプルコード:
const start = performance.now();
const res = await fetch('https://speed.ndnx.workers.dev/api/download', {
  cache: 'no-store',
  priority: 'high'
});
const reader = res.body.getReader();
let receivedBytes = 0;

while(true) {
  const { done, value } = await reader.read();
  if (done) break;
  receivedBytes += value.length;
  
  const elapsedSeconds = (performance.now() - start) / 1000;
  const currentMbps = ((receivedBytes * 8) / elapsedSeconds) / 1e6;
  console.log('リアルタイム測定速度: ' + currentMbps.toFixed(2) + ' Mbps');
}
GET/api/ping
RTT(往復接続遅延時間)およびパケットジッター of 測定用超軽量エンドポイントです。
レスポンス: "pong"(プレーンテキスト) | Content-Type: text/plain; charset=utf-8
cURL 実行テスト例:
curl -i -X GET "https://speed.ndnx.workers.dev/api/ping"
トップページへ戻る