example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 7 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": 145,
      "userId": 50,
      "taskId": null,
      "projectId": 22,
      "description": "Implementing feature",
      "startedAt": "2026-01-09T22:29:16.302Z",
      "endedAt": "2026-01-10T06:06:16.302Z",
      "durationMinutes": 457,
      "createdAt": "2026-01-10T06:06:16.302Z"
    },
    {
      "id": 146,
      "userId": 50,
      "taskId": null,
      "projectId": 54,
      "description": "Documentation update",
      "startedAt": "2026-01-14T11:28:46.359Z",
      "endedAt": "2026-01-14T13:26:46.359Z",
      "durationMinutes": 118,
      "createdAt": "2026-01-14T13:26:46.359Z"
    },
    {
      "id": 147,
      "userId": 50,
      "taskId": null,
      "projectId": null,
      "description": "Customer call",
      "startedAt": "2026-04-05T09:52:46.562Z",
      "endedAt": "2026-04-05T13:29:46.562Z",
      "durationMinutes": 217,
      "createdAt": "2026-04-05T13:29:46.562Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=7&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=8&limit=24",
    "prev": "/api/v1/time-entries?page=6&limit=24"
  }
}