example-data.com
Menu
Browse docs and collections

comments

comments

Page 46 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": 1081,
      "userId": 183,
      "targetType": "post",
      "targetId": 420,
      "body": "Demo voro cogito perspiciatis torrens. Decimus deduco suspendo addo balbus decens adflicto ait.",
      "isEdited": false,
      "createdAt": "2026-02-21T07:53:29.022Z",
      "updatedAt": "2026-02-21T07:53:29.022Z"
    },
    {
      "id": 1082,
      "userId": 170,
      "targetType": "post",
      "targetId": 306,
      "body": "Facilis apto tantillus. Cupiditas laudantium aegre in virga. Utpote patior degero cribro sodalitas campana commodo.",
      "isEdited": false,
      "createdAt": "2024-07-26T08:09:39.608Z",
      "updatedAt": "2024-07-26T08:09:39.608Z"
    },
    {
      "id": 1083,
      "userId": 117,
      "targetType": "post",
      "targetId": 30,
      "body": "Vigor cohors quia speciosus audio vetus cultellus tonsor veritatis. Repellat cohaero deleo basium. Ab tremo sumptus calamitas conventus ulciscor abutor consequuntur taedium crinis. Arto odit perspiciatis villa cunae vos velut.",
      "isEdited": true,
      "createdAt": "2026-02-11T05:45:45.947Z",
      "updatedAt": "2026-03-16T12:08:35.295Z"
    }
  ],
  "meta": {
    "page": 46,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=46&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=47&limit=24",
    "prev": "/api/v1/comments?page=45&limit=24"
  }
}