example-data.com
Menu
Browse docs and collections

comments

comments

Page 24 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": 553,
      "userId": 65,
      "targetType": "post",
      "targetId": 178,
      "body": "Clementia paulatim acquiro tersus adulescens beneficium error vitiosus tui angulus. Provident blandior trucido uberrime acer recusandae sono uxor. Sono spoliatio fugit curatio atavus tametsi fugiat quibusdam trepide. Viriliter valetudo tracto ascisco desino totidem cumque ademptio ustulo patruus.",
      "isEdited": false,
      "createdAt": "2025-06-09T03:42:58.036Z",
      "updatedAt": "2025-06-09T03:42:58.036Z"
    },
    {
      "id": 554,
      "userId": 200,
      "targetType": "post",
      "targetId": 10,
      "body": "Attollo tabula volubilis termes paulatim bis cui caries molestias vomica. Omnis tergum excepturi acidus delego aro attero caritas. Repellendus verbum optio paulatim.",
      "isEdited": false,
      "createdAt": "2026-02-01T12:28:42.857Z",
      "updatedAt": "2026-02-01T12:28:42.857Z"
    },
    {
      "id": 555,
      "userId": 171,
      "targetType": "post",
      "targetId": 192,
      "body": "Vitae debitis tergeo torrens dapifer eius viridis deludo.",
      "isEdited": false,
      "createdAt": "2025-11-15T12:25:14.768Z",
      "updatedAt": "2025-11-15T12:25:14.768Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=24&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=25&limit=24",
    "prev": "/api/v1/comments?page=23&limit=24"
  }
}