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

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.

Inputs of Network Speed Tester
FieldTypeDefaultDescription
pingSamplestextarea—Latency samples (ms). Round-trip times in milliseconds, separated by commas or spaces. The browser test fills this in.
downloadBytesinteger—Downloaded bytes
downloadMsnumber—Download time
uploadBytesinteger—Uploaded bytes
uploadMsnumber—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)

{
  "mcpServers": {
    "network-speed-tester": { "type": "http", "url": "https://networkspeedtester.usefulweb.site/mcp" }
  }
}