example-data.com
Menu
Browse docs and collections

Overview

workouts / #474

Power Training

userId
Oliver Mitchell @oliver_mitchell50
kind
strength
name
Power Training
durationMinutes
49
caloriesBurned
569
intensity
very_high
notes
Tough session but pushed through
performedAt
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/workouts/474" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/workouts/474"
);
const workout = 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 } from "./types/workouts";

const res = await fetch(
  "https://example-data.com/api/v1/workouts/474"
);
const workout = (await res.json()) as Workout;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/workouts/474"
)
workout = res.json()

Response

{
  "id": 474,
  "userId": 194,
  "kind": "strength",
  "name": "Power Training",
  "durationMinutes": 49,
  "caloriesBurned": 569,
  "intensity": "very_high",
  "notes": "Tough session but pushed through",
  "performedAt": "2025-08-07T18:16:24.556Z",
  "createdAt": "2025-08-07T19:14:50.248Z"
}