example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 24 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": 553,
      "userId": 208,
      "taskId": null,
      "projectId": null,
      "description": "Bug investigation and fix",
      "startedAt": "2026-05-13T21:58:42.315Z",
      "endedAt": "2026-05-14T03:46:42.315Z",
      "durationMinutes": 348,
      "createdAt": "2026-05-14T03:46:42.315Z"
    },
    {
      "id": 554,
      "userId": 208,
      "taskId": 418,
      "projectId": null,
      "description": "UI component work",
      "startedAt": "2026-02-26T19:32:45.049Z",
      "endedAt": "2026-02-27T02:01:45.049Z",
      "durationMinutes": 389,
      "createdAt": "2026-02-27T02:01:45.049Z"
    },
    {
      "id": 555,
      "userId": 208,
      "taskId": 478,
      "projectId": null,
      "description": "Meeting preparation",
      "startedAt": "2026-01-15T20:24:29.846Z",
      "endedAt": "2026-01-15T22:51:29.846Z",
      "durationMinutes": 147,
      "createdAt": "2026-01-15T22:51:29.846Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=24&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=25&limit=24",
    "prev": "/api/v1/time-entries?page=23&limit=24"
  }
}