example-data.com
Menu
Browse docs and collections

comments

comments

Page 23 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": 529,
      "userId": 27,
      "targetType": "post",
      "targetId": 152,
      "body": "Super tribuo cursim calco cum subnecto sit facere confero celer.",
      "isEdited": false,
      "createdAt": "2025-01-28T11:35:20.770Z",
      "updatedAt": "2025-01-28T11:35:20.770Z"
    },
    {
      "id": 530,
      "userId": 217,
      "targetType": "post",
      "targetId": 310,
      "body": "Censura pecco earum temporibus torrens tui dedico termes theatrum. Copia volo et cenaculum repudiandae approbo cubicularis quia vesco tyrannus. Debilito thymum viriliter trado similique. Uredo vaco aegrotatio super ipsam.",
      "isEdited": false,
      "createdAt": "2025-09-06T05:53:03.187Z",
      "updatedAt": "2025-09-06T05:53:03.187Z"
    },
    {
      "id": 531,
      "userId": 150,
      "targetType": "post",
      "targetId": 459,
      "body": "Turpis pauper defaeco aegre. Strenuus accommodo taceo cresco. Torrens tamisium cito curto cur cubicularis ulterius causa sint. Verbum ullus amet talus conforto iusto turba sui.",
      "isEdited": false,
      "createdAt": "2025-09-12T12:12:20.012Z",
      "updatedAt": "2025-09-12T12:12:20.012Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=23&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=24&limit=24",
    "prev": "/api/v1/comments?page=22&limit=24"
  }
}