example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 3 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": 49,
      "userId": 17,
      "taskId": null,
      "projectId": null,
      "description": "Documentation update",
      "startedAt": "2026-02-21T01:25:30.548Z",
      "endedAt": "2026-02-21T05:19:30.548Z",
      "durationMinutes": 234,
      "createdAt": "2026-02-21T05:19:30.548Z"
    },
    {
      "id": 50,
      "userId": 17,
      "taskId": 37,
      "projectId": null,
      "description": "Documentation update",
      "startedAt": "2026-01-23T00:52:05.072Z",
      "endedAt": "2026-01-23T03:34:05.072Z",
      "durationMinutes": 162,
      "createdAt": "2026-01-23T03:34:05.072Z"
    },
    {
      "id": 51,
      "userId": 18,
      "taskId": 160,
      "projectId": null,
      "description": "Security review",
      "startedAt": "2025-12-22T13:20:16.990Z",
      "endedAt": "2025-12-22T14:12:16.990Z",
      "durationMinutes": 52,
      "createdAt": "2025-12-22T14:12:16.990Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=3&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=4&limit=24",
    "prev": "/api/v1/time-entries?page=2&limit=24"
  }
}