example-data.com
Menu
Browse docs and collections

Overview

workouts / #70

Upper Body Challenge

userId
Rosella Homenick @rosella.homenick
kind
sports
name
Upper Body Challenge
durationMinutes
19
caloriesBurned
193
intensity
high
notes
Tough session but pushed through
performedAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 70,
  "userId": 27,
  "kind": "sports",
  "name": "Upper Body Challenge",
  "durationMinutes": 19,
  "caloriesBurned": 193,
  "intensity": "high",
  "notes": "Tough session but pushed through",
  "performedAt": "2025-06-27T22:56:29.874Z",
  "createdAt": "2025-06-27T23:19:29.336Z"
}