example-data.com
Menu
Browse docs and collections

Overview

time-entries / #364

time-entries #364

userId
Britney Haag @britney.haag
taskId
tasks/318
projectId
description
API integration
startedAt
endedAt
durationMinutes
320
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/time-entries/364"
);
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/364"
);
const timeEntry = (await res.json()) as TimeEntry;

Python example

import requests

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

Response

{
  "id": 364,
  "userId": 133,
  "taskId": 318,
  "projectId": null,
  "description": "API integration",
  "startedAt": "2026-01-01T12:33:57.928Z",
  "endedAt": "2026-01-01T17:53:57.928Z",
  "durationMinutes": 320,
  "createdAt": "2026-01-01T17:53:57.928Z"
}