example-data.com
Menu
Browse docs and collections

comments

comments

Page 26 of 63.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/comments?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/comments?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/comments.d.ts https://example-data.com/types/comments.d.ts
import type { Comment, ListEnvelope } from "./types/comments";

const res = await fetch(
  "https://example-data.com/api/v1/comments?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Comment>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/comments",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 601,
      "userId": 209,
      "targetType": "post",
      "targetId": 39,
      "body": "Adficio tenetur stella coerceo arbitro callide.",
      "isEdited": false,
      "createdAt": "2026-05-10T10:46:58.832Z",
      "updatedAt": "2026-05-10T10:46:58.832Z"
    },
    {
      "id": 602,
      "userId": 172,
      "targetType": "post",
      "targetId": 117,
      "body": "Confido utpote defungo spargo ulterius altus barba. Astrum error accusantium tollo bos. Cedo candidus vomica ascisco non volva.",
      "isEdited": false,
      "createdAt": "2025-05-14T06:22:55.485Z",
      "updatedAt": "2025-05-14T06:22:55.485Z"
    },
    {
      "id": 603,
      "userId": 174,
      "targetType": "post",
      "targetId": 467,
      "body": "Viridis solum cohaero casso talus. Corrumpo agnosco celo angustus tres distinctio denique.",
      "isEdited": true,
      "createdAt": "2026-05-17T02:03:53.133Z",
      "updatedAt": "2026-05-18T13:56:04.975Z"
    }
  ],
  "meta": {
    "page": 26,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=26&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=27&limit=24",
    "prev": "/api/v1/comments?page=25&limit=24"
  }
}