example-data.com
Menu
Browse docs and collections

time-entries

time-entries

Page 13 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": 289,
      "userId": 103,
      "taskId": null,
      "projectId": 38,
      "description": "Database optimization",
      "startedAt": "2025-12-09T00:28:37.199Z",
      "endedAt": "2025-12-09T02:11:37.199Z",
      "durationMinutes": 103,
      "createdAt": "2025-12-09T02:11:37.199Z"
    },
    {
      "id": 290,
      "userId": 103,
      "taskId": null,
      "projectId": 43,
      "description": "Onboarding support",
      "startedAt": "2026-01-24T10:56:08.135Z",
      "endedAt": "2026-01-24T16:56:08.135Z",
      "durationMinutes": 360,
      "createdAt": "2026-01-24T16:56:08.135Z"
    },
    {
      "id": 291,
      "userId": 103,
      "taskId": 336,
      "projectId": null,
      "description": "Documentation update",
      "startedAt": "2026-03-02T12:27:07.339Z",
      "endedAt": "2026-03-02T17:40:07.339Z",
      "durationMinutes": 313,
      "createdAt": "2026-03-02T17:40:07.339Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 661,
    "totalPages": 28
  },
  "links": {
    "self": "/api/v1/time-entries?page=13&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=14&limit=24",
    "prev": "/api/v1/time-entries?page=12&limit=24"
  }
}