example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 22 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": 505,
      "userId": 186,
      "taskId": 322,
      "projectId": null,
      "description": "Onboarding support",
      "startedAt": "2026-05-15T08:42:17.523Z",
      "endedAt": "2026-05-15T15:31:17.523Z",
      "durationMinutes": 409,
      "createdAt": "2026-05-15T15:31:17.523Z"
    },
    {
      "id": 506,
      "userId": 186,
      "taskId": 150,
      "projectId": null,
      "description": "Refactoring legacy code",
      "startedAt": "2026-02-21T15:39:42.870Z",
      "endedAt": "2026-02-21T16:52:42.870Z",
      "durationMinutes": 73,
      "createdAt": "2026-02-21T16:52:42.870Z"
    },
    {
      "id": 507,
      "userId": 187,
      "taskId": null,
      "projectId": 6,
      "description": "Customer call",
      "startedAt": "2025-12-25T04:54:21.764Z",
      "endedAt": "2025-12-25T05:32:21.764Z",
      "durationMinutes": 38,
      "createdAt": "2025-12-25T05:32:21.764Z"
    }
  ],
  "meta": {
    "page": 22,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=22&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=23&limit=24",
    "prev": "/api/v1/time-entries?page=21&limit=24"
  }
}