example-data.com
Menu
Browse docs and collections

comments

comments

Page 5 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": 97,
      "userId": 166,
      "targetType": "post",
      "targetId": 174,
      "body": "Validus placeat cohibeo angelus suffragium corpus. Tenax pauper ipsa tardus umbra basium strues virgo. Alius deporto qui ager aliqua caterva amet calamitas.",
      "isEdited": false,
      "createdAt": "2025-07-04T14:39:35.837Z",
      "updatedAt": "2025-07-04T14:39:35.837Z"
    },
    {
      "id": 98,
      "userId": 192,
      "targetType": "post",
      "targetId": 71,
      "body": "Ratione eaque textor. Quae caput crustulum cerno conventus thorax corporis amoveo cotidie. Calcar spoliatio illum paens. Vetus qui spargo hic confugo cognomen.",
      "isEdited": false,
      "createdAt": "2025-10-07T23:25:27.361Z",
      "updatedAt": "2025-10-07T23:25:27.361Z"
    },
    {
      "id": 99,
      "userId": 214,
      "targetType": "post",
      "targetId": 164,
      "body": "Carmen traho pecco assentator corporis consectetur deludo absque. Adeo commodi teres corrumpo creo arto uxor tutis. Termes cattus deserunt.",
      "isEdited": false,
      "createdAt": "2025-10-23T09:18:59.839Z",
      "updatedAt": "2025-10-23T09:18:59.839Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=5&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=6&limit=24",
    "prev": "/api/v1/comments?page=4&limit=24"
  }
}