example-data.com
Menu
Browse docs and collections

Overview

workouts / #597

Upper Body Training

userId
Oma Franecki-Johnson @oma.franecki-johnson
kind
strength
name
Upper Body Training
durationMinutes
38
caloriesBurned
322
intensity
high
notes
Did extra sets
performedAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/workouts/597"
);
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/597"
);
const workout = (await res.json()) as Workout;

Python example

import requests

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

Response

{
  "id": 597,
  "userId": 242,
  "kind": "strength",
  "name": "Upper Body Training",
  "durationMinutes": 38,
  "caloriesBurned": 322,
  "intensity": "high",
  "notes": "Did extra sets",
  "performedAt": "2025-07-01T16:33:29.691Z",
  "createdAt": "2025-07-01T17:27:12.882Z"
}