example-data.com
Menu
Browse docs and collections

comments

comments

Page 22 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": 505,
      "userId": 235,
      "targetType": "post",
      "targetId": 394,
      "body": "Tantillus nesciunt commemoro pecus. Denuncio sto peccatus officia cubicularis tenus sit.",
      "isEdited": false,
      "createdAt": "2025-12-11T15:32:40.348Z",
      "updatedAt": "2025-12-11T15:32:40.348Z"
    },
    {
      "id": 506,
      "userId": 49,
      "targetType": "post",
      "targetId": 43,
      "body": "Maiores comprehendo paulatim.",
      "isEdited": false,
      "createdAt": "2026-02-18T16:22:51.161Z",
      "updatedAt": "2026-02-18T16:22:51.161Z"
    },
    {
      "id": 507,
      "userId": 72,
      "targetType": "post",
      "targetId": 269,
      "body": "Curatio alioqui totus alius vilis aperio calco speciosus cubicularis. Suffragium synagoga tabella suscipio tremo aperiam cunabula bos usus. Uxor bellicus eius admoveo tantum cunae viscus velut colligo paulatim. Quidem viscus inventore sursum trepide custodia.",
      "isEdited": true,
      "createdAt": "2026-05-18T14:15:57.646Z",
      "updatedAt": "2026-05-21T09:03:35.596Z"
    }
  ],
  "meta": {
    "page": 22,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=22&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=23&limit=24",
    "prev": "/api/v1/comments?page=21&limit=24"
  }
}