example-data.com
Menu
Browse docs and collections

comments

comments

Page 62 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": 1465,
      "userId": 189,
      "targetType": "post",
      "targetId": 395,
      "body": "Vacuus terreo arma. Triumphus sint via sortitus est aestas depopulo amplitudo. Defungo amo tametsi statua.",
      "isEdited": false,
      "createdAt": "2026-03-30T18:51:22.890Z",
      "updatedAt": "2026-03-30T18:51:22.890Z"
    },
    {
      "id": 1466,
      "userId": 101,
      "targetType": "post",
      "targetId": 225,
      "body": "Confugo video concedo veniam acsi cogito annus atavus.",
      "isEdited": false,
      "createdAt": "2025-12-13T00:15:51.710Z",
      "updatedAt": "2025-12-13T00:15:51.710Z"
    },
    {
      "id": 1467,
      "userId": 101,
      "targetType": "post",
      "targetId": 38,
      "body": "Ulterius summisse utor degenero. Cohors cursus vere unde aliquam carus quam viriliter iste thesaurus.",
      "isEdited": false,
      "createdAt": "2026-03-18T22:18:29.600Z",
      "updatedAt": "2026-03-18T22:18:29.600Z"
    }
  ],
  "meta": {
    "page": 62,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=62&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=63&limit=24",
    "prev": "/api/v1/comments?page=61&limit=24"
  }
}