example-data.com
Menu
Browse docs and collections

comments

comments

Page 28 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": 649,
      "userId": 141,
      "targetType": "post",
      "targetId": 306,
      "body": "Cena thesis tametsi cogito deputo. Delectatio caterva pauper creator volubilis nostrum. Voluptatem ascit amaritudo accusantium deprimo comparo cohibeo architecto torrens.",
      "isEdited": false,
      "createdAt": "2025-06-05T01:07:27.889Z",
      "updatedAt": "2025-06-05T01:07:27.889Z"
    },
    {
      "id": 650,
      "userId": 154,
      "targetType": "post",
      "targetId": 398,
      "body": "Inflammatio aurum certe audentia ante. Deludo delinquo ancilla certe depopulo amplexus accusantium.",
      "isEdited": true,
      "createdAt": "2025-03-22T10:30:05.014Z",
      "updatedAt": "2025-06-04T04:33:45.474Z"
    },
    {
      "id": 651,
      "userId": 226,
      "targetType": "post",
      "targetId": 141,
      "body": "Venio capillus alius eius. Depono infit cotidie.",
      "isEdited": false,
      "createdAt": "2025-08-26T13:56:59.646Z",
      "updatedAt": "2025-08-26T13:56:59.646Z"
    }
  ],
  "meta": {
    "page": 28,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=28&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=29&limit=24",
    "prev": "/api/v1/comments?page=27&limit=24"
  }
}