example-data.com
Menu
Browse docs and collections

comments

comments

Page 16 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": 361,
      "userId": 81,
      "targetType": "post",
      "targetId": 425,
      "body": "Tubineus thema caute vestigium advoco crux contra pecco. Placeat venio arcesso deinde constans thymbra. Totus valeo sursum.",
      "isEdited": false,
      "createdAt": "2024-06-23T05:17:10.080Z",
      "updatedAt": "2024-06-23T05:17:10.080Z"
    },
    {
      "id": 362,
      "userId": 163,
      "targetType": "post",
      "targetId": 390,
      "body": "Absque uter utilis verumtamen arcesso admoveo spes sapiente curatio thema. Colligo acervus quia demum audio fugit sulum velut. Comparo curis corrumpo patrocinor usque spoliatio tollo ullus thalassinus.",
      "isEdited": false,
      "createdAt": "2025-12-14T20:56:00.667Z",
      "updatedAt": "2025-12-14T20:56:00.667Z"
    },
    {
      "id": 363,
      "userId": 130,
      "targetType": "post",
      "targetId": 352,
      "body": "Perferendis alius eum cultellus tabula reprehenderit arguo cogito ventus.",
      "isEdited": false,
      "createdAt": "2025-09-27T09:56:23.299Z",
      "updatedAt": "2025-09-27T09:56:23.299Z"
    }
  ],
  "meta": {
    "page": 16,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=16&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=17&limit=24",
    "prev": "/api/v1/comments?page=15&limit=24"
  }
}