API & MCP

Everything a person can do on Running Pace & Splits, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Running Pace & Splits

Enter two of distance, time and pace to get the third, in kilometres or miles. Get an even, negative or positive split table, race time predictions with the Riegel formula, the treadmill speed in km/h and mph, and track lap times.

Inputs of Running Pace & Splits
FieldTypeDefaultDescription
solveForselect (pace, time, distance)"pace"Calculate
presetselect (custom, 1k, mile, 5k, 10k, 15k, 10mi, half, marathon, 50k)"10k"Race distance
distancenumber—Custom distance. Used when the race distance is "Custom distance".
distanceUnitselect (km, mi, m)"km"Distance unit
timetext—Time. h:mm:ss or mm:ss, e.g. 1:45:00 or 24:30.
pacetext—Pace. mm:ss per km or per mile, e.g. 5:30.
paceUnitselect (km, mi)"km"Pace per
splitUnitselect (km, mi)"km"Splits every
splitStrategyselect (even, negative, positive)"even"Split strategy
splitPercentnumber3Pace change start → finish. For negative/positive splits: how much the pace changes from the start to the finish, spread evenly.
lapMetersnumber400Track lap length

Example request

10K in 50:00: pace and splits

curl -X POST https://runningpacecalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"solveFor":"pace","preset":"10k","time":"50:00","splitUnit":"km","splitStrategy":"even"}'

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": {
    "running-pace-calculator": { "type": "http", "url": "https://runningpacecalculator.usefulweb.site/mcp" }
  }
}