example-data.com
Menu
Browse docs and collections

comments

comments

Page 27 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": 625,
      "userId": 128,
      "targetType": "post",
      "targetId": 426,
      "body": "Alveus cattus modi sublime velociter studio defendo tibi atqui thema. Quaerat summopere corpus terreo cavus tamquam tempore alius vaco molestias. Sto conitor spes viridis optio aggero claustrum campana vestrum caste.",
      "isEdited": false,
      "createdAt": "2025-03-20T09:54:05.618Z",
      "updatedAt": "2025-03-20T09:54:05.618Z"
    },
    {
      "id": 626,
      "userId": 183,
      "targetType": "post",
      "targetId": 60,
      "body": "Ex communis pauci tertius. Crux substantia urbs tripudio condico ipsum atque. Vigilo tergum dedecor studio tempora antiquus terreo coma deludo.",
      "isEdited": true,
      "createdAt": "2024-05-22T11:08:59.087Z",
      "updatedAt": "2025-12-02T00:57:05.064Z"
    },
    {
      "id": 627,
      "userId": 235,
      "targetType": "post",
      "targetId": 367,
      "body": "Torqueo ipsam asporto centum adipiscor vesper utrimque. Conturbo velum valde brevis vulgo comburo. Vinum carus annus facere blanditiis auctus. Ascit uter rerum casus textus confido carbo adversus creber mollitia.",
      "isEdited": false,
      "createdAt": "2024-11-03T12:09:41.741Z",
      "updatedAt": "2024-11-03T12:09:41.741Z"
    }
  ],
  "meta": {
    "page": 27,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=27&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=28&limit=24",
    "prev": "/api/v1/comments?page=26&limit=24"
  }
}