API & MCP
Everything a person can do on Network Speed Tester, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://networkspeedtester.usefulweb.site/api/v1/calculate– run Network Speed TesterGET https://networkspeedtester.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Network Speed Tester
With JavaScript on, a series of small requests measures latency and jitter, then a random, incompressible download and an upload measure throughput to this server. Without JavaScript you can enter your own measurements (bytes and milliseconds) and get the same statistics.
| Field | Type | Default | Description |
|---|---|---|---|
pingSamples | textarea | — | Latency samples (ms). Round-trip times in milliseconds, separated by commas or spaces. The browser test fills this in. |
downloadBytes | integer | — | Downloaded bytes |
downloadMs | number | — | Download time |
uploadBytes | integer | — | Uploaded bytes |
uploadMs | number | — | Upload time |
Example request
Example measurements (fibre-like)
curl -X POST https://networkspeedtester.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"pingSamples":"18.2, 17.9, 19.4, 18.1, 25.6, 18.0, 18.3, 17.8, 19.0, 18.4","downloadBytes":50000000,"downloadMs":1420,"uploadBytes":20000000,"uploadMs":3350}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://networkspeedtester.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
network_speed_tester - Local stdio connector:
node src/mcp-stdio.ts --tool=network-speed-tester
{
"mcpServers": {
"network-speed-tester": { "type": "http", "url": "https://networkspeedtester.usefulweb.site/mcp" }
}
}