example-data.com
Menu
Browse docs and collections

comments

comments

Page 21 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": 481,
      "userId": 62,
      "targetType": "post",
      "targetId": 338,
      "body": "Audentia amo spectaculum assentator aggero statim aveho ante. Valens una pecco tergiversatio.",
      "isEdited": false,
      "createdAt": "2024-11-07T05:38:48.244Z",
      "updatedAt": "2024-11-07T05:38:48.244Z"
    },
    {
      "id": 482,
      "userId": 38,
      "targetType": "post",
      "targetId": 68,
      "body": "Voveo sodalitas eum corpus clarus amet.",
      "isEdited": false,
      "createdAt": "2025-02-08T21:19:35.516Z",
      "updatedAt": "2025-02-08T21:19:35.516Z"
    },
    {
      "id": 483,
      "userId": 42,
      "targetType": "post",
      "targetId": 193,
      "body": "Tergiversatio cum doloribus comitatus administratio aiunt studio triumphus attonbitus ager. Subseco agnitio vicinus barba. Sublime atqui cubo vigilo decet dedecor vestigium comminor compono calculus. Cibo conservo suppellex corrumpo antiquus modi aqua ea una.",
      "isEdited": true,
      "createdAt": "2024-12-19T15:54:33.920Z",
      "updatedAt": "2025-10-19T23:48:11.774Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=21&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=22&limit=24",
    "prev": "/api/v1/comments?page=20&limit=24"
  }
}