example-data.com
Menu
Browse docs and collections

comments

comments

Page 56 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": 1321,
      "userId": 39,
      "targetType": "post",
      "targetId": 277,
      "body": "Adipisci teneo officiis terminatio suscipit. Tabella suspendo vae solutio ascisco abutor. Suadeo auctor thymbra tolero.",
      "isEdited": false,
      "createdAt": "2024-11-30T13:44:57.191Z",
      "updatedAt": "2024-11-30T13:44:57.191Z"
    },
    {
      "id": 1322,
      "userId": 162,
      "targetType": "post",
      "targetId": 399,
      "body": "Peior terreo tum tibi depulso thorax. Surgo beatae contabesco video. Antea vito theologus talus volva argentum sol absum baiulus ventus.",
      "isEdited": false,
      "createdAt": "2025-12-13T17:12:59.856Z",
      "updatedAt": "2025-12-13T17:12:59.856Z"
    },
    {
      "id": 1323,
      "userId": 183,
      "targetType": "post",
      "targetId": 78,
      "body": "Cunctatio terror thesaurus aedificium autem depopulo vulnero collum absque in. Deporto desolo nam creptio paens assentator appello dolore cruciamentum. Valens ambulo amissio sperno caterva allatus brevis tego tibi adduco. Confido crepusculum clementia adsuesco minus tametsi sint sopor cupiditate solio.",
      "isEdited": false,
      "createdAt": "2024-09-23T23:30:30.075Z",
      "updatedAt": "2024-09-23T23:30:30.075Z"
    }
  ],
  "meta": {
    "page": 56,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=56&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=57&limit=24",
    "prev": "/api/v1/comments?page=55&limit=24"
  }
}