example-data.com
Menu
Browse docs and collections

comments

comments

Page 52 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": 1225,
      "userId": 141,
      "targetType": "post",
      "targetId": 28,
      "body": "Defungo constans correptius amo. Aliquam vulgo clementia abeo ventosus circumvenio curatio amor demonstro. Cribro vehemens cruciamentum sto consequuntur thorax terebro umerus. Cernuus sordeo demonstro usitas.",
      "isEdited": false,
      "createdAt": "2025-11-26T03:20:11.333Z",
      "updatedAt": "2025-11-26T03:20:11.333Z"
    },
    {
      "id": 1226,
      "userId": 48,
      "targetType": "post",
      "targetId": 271,
      "body": "Quisquam patrocinor illo reiciendis patria celebrer numquam accusamus.",
      "isEdited": false,
      "createdAt": "2024-07-14T15:41:54.367Z",
      "updatedAt": "2024-07-14T15:41:54.367Z"
    },
    {
      "id": 1227,
      "userId": 245,
      "targetType": "post",
      "targetId": 210,
      "body": "Amo agnitio defessus aeneus corrupti volup. Comedo apud tolero cohibeo adhuc vigilo adinventitias suggero. Combibo repellat approbo pecto caveo excepturi solum cuius. Suadeo adhuc teres volup cerno pecto blanditiis verbera cogito conculco.",
      "isEdited": false,
      "createdAt": "2024-08-18T07:34:47.270Z",
      "updatedAt": "2024-08-18T07:34:47.270Z"
    }
  ],
  "meta": {
    "page": 52,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=52&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=53&limit=24",
    "prev": "/api/v1/comments?page=51&limit=24"
  }
}