example-data.com
Menu
Browse docs and collections

comments

comments

Page 34 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": 793,
      "userId": 98,
      "targetType": "post",
      "targetId": 374,
      "body": "Adiuvo stabilis summisse vapulus deludo aggredior ultra. Quas veniam tollo valeo deripio advenio quae. Benigne tenetur corpus defero mollitia iusto cometes argumentum canis theologus. Conspergo adsuesco curis aetas volup.",
      "isEdited": false,
      "createdAt": "2025-03-10T20:24:05.094Z",
      "updatedAt": "2025-03-10T20:24:05.094Z"
    },
    {
      "id": 794,
      "userId": 144,
      "targetType": "post",
      "targetId": 86,
      "body": "Vulgo vinculum cavus capio strues spoliatio usus tricesimus alii.",
      "isEdited": false,
      "createdAt": "2025-08-10T21:12:28.162Z",
      "updatedAt": "2025-08-10T21:12:28.162Z"
    },
    {
      "id": 795,
      "userId": 58,
      "targetType": "post",
      "targetId": 116,
      "body": "Bonus triduana altus armarium solum brevis tripudio ubi urbs. Audentia assumenda convoco.",
      "isEdited": false,
      "createdAt": "2026-04-17T04:55:27.792Z",
      "updatedAt": "2026-04-17T04:55:27.792Z"
    }
  ],
  "meta": {
    "page": 34,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=34&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=35&limit=24",
    "prev": "/api/v1/comments?page=33&limit=24"
  }
}