example-data.com
Menu
Browse docs and collections

comments

comments

Page 6 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": 121,
      "userId": 227,
      "targetType": "post",
      "targetId": 69,
      "body": "Crinis beneficium nisi civis necessitatibus delectus. Vorago astrum curriculum tibi amita vehemens deleniti altus torqueo.",
      "isEdited": true,
      "createdAt": "2024-10-17T22:05:18.961Z",
      "updatedAt": "2024-10-28T05:06:32.894Z"
    },
    {
      "id": 122,
      "userId": 131,
      "targetType": "post",
      "targetId": 485,
      "body": "Degusto vergo comparo vilis callide defungo validus cibo conduco. Atque sopor terreo voro vita circumvenio tabgo alius claro spero. Apto tremo strues synagoga censura uter tergeo laudantium demum deputo.",
      "isEdited": false,
      "createdAt": "2025-01-22T07:34:43.389Z",
      "updatedAt": "2025-01-22T07:34:43.389Z"
    },
    {
      "id": 123,
      "userId": 110,
      "targetType": "post",
      "targetId": 470,
      "body": "Culpa arbustum thorax demo aliqua. Triumphus cupiditas cito trepide tepidus atrocitas adulescens aranea conturbo.",
      "isEdited": false,
      "createdAt": "2025-07-18T17:40:38.256Z",
      "updatedAt": "2025-07-18T17:40:38.256Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=6&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=7&limit=24",
    "prev": "/api/v1/comments?page=5&limit=24"
  }
}