example-data.com
Menu
Browse docs and collections

comments

comments

Page 38 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": 889,
      "userId": 194,
      "targetType": "post",
      "targetId": 173,
      "body": "Aqua voluptatem cado cornu uter numquam doloribus adopto. Vulgus alius vespillo. Vesco abduco argumentum arcus abeo eveniet. Cilicium aegre admiratio.",
      "isEdited": false,
      "createdAt": "2024-06-29T21:20:13.051Z",
      "updatedAt": "2024-06-29T21:20:13.051Z"
    },
    {
      "id": 890,
      "userId": 70,
      "targetType": "post",
      "targetId": 199,
      "body": "Trepide defluo adopto.",
      "isEdited": false,
      "createdAt": "2025-03-14T14:13:44.149Z",
      "updatedAt": "2025-03-14T14:13:44.149Z"
    },
    {
      "id": 891,
      "userId": 146,
      "targetType": "post",
      "targetId": 254,
      "body": "Claudeo textilis similique verus cinis carcer dolorum. Benigne tunc patior amplitudo addo somnus tam. Cinis dedecor copia anser. Tero abeo denego tutis aegrotatio spero sollicito autus.",
      "isEdited": false,
      "createdAt": "2026-01-25T04:41:43.851Z",
      "updatedAt": "2026-01-25T04:41:43.851Z"
    }
  ],
  "meta": {
    "page": 38,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=38&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=39&limit=24",
    "prev": "/api/v1/comments?page=37&limit=24"
  }
}