example-data.com
Menu
Browse docs and collections

comments

comments

Page 63 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": 1489,
      "userId": 145,
      "targetType": "post",
      "targetId": 411,
      "body": "Umerus depopulo viscus taceo voluptatibus. Uxor demulceo reiciendis quae volup compono succurro audax. Ea abduco careo admoneo pauper ipsam admoneo subvenio tamquam. Sophismata degenero admitto fugiat centum ventito clarus harum.",
      "isEdited": false,
      "createdAt": "2024-05-27T01:02:35.294Z",
      "updatedAt": "2024-05-27T01:02:35.294Z"
    },
    {
      "id": 1490,
      "userId": 2,
      "targetType": "post",
      "targetId": 98,
      "body": "Caelestis crebro depono voluptas. Uterque rerum cibo crepusculum deludo molestias. Corpus capio supplanto tametsi apto adstringo terror tantillus.",
      "isEdited": true,
      "createdAt": "2024-11-11T06:22:49.248Z",
      "updatedAt": "2026-04-03T15:22:28.310Z"
    },
    {
      "id": 1491,
      "userId": 60,
      "targetType": "post",
      "targetId": 365,
      "body": "Tergeo vulgo conculco laudantium compono tui valde.",
      "isEdited": false,
      "createdAt": "2025-09-26T09:18:07.570Z",
      "updatedAt": "2025-09-26T09:18:07.570Z"
    }
  ],
  "meta": {
    "page": 63,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=63&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": null,
    "prev": "/api/v1/comments?page=62&limit=24"
  }
}