example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 23 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": 529,
      "userId": 197,
      "taskId": null,
      "projectId": 67,
      "description": "Writing tests",
      "startedAt": "2026-03-29T07:35:48.262Z",
      "endedAt": "2026-03-29T09:17:48.262Z",
      "durationMinutes": 102,
      "createdAt": "2026-03-29T09:17:48.262Z"
    },
    {
      "id": 530,
      "userId": 198,
      "taskId": null,
      "projectId": null,
      "description": "Database optimization",
      "startedAt": "2025-12-20T09:58:15.698Z",
      "endedAt": "2025-12-20T11:32:15.698Z",
      "durationMinutes": 94,
      "createdAt": "2025-12-20T11:32:15.698Z"
    },
    {
      "id": 531,
      "userId": 198,
      "taskId": null,
      "projectId": 33,
      "description": "Technical spike",
      "startedAt": "2026-04-01T07:01:32.049Z",
      "endedAt": "2026-04-01T14:15:32.049Z",
      "durationMinutes": 434,
      "createdAt": "2026-04-01T14:15:32.049Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=23&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=24&limit=24",
    "prev": "/api/v1/time-entries?page=22&limit=24"
  }
}