example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 6 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": 121,
      "userId": 41,
      "taskId": 651,
      "projectId": null,
      "description": "Implementing feature",
      "startedAt": "2026-01-25T03:42:21.538Z",
      "endedAt": "2026-01-25T10:26:21.538Z",
      "durationMinutes": 404,
      "createdAt": "2026-01-25T10:26:21.538Z"
    },
    {
      "id": 122,
      "userId": 41,
      "taskId": null,
      "projectId": 3,
      "description": "Implementing feature",
      "startedAt": "2026-03-23T23:28:42.499Z",
      "endedAt": "2026-03-24T02:44:42.499Z",
      "durationMinutes": 196,
      "createdAt": "2026-03-24T02:44:42.499Z"
    },
    {
      "id": 123,
      "userId": 42,
      "taskId": 390,
      "projectId": null,
      "description": "Architecture discussion",
      "startedAt": "2026-02-13T16:56:39.200Z",
      "endedAt": "2026-02-13T21:10:39.200Z",
      "durationMinutes": 254,
      "createdAt": "2026-02-13T21:10:39.200Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=6&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=7&limit=24",
    "prev": "/api/v1/time-entries?page=5&limit=24"
  }
}