example-data.com
Menu
Browse docs and collections

Overview

time-entries / #78

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/time-entries/78" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/time-entries/78"
);
const timeEntry = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/time-entries.d.ts https://example-data.com/types/time-entries.d.ts
import type { TimeEntry } from "./types/time-entries";

const res = await fetch(
  "https://example-data.com/api/v1/time-entries/78"
);
const timeEntry = (await res.json()) as TimeEntry;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/time-entries/78"
)
time_entrie = res.json()

Response

{
  "id": 78,
  "userId": 25,
  "taskId": null,
  "projectId": 83,
  "description": "Refactoring legacy code",
  "startedAt": "2025-11-23T05:32:13.181Z",
  "endedAt": "2025-11-23T11:42:13.181Z",
  "durationMinutes": 370,
  "createdAt": "2025-11-23T11:42:13.181Z"
}