example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 20 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": 457,
      "userId": 170,
      "taskId": null,
      "projectId": null,
      "description": "Planning session",
      "startedAt": "2026-04-06T03:34:55.185Z",
      "endedAt": "2026-04-06T11:30:55.185Z",
      "durationMinutes": 476,
      "createdAt": "2026-04-06T11:30:55.185Z"
    },
    {
      "id": 458,
      "userId": 171,
      "taskId": null,
      "projectId": 68,
      "description": "API integration",
      "startedAt": "2026-01-01T07:59:04.650Z",
      "endedAt": "2026-01-01T08:32:04.650Z",
      "durationMinutes": 33,
      "createdAt": "2026-01-01T08:32:04.650Z"
    },
    {
      "id": 459,
      "userId": 171,
      "taskId": null,
      "projectId": null,
      "description": "Bug investigation and fix",
      "startedAt": "2026-01-12T05:29:50.842Z",
      "endedAt": "2026-01-12T09:23:50.842Z",
      "durationMinutes": 234,
      "createdAt": "2026-01-12T09:23:50.842Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=20&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=21&limit=24",
    "prev": "/api/v1/time-entries?page=19&limit=24"
  }
}