example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 19 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": 433,
      "userId": 160,
      "taskId": null,
      "projectId": 52,
      "description": "Writing tests",
      "startedAt": "2026-01-20T16:03:26.611Z",
      "endedAt": "2026-01-20T19:57:26.611Z",
      "durationMinutes": 234,
      "createdAt": "2026-01-20T19:57:26.611Z"
    },
    {
      "id": 434,
      "userId": 161,
      "taskId": null,
      "projectId": null,
      "description": "Planning session",
      "startedAt": "2025-12-26T00:36:42.468Z",
      "endedAt": "2025-12-26T04:12:42.468Z",
      "durationMinutes": 216,
      "createdAt": "2025-12-26T04:12:42.468Z"
    },
    {
      "id": 435,
      "userId": 162,
      "taskId": 632,
      "projectId": null,
      "description": "Customer call",
      "startedAt": "2026-03-30T21:33:28.959Z",
      "endedAt": "2026-03-30T23:31:28.959Z",
      "durationMinutes": 118,
      "createdAt": "2026-03-30T23:31:28.959Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=19&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=20&limit=24",
    "prev": "/api/v1/time-entries?page=18&limit=24"
  }
}