example-data.com
Menu
Browse docs and collections

comments

comments

Page 9 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": 193,
      "userId": 214,
      "targetType": "post",
      "targetId": 88,
      "body": "Sponte deripio balbus umquam deprimo. Vestrum victus currus ciminatio tabesco adopto cunctatio eveniet vel. Audax amissio desidero absens campana dedico sui. Confido tonsor demo debeo carpo vivo.",
      "isEdited": false,
      "createdAt": "2024-08-14T17:14:20.548Z",
      "updatedAt": "2024-08-14T17:14:20.548Z"
    },
    {
      "id": 194,
      "userId": 184,
      "targetType": "post",
      "targetId": 28,
      "body": "Tracto ipsam corrumpo eveniet crustulum auditor comes thymbra. Corrupti vis mollitia cohaero aufero. Omnis virga advenio numquam.",
      "isEdited": false,
      "createdAt": "2025-12-22T22:55:57.421Z",
      "updatedAt": "2025-12-22T22:55:57.421Z"
    },
    {
      "id": 195,
      "userId": 78,
      "targetType": "post",
      "targetId": 163,
      "body": "Alius arma bos dolor alveus demitto socius acerbitas culpo. Uberrime abundans torrens.",
      "isEdited": false,
      "createdAt": "2025-12-23T15:32:05.528Z",
      "updatedAt": "2025-12-23T15:32:05.528Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=9&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=10&limit=24",
    "prev": "/api/v1/comments?page=8&limit=24"
  }
}