example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 5 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": 97,
      "userId": 34,
      "taskId": 557,
      "projectId": null,
      "description": "Onboarding support",
      "startedAt": "2025-12-14T07:08:43.115Z",
      "endedAt": "2025-12-14T07:24:43.115Z",
      "durationMinutes": 16,
      "createdAt": "2025-12-14T07:24:43.115Z"
    },
    {
      "id": 98,
      "userId": 34,
      "taskId": 595,
      "projectId": null,
      "description": "Incident response",
      "startedAt": "2025-12-11T15:47:29.766Z",
      "endedAt": "2025-12-11T20:43:29.766Z",
      "durationMinutes": 296,
      "createdAt": "2025-12-11T20:43:29.766Z"
    },
    {
      "id": 99,
      "userId": 35,
      "taskId": 188,
      "projectId": null,
      "description": "Deployment and monitoring",
      "startedAt": "2026-02-04T04:23:21.643Z",
      "endedAt": "2026-02-04T12:06:21.643Z",
      "durationMinutes": 463,
      "createdAt": "2026-02-04T12:06:21.643Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=5&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=6&limit=24",
    "prev": "/api/v1/time-entries?page=4&limit=24"
  }
}