example-data.com
Menu
Browse docs and collections

comments

comments

Page 49 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": 1153,
      "userId": 47,
      "targetType": "post",
      "targetId": 336,
      "body": "Tui vulgo carmen veniam vilicus reprehenderit bene. Solium adhuc suffragium trucido abutor soleo assumenda credo substantia attollo. Vindico depono laudantium. Teres infit uredo subnecto vilis toties clementia.",
      "isEdited": false,
      "createdAt": "2025-03-29T13:17:14.837Z",
      "updatedAt": "2025-03-29T13:17:14.837Z"
    },
    {
      "id": 1154,
      "userId": 133,
      "targetType": "post",
      "targetId": 443,
      "body": "Cattus alias calculus acceptus calculus consectetur cohibeo vilitas ipsum statua. Terror dapifer vallum suadeo quidem repellat cenaculum. Nam adversus statua iste summa suscipio altus subiungo ambitus cetera.",
      "isEdited": false,
      "createdAt": "2026-02-13T01:45:54.802Z",
      "updatedAt": "2026-02-13T01:45:54.802Z"
    },
    {
      "id": 1155,
      "userId": 34,
      "targetType": "post",
      "targetId": 67,
      "body": "Reprehenderit terreo aranea consequatur. Delego voro bene velit demitto convoco deleniti bardus valde sopor. Cunabula fuga ascisco coniecto terminatio deripio. Eveniet tandem quas dignissimos vis ea.",
      "isEdited": true,
      "createdAt": "2024-09-30T11:35:57.600Z",
      "updatedAt": "2025-04-26T00:11:47.548Z"
    }
  ],
  "meta": {
    "page": 49,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=49&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=50&limit=24",
    "prev": "/api/v1/comments?page=48&limit=24"
  }
}