example-data.com
Menu
Browse docs and collections

comments

comments

Page 4 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": 73,
      "userId": 69,
      "targetType": "post",
      "targetId": 201,
      "body": "Absconditus validus studio aperte taedium quod advenio. Aequus quibusdam nobis communis depono crustulum comptus teres claustrum officiis.",
      "isEdited": false,
      "createdAt": "2025-07-06T13:59:41.135Z",
      "updatedAt": "2025-07-06T13:59:41.135Z"
    },
    {
      "id": 74,
      "userId": 215,
      "targetType": "post",
      "targetId": 371,
      "body": "Aeneus sint adaugeo.",
      "isEdited": false,
      "createdAt": "2025-06-11T00:33:28.441Z",
      "updatedAt": "2025-06-11T00:33:28.441Z"
    },
    {
      "id": 75,
      "userId": 176,
      "targetType": "post",
      "targetId": 174,
      "body": "Tam delibero sit caecus vesper copiose suffragium desino annus.",
      "isEdited": false,
      "createdAt": "2026-02-16T12:21:03.731Z",
      "updatedAt": "2026-02-16T12:21:03.731Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=4&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=5&limit=24",
    "prev": "/api/v1/comments?page=3&limit=24"
  }
}