example-data.com
Menu
Browse docs and collections

comments

comments

Page 15 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": 337,
      "userId": 48,
      "targetType": "post",
      "targetId": 166,
      "body": "Apparatus comparo vulgo verus caelestis administratio suscipio coma.",
      "isEdited": false,
      "createdAt": "2025-10-02T00:48:04.755Z",
      "updatedAt": "2025-10-02T00:48:04.755Z"
    },
    {
      "id": 338,
      "userId": 44,
      "targetType": "post",
      "targetId": 415,
      "body": "Depereo casus agnosco desipio cupio una tres.",
      "isEdited": false,
      "createdAt": "2024-11-28T15:18:29.834Z",
      "updatedAt": "2024-11-28T15:18:29.834Z"
    },
    {
      "id": 339,
      "userId": 210,
      "targetType": "post",
      "targetId": 174,
      "body": "Itaque trado vulnus celebrer colligo candidus verbum venio adnuo tergiversatio.",
      "isEdited": false,
      "createdAt": "2025-10-27T06:13:20.864Z",
      "updatedAt": "2025-10-27T06:13:20.864Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=15&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=16&limit=24",
    "prev": "/api/v1/comments?page=14&limit=24"
  }
}