example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 16 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": 361,
      "userId": 133,
      "taskId": 26,
      "projectId": null,
      "description": "Database optimization",
      "startedAt": "2026-03-26T09:15:40.191Z",
      "endedAt": "2026-03-26T16:50:40.191Z",
      "durationMinutes": 455,
      "createdAt": "2026-03-26T16:50:40.191Z"
    },
    {
      "id": 362,
      "userId": 133,
      "taskId": null,
      "projectId": 50,
      "description": "UI component work",
      "startedAt": "2026-02-27T20:58:00.822Z",
      "endedAt": "2026-02-28T04:40:00.822Z",
      "durationMinutes": 462,
      "createdAt": "2026-02-28T04:40:00.822Z"
    },
    {
      "id": 363,
      "userId": 133,
      "taskId": 81,
      "projectId": null,
      "description": "Architecture discussion",
      "startedAt": "2026-04-28T23:00:26.738Z",
      "endedAt": "2026-04-29T05:04:26.738Z",
      "durationMinutes": 364,
      "createdAt": "2026-04-29T05:04:26.738Z"
    }
  ],
  "meta": {
    "page": 16,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=16&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=17&limit=24",
    "prev": "/api/v1/time-entries?page=15&limit=24"
  }
}