example-data.com
Menu
Browse docs and collections

comments

comments

Page 58 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": 1369,
      "userId": 40,
      "targetType": "post",
      "targetId": 417,
      "body": "Tantum suscipio ustulo defleo defendo sollers. Ustilo delicate iure strues. Super antepono vitae adimpleo admoveo.",
      "isEdited": false,
      "createdAt": "2024-08-04T18:58:27.613Z",
      "updatedAt": "2024-08-04T18:58:27.613Z"
    },
    {
      "id": 1370,
      "userId": 67,
      "targetType": "post",
      "targetId": 453,
      "body": "Animi comburo conspergo aeternus capio cervus tersus speciosus copiose. Coerceo odio incidunt. Caelestis censura caelestis absque abscido supellex sed.",
      "isEdited": false,
      "createdAt": "2024-06-22T08:44:07.162Z",
      "updatedAt": "2024-06-22T08:44:07.162Z"
    },
    {
      "id": 1371,
      "userId": 109,
      "targetType": "post",
      "targetId": 469,
      "body": "Socius tubineus tamisium. Curtus validus corrumpo acceptus congregatio denique demum asporto quis villa.",
      "isEdited": false,
      "createdAt": "2025-12-01T10:38:16.554Z",
      "updatedAt": "2025-12-01T10:38:16.554Z"
    }
  ],
  "meta": {
    "page": 58,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=58&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=59&limit=24",
    "prev": "/api/v1/comments?page=57&limit=24"
  }
}