example-data.com
Menu
Browse docs and collections

comments

comments

Page 19 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": 433,
      "userId": 116,
      "targetType": "post",
      "targetId": 56,
      "body": "Atrocitas conqueror et deorsum utrimque amplitudo cilicium cura. Tricesimus utilis coniuratio solum allatus conculco. Sonitus colligo vis tergum. Vulticulus assentator tabella summa comedo vito tam.",
      "isEdited": false,
      "createdAt": "2024-11-05T13:21:42.977Z",
      "updatedAt": "2024-11-05T13:21:42.977Z"
    },
    {
      "id": 434,
      "userId": 95,
      "targetType": "post",
      "targetId": 110,
      "body": "Molestiae combibo bestia dolorum admiratio desparatus. Basium arguo supplanto defetiscor subnecto. Aurum titulus maxime fugiat quibusdam sumptus deleniti defessus quia veritas. Tergiversatio aetas approbo officiis spargo.",
      "isEdited": false,
      "createdAt": "2025-12-28T13:23:16.030Z",
      "updatedAt": "2025-12-28T13:23:16.030Z"
    },
    {
      "id": 435,
      "userId": 46,
      "targetType": "post",
      "targetId": 10,
      "body": "Vapulus vulgaris aggredior terreo aspernatur. Textus tamdiu vereor tui. Aro sperno itaque claustrum blandior vulticulus ambitus coniecto ratione cado.",
      "isEdited": true,
      "createdAt": "2024-12-15T03:11:58.391Z",
      "updatedAt": "2026-01-19T03:18:09.715Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=19&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=20&limit=24",
    "prev": "/api/v1/comments?page=18&limit=24"
  }
}