example-data.com
Menu
Browse docs and collections

comments

comments

Page 31 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": 721,
      "userId": 50,
      "targetType": "post",
      "targetId": 134,
      "body": "Articulus stipes arbor turba atavus curtus. Excepturi ultio solio. Reprehenderit cruentus solus amoveo carcer aptus arbor. Terminatio tendo debitis amplexus vito arca spectaculum cornu delibero.",
      "isEdited": true,
      "createdAt": "2025-10-30T13:30:57.449Z",
      "updatedAt": "2026-05-09T03:12:47.586Z"
    },
    {
      "id": 722,
      "userId": 11,
      "targetType": "post",
      "targetId": 274,
      "body": "Absconditus alo quam thema color ventus coruscus truculenter curtus unus.",
      "isEdited": false,
      "createdAt": "2025-09-04T22:52:39.858Z",
      "updatedAt": "2025-09-04T22:52:39.858Z"
    },
    {
      "id": 723,
      "userId": 143,
      "targetType": "post",
      "targetId": 210,
      "body": "Argumentum brevis substantia antiquus turba harum condico. Debilito sollicito urbs deporto cohors maxime beneficium vox conqueror.",
      "isEdited": false,
      "createdAt": "2025-11-25T14:53:21.443Z",
      "updatedAt": "2025-11-25T14:53:21.443Z"
    }
  ],
  "meta": {
    "page": 31,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=31&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=32&limit=24",
    "prev": "/api/v1/comments?page=30&limit=24"
  }
}