example-data.com
Menu
Browse docs and collections

comments

comments

Page 57 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": 1345,
      "userId": 164,
      "targetType": "post",
      "targetId": 441,
      "body": "Tendo angelus depono vociferor valetudo vaco. Crapula traho ullus vulgus basium vinum virga suffoco viriliter. Blandior conscendo abeo speciosus. Cubicularis causa tactus voveo.",
      "isEdited": false,
      "createdAt": "2025-12-09T19:13:55.961Z",
      "updatedAt": "2025-12-09T19:13:55.961Z"
    },
    {
      "id": 1346,
      "userId": 247,
      "targetType": "post",
      "targetId": 489,
      "body": "Admitto terra debilito colo valeo. Ultio acquiro comburo synagoga fugiat demonstro calco succedo viscus.",
      "isEdited": false,
      "createdAt": "2026-02-07T13:19:01.666Z",
      "updatedAt": "2026-02-07T13:19:01.666Z"
    },
    {
      "id": 1347,
      "userId": 57,
      "targetType": "post",
      "targetId": 252,
      "body": "Nemo aer ago. Vomica appello tempore audio tracto terreo vetus aequitas tondeo vomer.",
      "isEdited": false,
      "createdAt": "2025-07-12T21:16:35.848Z",
      "updatedAt": "2025-07-12T21:16:35.848Z"
    }
  ],
  "meta": {
    "page": 57,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=57&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=58&limit=24",
    "prev": "/api/v1/comments?page=56&limit=24"
  }
}