API reference
Workouts record by ID
{ "name" "get user specifc workout", "method" "get", "url" "https //app api spikeapi com/v3/queries/workouts/{workout id}", "description" "retrieve user specific record by workout id", "tab" "examples", "examples" { "languages" \[ { "id" "co nququth xyjnpwxess", "language" "curl", "code" "curl request get \\\\\n url https //app api spikeapi com/v3/queries/workouts/{workout id} \\\\\n header 'accept application/json, application/problem+json' \\\\\n header 'authorization bearer eyjhbgcioijiuzi1niisinr5cci6ikpxvcj9 eyjpc3mioii5otk5osisinn1yii6ime5zju3odazmgixythkywuifq djhtpuc7gakk03rtfqxufjzrbnpfwjgvjnfu7yuy4a4'", "customlabel" "" } ], "selectedlanguageid" "co nququth xyjnpwxess" }, "results" { "languages" \[ { "id" "qfu6epz 8pp15gg8ebsdx", "language" "200", "code" "{\n \\"record id\\" \\"0134fece 6679 83a0 bf53 b509a3a93a70\\",\n \\"modified at\\" \\"2025 03 18t06 03 38z\\",\n \\"start at timestamp\\" \\"2025 03 18t05 27 46z\\",\n \\"end at timestamp\\" \\"2025 03 18t06 03 38z\\",\n \\"duration\\" 2152000,\n \\"user time offset minutes\\" 120,\n \\"input method\\" \\"device\\",\n \\"metrics\\" {\n \\"heartrate max\\" 170,\n \\"heartrate avg\\" 139,\n \\"heartrate min\\" 83,\n \\"calories burned active\\" 357 0000,\n \\"distance\\" 1625 0000,\n \\"speed max\\" 1 4080,\n \\"speed avg\\" 0 7550,\n \\"duration active\\" 2152,\n \\"cadence avg\\" 24 0000,\n \\"pace avg\\" 22 08\n },\n \\"provider source\\" \\"garmin wellness activity details\\",\n \\"provider source type\\" \\"activity\\",\n \\"provider slug\\" \\"garmin\\",\n \\"source\\" {\n \\"device manufacturer\\" \\"garmin\\",\n \\"device product\\" \\"venu sq\\"\n },\n \\"workout id\\" \\"49ba509e 2bef 55e1 9323 64835b6fd538\\",\n \\"workout type\\" \\"swimming\\",\n \\"workout tags\\" \[\n \\"swimming\\",\n \\"workout\\"\n ],\n \\"laps\\" \[\n {\n \\"start at\\" \\"2025 03 18t05 27 46z\\",\n \\"end at\\" \\"2025 03 18t05 38 09z\\",\n \\"duration\\" 623000,\n \\"lap\\" 1,\n \\"samples\\" {}\n },\n {\n \\"start at\\" \\"2025 03 18t05 38 09z\\",\n \\"end at\\" \\"2025 03 18t05 45 53z\\",\n \\"duration\\" 464000,\n \\"lap\\" 2,\n \\"samples\\" {}\n },\n {\n \\"start at\\" \\"2025 03 18t05 45 53z\\",\n \\"end at\\" \\"2025 03 18t05 53 34z\\",\n \\"duration\\" 461000,\n \\"lap\\" 3,\n \\"samples\\" {}\n },\n {\n \\"start at\\" \\"2025 03 18t05 53 34z\\",\n \\"end at\\" \\"2025 03 18t06 01 11z\\",\n \\"duration\\" 457000,\n \\"lap\\" 4,\n \\"samples\\" {}\n },\n {\n \\"start at\\" \\"2025 03 18t06 01 11z\\",\n \\"end at\\" \\"2025 03 18t06 03 38z\\",\n \\"duration\\" 147000,\n \\"lap\\" 5,\n \\"samples\\" {}\n }\n ],\n \\"samples\\" \[\n {\n \\"start at\\" \\"2025 03 18t05 27 46z\\",\n \\"end at\\" \\"2025 03 18t05 27 46z\\",\n \\"metrics\\" {\n \\"heartrate max\\" 170,\n \\"heartrate avg\\" 139,\n \\"heartrate min\\" 83\n }\n }\n ]\n },", "customlabel" "" } ], "selectedlanguageid" "qfu6epz 8pp15gg8ebsdx" }, "request" { "pathparameters" \[ { "name" "workout id", "kind" "required", "type" "string", "description" "", "" "required" } ], "queryparameters" \[ { "name" "include laps", "kind" "optional", "type" "boolean", "description" "", "" "boolean" }, { "name" "include route points", "kind" "optional", "type" "boolean", "description" "", "" "boolean" }, { "name" "include samples", "kind" "optional", "type" "boolean", "description" "", "" "boolean" }, { "name" "include segments", "kind" "optional", "type" "boolean", "description" "", "" "boolean" }, { "name" "include sessions", "kind" "optional", "type" "boolean", "description" "", "" "boolean" }, { "name" "include splits", "kind" "optional", "type" "boolean", "description" "", "" "boolean" } ], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "provide your bearer token in the authorization header when making requests to protected resources ", "" "authorization" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "query parameter", "value" "queryparameters" }, "hastryitout" false, "response" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "", "children" \[] }, { "name" "end at timestamp", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "input method", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "is source aggregated", "kind" "optional", "type" "boolean", "description" "", "children" \[] }, { "name" "laps", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "" }, { "name" "end at", "kind" "optional", "type" "string", "description" "" }, { "name" "lap", "kind" "optional", "type" "integer", "description" "" }, { "name" "metric", "kind" "optional", "type" "object", "description" "" }, { "name" "start at", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "metrics", "kind" "optional", "type" "object", "description" "", "children" \[] }, { "name" "modified at", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "provider slug", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "provider source", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "provider source type", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "record id", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "route points", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "" }, { "name" "elevation", "kind" "optional", "type" "number", "description" "" }, { "name" "end at", "kind" "optional", "type" "string", "description" "" }, { "name" "latitude", "kind" "optional", "type" "number", "description" "" }, { "name" "longitude", "kind" "optional", "type" "number", "description" "" }, { "name" "metrics", "kind" "optional", "type" "object", "description" "" }, { "name" "speed", "kind" "optional", "type" "number", "description" "" }, { "name" "start at", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "samples", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "durations", "kind" "optional", "type" "array", "description" "" }, { "name" "offsets", "kind" "optional", "type" "array", "description" "" }, { "name" "values", "kind" "optional", "type" "object", "description" "" } ] }, { "name" "segments", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "" }, { "name" "end at", "kind" "optional", "type" "string", "description" "" }, { "name" "metrics", "kind" "optional", "type" "object", "description" "" }, { "name" "start at", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "sessions", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "" }, { "name" "end at", "kind" "optional", "type" "string", "description" "" }, { "name" "metrics", "kind" "optional", "type" "object", "description" "" }, { "name" "start at", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "source", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "device manufacturer", "kind" "optional", "type" "string", "description" "" }, { "name" "device model", "kind" "optional", "type" "string", "description" "" }, { "name" "device product", "kind" "optional", "type" "string", "description" "" }, { "name" "device version", "kind" "optional", "type" "string", "description" "" }, { "name" "source bundle identifier", "kind" "optional", "type" "string", "description" "" }, { "name" "source os version", "kind" "optional", "type" "string", "description" "" }, { "name" "source product", "kind" "optional", "type" "string", "description" "" }, { "name" "source version", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "splits", "kind" "optional", "type" "object", "description" "", "children" \[ { "name" "duration", "kind" "optional", "type" "integer", "description" "" }, { "name" "end at", "kind" "optional", "type" "string", "description" "" }, { "name" "metrics", "kind" "optional", "type" "object", "description" "" }, { "name" "start at", "kind" "optional", "type" "string", "description" "" } ] }, { "name" "start at timestamp", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "user time offset minutes", "kind" "optional", "type" "integer", "description" "", "children" \[] }, { "name" "workout id", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "workout name", "kind" "optional", "type" "string", "description" "", "children" \[] }, { "name" "workout tags", "kind" "optional", "type" "array", "description" "", "children" \[] }, { "name" "workout type", "kind" "optional", "type" "array", "description" "", "children" \[] } ] }