example-data.com
Menu
Browse docs and collections

comments

comments

Page 40 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": 937,
      "userId": 215,
      "targetType": "post",
      "targetId": 285,
      "body": "Tertius nobis verbum cultura victus accendo subito vilitas. Adipisci stabilis amplexus adficio utique.",
      "isEdited": false,
      "createdAt": "2026-02-16T03:21:30.503Z",
      "updatedAt": "2026-02-16T03:21:30.503Z"
    },
    {
      "id": 938,
      "userId": 160,
      "targetType": "post",
      "targetId": 335,
      "body": "Curiositas basium aestivus unde ambitus utroque denuo.",
      "isEdited": false,
      "createdAt": "2025-09-28T13:26:05.084Z",
      "updatedAt": "2025-09-28T13:26:05.084Z"
    },
    {
      "id": 939,
      "userId": 163,
      "targetType": "post",
      "targetId": 45,
      "body": "Vitae vesco thymbra architecto valeo demitto tenax. Apud chirographum deduco colligo debitis caecus. Cometes coruscus error utrum asper sollicito apparatus corrupti. Summa vicinus valeo accedo denego cena sulum minima eius.",
      "isEdited": false,
      "createdAt": "2024-12-29T08:14:54.304Z",
      "updatedAt": "2024-12-29T08:14:54.304Z"
    }
  ],
  "meta": {
    "page": 40,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=40&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=41&limit=24",
    "prev": "/api/v1/comments?page=39&limit=24"
  }
}