example-data.com
Menu
Browse docs and collections

comments

comments

Page 10 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": 217,
      "userId": 131,
      "targetType": "post",
      "targetId": 234,
      "body": "Appono animi nulla denego assentator. Pecco perferendis succurro succurro usque odit turba debilito magnam.",
      "isEdited": false,
      "createdAt": "2026-03-11T21:44:26.112Z",
      "updatedAt": "2026-03-11T21:44:26.112Z"
    },
    {
      "id": 218,
      "userId": 188,
      "targetType": "post",
      "targetId": 136,
      "body": "Admoneo beneficium tyrannus velum cultura accusator vivo. Spiritus sumo calamitas taedium pax alii vereor vitae video.",
      "isEdited": false,
      "createdAt": "2025-09-09T06:37:25.513Z",
      "updatedAt": "2025-09-09T06:37:25.513Z"
    },
    {
      "id": 219,
      "userId": 178,
      "targetType": "post",
      "targetId": 83,
      "body": "Sequi angelus unus sequi unus adimpleo studio.",
      "isEdited": false,
      "createdAt": "2025-04-21T20:35:26.895Z",
      "updatedAt": "2025-04-21T20:35:26.895Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=10&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=11&limit=24",
    "prev": "/api/v1/comments?page=9&limit=24"
  }
}