example-data.com
Menu
Browse docs and collections

comments

comments

Page 51 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": 1201,
      "userId": 44,
      "targetType": "post",
      "targetId": 167,
      "body": "Voluptates tero bellum decet vigor eius comptus claudeo veritatis acsi. Tamdiu sumo congregatio decet ancilla altus demum celo teres.",
      "isEdited": true,
      "createdAt": "2025-11-13T00:34:23.496Z",
      "updatedAt": "2025-12-04T04:43:56.478Z"
    },
    {
      "id": 1202,
      "userId": 48,
      "targetType": "post",
      "targetId": 492,
      "body": "Considero vitiosus voco cubitum contigo fugit. Conor quibusdam aptus uredo vado strues callide celo undique alias.",
      "isEdited": false,
      "createdAt": "2025-12-02T10:56:19.820Z",
      "updatedAt": "2025-12-02T10:56:19.820Z"
    },
    {
      "id": 1203,
      "userId": 102,
      "targetType": "post",
      "targetId": 329,
      "body": "Rem color volup comminor.",
      "isEdited": false,
      "createdAt": "2025-08-17T17:45:42.802Z",
      "updatedAt": "2025-08-17T17:45:42.802Z"
    }
  ],
  "meta": {
    "page": 51,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=51&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=52&limit=24",
    "prev": "/api/v1/comments?page=50&limit=24"
  }
}