example-data.com
Menu
Browse docs and collections

comments

comments

Page 17 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": 385,
      "userId": 75,
      "targetType": "post",
      "targetId": 299,
      "body": "Traho aperiam vilitas tametsi delectatio dolorem acidus. Centum commemoro veniam viduo turpis.",
      "isEdited": false,
      "createdAt": "2026-03-19T18:00:12.148Z",
      "updatedAt": "2026-03-19T18:00:12.148Z"
    },
    {
      "id": 386,
      "userId": 76,
      "targetType": "post",
      "targetId": 472,
      "body": "Arcus comprehendo tabula aveho peccatus callide clam necessitatibus vicissitudo concido. Certe cum testimonium arguo consuasor sodalitas ducimus expedita advoco. Thesis assumenda odit atavus culpa thesaurus esse. Tenax curso solium tactus colligo et.",
      "isEdited": false,
      "createdAt": "2026-03-31T03:08:15.628Z",
      "updatedAt": "2026-03-31T03:08:15.628Z"
    },
    {
      "id": 387,
      "userId": 33,
      "targetType": "post",
      "targetId": 327,
      "body": "Canto ager nobis vorago thesis dedecor spes atavus. Triumphus curia valeo conventus. Tego amoveo umquam terebro audacia capio apto tactus crinis thema.",
      "isEdited": false,
      "createdAt": "2025-10-24T23:36:29.131Z",
      "updatedAt": "2025-10-24T23:36:29.131Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=17&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=18&limit=24",
    "prev": "/api/v1/comments?page=16&limit=24"
  }
}