example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 11 of 28.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/time-entries?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/time-entries?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/time-entries";

const res = await fetch(
  "https://example-data.com/api/v1/time-entries?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<TimeEntry>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/time-entries",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 241,
      "userId": 86,
      "taskId": 494,
      "projectId": null,
      "description": "Technical spike",
      "startedAt": "2026-02-28T13:53:43.734Z",
      "endedAt": "2026-02-28T17:07:43.734Z",
      "durationMinutes": 194,
      "createdAt": "2026-02-28T17:07:43.734Z"
    },
    {
      "id": 242,
      "userId": 87,
      "taskId": null,
      "projectId": null,
      "description": "Writing tests",
      "startedAt": "2026-04-30T10:35:26.838Z",
      "endedAt": "2026-04-30T11:49:26.838Z",
      "durationMinutes": 74,
      "createdAt": "2026-04-30T11:49:26.838Z"
    },
    {
      "id": 243,
      "userId": 88,
      "taskId": 23,
      "projectId": null,
      "description": "Architecture discussion",
      "startedAt": "2026-01-03T17:22:01.692Z",
      "endedAt": "2026-01-03T20:04:01.692Z",
      "durationMinutes": 162,
      "createdAt": "2026-01-03T20:04:01.692Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=11&limit=24",
    "first": "/api/v1/time-entries?page=1&limit=24",
    "last": "/api/v1/time-entries?page=28&limit=24",
    "next": "/api/v1/time-entries?page=12&limit=24",
    "prev": "/api/v1/time-entries?page=10&limit=24"
  }
}