example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 2 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": 25,
      "userId": 10,
      "taskId": null,
      "projectId": null,
      "description": "Architecture discussion",
      "startedAt": "2026-04-20T05:56:26.866Z",
      "endedAt": "2026-04-20T12:49:26.866Z",
      "durationMinutes": 413,
      "createdAt": "2026-04-20T12:49:26.866Z"
    },
    {
      "id": 26,
      "userId": 10,
      "taskId": null,
      "projectId": null,
      "description": "Performance profiling",
      "startedAt": "2026-03-24T06:46:08.197Z",
      "endedAt": "2026-03-24T09:15:08.197Z",
      "durationMinutes": 149,
      "createdAt": "2026-03-24T09:15:08.197Z"
    },
    {
      "id": 27,
      "userId": 10,
      "taskId": null,
      "projectId": null,
      "description": "Customer call",
      "startedAt": "2026-04-16T04:47:19.526Z",
      "endedAt": "2026-04-16T07:20:19.526Z",
      "durationMinutes": 153,
      "createdAt": "2026-04-16T07:20:19.526Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=2&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=3&limit=24",
    "prev": "/api/v1/time-entries?page=1&limit=24"
  }
}