example-data.com
Menu
Browse docs and collections

comments

comments

Page 36 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": 841,
      "userId": 74,
      "targetType": "post",
      "targetId": 293,
      "body": "Patria vigor auxilium. Tyrannus numquam comedo crudelis iste cursus sub temperantia.",
      "isEdited": false,
      "createdAt": "2026-01-31T16:16:47.187Z",
      "updatedAt": "2026-01-31T16:16:47.187Z"
    },
    {
      "id": 842,
      "userId": 88,
      "targetType": "post",
      "targetId": 156,
      "body": "Minus tertius succurro iusto suffragium agnitio tametsi utor territo attollo. Urbanus arca aedificium convoco ventus abutor vilicus aperiam statua magnam. Teneo vulticulus stabilis ut tamdiu tamisium voluptas strenuus atrox. Texo conservo magnam ademptio.",
      "isEdited": true,
      "createdAt": "2024-12-29T10:23:55.054Z",
      "updatedAt": "2026-01-17T09:03:35.571Z"
    },
    {
      "id": 843,
      "userId": 5,
      "targetType": "post",
      "targetId": 255,
      "body": "Voluptates xiphias amaritudo. Aptus tracto calcar sed.",
      "isEdited": false,
      "createdAt": "2024-11-02T23:12:26.662Z",
      "updatedAt": "2024-11-02T23:12:26.662Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=36&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=37&limit=24",
    "prev": "/api/v1/comments?page=35&limit=24"
  }
}