example-data.com
Menu
Browse docs and collections

comments

comments

Page 13 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": 289,
      "userId": 36,
      "targetType": "post",
      "targetId": 491,
      "body": "Ago benevolentia cenaculum asporto deprimo. Valde terror civis tubineus porro exercitationem thymum suggero xiphias cimentarius. Harum decens turba stips uter.",
      "isEdited": false,
      "createdAt": "2025-11-30T19:45:58.108Z",
      "updatedAt": "2025-11-30T19:45:58.108Z"
    },
    {
      "id": 290,
      "userId": 200,
      "targetType": "post",
      "targetId": 347,
      "body": "Vivo chirographum perferendis. Labore optio sint degenero accedo.",
      "isEdited": true,
      "createdAt": "2024-10-16T13:33:47.294Z",
      "updatedAt": "2025-04-18T16:49:51.599Z"
    },
    {
      "id": 291,
      "userId": 217,
      "targetType": "post",
      "targetId": 132,
      "body": "Rerum confugo sustineo vorago deripio ascisco. Colo trepide suspendo iste amo agnosco nihil.",
      "isEdited": false,
      "createdAt": "2024-06-08T02:09:36.730Z",
      "updatedAt": "2024-06-08T02:09:36.730Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=13&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=14&limit=24",
    "prev": "/api/v1/comments?page=12&limit=24"
  }
}