API & MCP

Everything a person can do on Pocketlab Step Counter (accelerometer CSV), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Pocketlab Step Counter (accelerometer CSV)

Counts the steps in a phone or wearable accelerometer recording, the same way the Pocketlab step counter does live: paste or upload a CSV with a time column and one to three acceleration columns. You get the number of steps, the walking cadence, an estimated distance from your step length, steps per minute and a chart with every detected step.

Inputs of Pocketlab Step Counter (accelerometer CSV)
FieldTypeDefaultDescription
filefile—CSV file. One row per sample: time, then 1–3 acceleration columns; header optional. Up to 200 000 rows.
csvtextarea—Or paste the samples. Used when no file is uploaded. Comma, semicolon, tab or space separated — the CSV the Pocketlab recorders download fits.
timeUnitselect (auto, s, ms, us)"auto"Time unit
accelUnitselect (ms2, g)"ms2"Acceleration unit
stridenumber0.7Step length. For the distance estimate. Measure it: walk 10 steps and divide the distance by 10.
sensitivitynumber5Sensitivity. 1 = only firm steps, 10 = also light steps (and more false counts).

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": {
    "pocketlab-step-counter": { "type": "http", "url": "https://pocketlabstepcounter.usefulweb.app/mcp" }
  }
}