example-data.com
Menu
Browse docs and collections

comments

comments

Page 37 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": 865,
      "userId": 60,
      "targetType": "post",
      "targetId": 344,
      "body": "Cura sortitus eligendi creptio. Cervus aiunt reiciendis. Valetudo ducimus strenuus aspernatur sunt antepono.",
      "isEdited": false,
      "createdAt": "2025-09-13T09:47:39.424Z",
      "updatedAt": "2025-09-13T09:47:39.424Z"
    },
    {
      "id": 866,
      "userId": 233,
      "targetType": "post",
      "targetId": 376,
      "body": "Admitto tabula terreo carpo. Corona corrigo unus delego delego cursus capio accommodo cervus demoror. Conitor totus debilito pectus xiphias astrum.",
      "isEdited": false,
      "createdAt": "2026-03-06T02:18:55.401Z",
      "updatedAt": "2026-03-06T02:18:55.401Z"
    },
    {
      "id": 867,
      "userId": 75,
      "targetType": "post",
      "targetId": 245,
      "body": "Tantillus xiphias aro solus uxor administratio benevolentia quo. Delinquo candidus ver speculum bibo. Tolero adicio vetus cedo commodo deporto certus conor corpus laboriosam.",
      "isEdited": false,
      "createdAt": "2024-11-15T12:03:49.196Z",
      "updatedAt": "2024-11-15T12:03:49.196Z"
    }
  ],
  "meta": {
    "page": 37,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=37&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=38&limit=24",
    "prev": "/api/v1/comments?page=36&limit=24"
  }
}