example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 17 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": 385,
      "userId": 140,
      "taskId": null,
      "projectId": 33,
      "description": "Refactoring legacy code",
      "startedAt": "2026-01-26T16:56:41.080Z",
      "endedAt": "2026-01-26T20:42:41.080Z",
      "durationMinutes": 226,
      "createdAt": "2026-01-26T20:42:41.080Z"
    },
    {
      "id": 386,
      "userId": 140,
      "taskId": null,
      "projectId": 80,
      "description": "Architecture discussion",
      "startedAt": "2026-02-24T21:00:19.260Z",
      "endedAt": "2026-02-25T00:12:19.260Z",
      "durationMinutes": 192,
      "createdAt": "2026-02-25T00:12:19.260Z"
    },
    {
      "id": 387,
      "userId": 140,
      "taskId": null,
      "projectId": null,
      "description": "Security review",
      "startedAt": "2026-01-25T03:47:02.509Z",
      "endedAt": "2026-01-25T10:05:02.509Z",
      "durationMinutes": 378,
      "createdAt": "2026-01-25T10:05:02.509Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=17&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=18&limit=24",
    "prev": "/api/v1/time-entries?page=16&limit=24"
  }
}