example-data.com
Menu
Browse docs and collections

comments

comments

Page 41 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": 961,
      "userId": 136,
      "targetType": "post",
      "targetId": 499,
      "body": "Turpis vicinus cubicularis pecus sumptus voro iste placeat creptio vulgivagus.",
      "isEdited": true,
      "createdAt": "2025-06-05T22:29:35.918Z",
      "updatedAt": "2025-12-01T01:26:02.372Z"
    },
    {
      "id": 962,
      "userId": 129,
      "targetType": "post",
      "targetId": 207,
      "body": "Peccatus utor assumenda virga tendo voveo denique.",
      "isEdited": false,
      "createdAt": "2025-11-18T09:25:41.035Z",
      "updatedAt": "2025-11-18T09:25:41.035Z"
    },
    {
      "id": 963,
      "userId": 153,
      "targetType": "post",
      "targetId": 272,
      "body": "Capillus rerum textilis. Conculco careo usque amitto aegrus conventus defluo caute. Constans patrocinor arca decens debeo est speculum stella.",
      "isEdited": false,
      "createdAt": "2024-09-24T07:37:44.798Z",
      "updatedAt": "2024-09-24T07:37:44.798Z"
    }
  ],
  "meta": {
    "page": 41,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=41&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=42&limit=24",
    "prev": "/api/v1/comments?page=40&limit=24"
  }
}