example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 25 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": 577,
      "userId": 215,
      "taskId": null,
      "projectId": 18,
      "description": "Writing tests",
      "startedAt": "2026-02-26T15:16:14.192Z",
      "endedAt": "2026-02-26T17:02:14.192Z",
      "durationMinutes": 106,
      "createdAt": "2026-02-26T17:02:14.192Z"
    },
    {
      "id": 578,
      "userId": 215,
      "taskId": null,
      "projectId": 62,
      "description": "Meeting preparation",
      "startedAt": "2026-03-13T11:45:20.478Z",
      "endedAt": "2026-03-13T13:02:20.478Z",
      "durationMinutes": 77,
      "createdAt": "2026-03-13T13:02:20.478Z"
    },
    {
      "id": 579,
      "userId": 216,
      "taskId": null,
      "projectId": null,
      "description": "Documentation update",
      "startedAt": "2026-03-21T11:35:29.789Z",
      "endedAt": "2026-03-21T19:23:29.789Z",
      "durationMinutes": 468,
      "createdAt": "2026-03-21T19:23:29.789Z"
    }
  ],
  "meta": {
    "page": 25,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=25&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=26&limit=24",
    "prev": "/api/v1/time-entries?page=24&limit=24"
  }
}