example-data.com
Menu
Browse docs and collections

comments

comments

Page 2 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": 25,
      "userId": 53,
      "targetType": "post",
      "targetId": 472,
      "body": "Stips varietas desipio auditor dicta subito capitulus decerno taedium veritatis. Damnatio tui eius video astrum demonstro speciosus pauper vilitas. Tempore teneo cauda collum ager suppono.",
      "isEdited": false,
      "createdAt": "2026-02-19T08:24:48.734Z",
      "updatedAt": "2026-02-19T08:24:48.734Z"
    },
    {
      "id": 26,
      "userId": 212,
      "targetType": "post",
      "targetId": 123,
      "body": "Arguo vereor comburo asporto baiulus undique sapiente commodo aperio.",
      "isEdited": false,
      "createdAt": "2024-07-23T05:34:31.064Z",
      "updatedAt": "2024-07-23T05:34:31.064Z"
    },
    {
      "id": 27,
      "userId": 5,
      "targetType": "post",
      "targetId": 276,
      "body": "Delibero atrocitas synagoga brevis magni. Credo ciminatio thalassinus defluo ascit in arx consuasor surgo. Traho cursim voco commodi vulnus vesica numquam admiratio tutamen. Ex tenus sed appositus.",
      "isEdited": false,
      "createdAt": "2024-09-23T23:46:34.152Z",
      "updatedAt": "2024-09-23T23:46:34.152Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=2&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=3&limit=24",
    "prev": "/api/v1/comments?page=1&limit=24"
  }
}