example-data.com
Menu
Browse docs and collections

comments

comments

Page 20 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": 457,
      "userId": 30,
      "targetType": "post",
      "targetId": 2,
      "body": "Candidus temeritas velit comparo aeternus rerum ara vulnus pel crur. Cubo eveniet patruus.",
      "isEdited": false,
      "createdAt": "2025-10-15T06:13:07.878Z",
      "updatedAt": "2025-10-15T06:13:07.878Z"
    },
    {
      "id": 458,
      "userId": 74,
      "targetType": "post",
      "targetId": 362,
      "body": "Astrum teres caritas molestiae trepide tersus iusto. Clam caelestis cometes subseco sponte vix abduco adduco pecus absum. Ultra amissio vilicus umerus balbus.",
      "isEdited": false,
      "createdAt": "2024-07-17T10:22:26.542Z",
      "updatedAt": "2024-07-17T10:22:26.542Z"
    },
    {
      "id": 459,
      "userId": 73,
      "targetType": "post",
      "targetId": 360,
      "body": "Ambulo conturbo vos verto eligendi solutio adopto sed ademptio templum. Decimus damnatio cunae depopulo harum aestas cupio. Crastinus compello absum sustineo adduco. Terebro deleniti valde unde velut voluptatum tyrannus via.",
      "isEdited": false,
      "createdAt": "2025-11-12T10:03:31.175Z",
      "updatedAt": "2025-11-12T10:03:31.175Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=20&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=21&limit=24",
    "prev": "/api/v1/comments?page=19&limit=24"
  }
}