example-data.com
Menu
Browse docs and collections

workouts

workouts

Page 21 of 26.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/workouts?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/workouts?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/workouts.d.ts https://example-data.com/types/workouts.d.ts
import type { Workout, ListEnvelope } from "./types/workouts";

const res = await fetch(
  "https://example-data.com/api/v1/workouts?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Workout>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/workouts",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 481,
      "userId": 197,
      "kind": "flexibility",
      "name": "Lower Body Challenge",
      "durationMinutes": 85,
      "caloriesBurned": 553,
      "intensity": "medium",
      "notes": "Did extra sets",
      "performedAt": "2025-08-24T07:02:06.111Z",
      "createdAt": "2025-08-24T07:58:42.298Z"
    },
    {
      "id": 482,
      "userId": 197,
      "kind": "mixed",
      "name": "Core Blast",
      "durationMinutes": 30,
      "caloriesBurned": 242,
      "intensity": "high",
      "notes": "Focused on form today",
      "performedAt": "2026-05-13T03:01:37.577Z",
      "createdAt": "2026-05-13T03:16:46.643Z"
    },
    {
      "id": 483,
      "userId": 197,
      "kind": "cardio",
      "name": "Lower Body Training",
      "durationMinutes": 61,
      "caloriesBurned": 301,
      "intensity": "medium",
      "notes": "Should have gone heavier",
      "performedAt": "2025-11-09T00:33:41.767Z",
      "createdAt": "2025-11-09T01:23:38.217Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 620,
    "totalPages": 26
  },
  "links": {
    "self": "/api/v1/workouts?page=21&limit=24",
    "first": "/api/v1/workouts?page=1&limit=24",
    "last": "/api/v1/workouts?page=26&limit=24",
    "next": "/api/v1/workouts?page=22&limit=24",
    "prev": "/api/v1/workouts?page=20&limit=24"
  }
}