example-data.com
Menu
Browse docs and collections

comments

comments

Page 53 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": 1249,
      "userId": 26,
      "targetType": "post",
      "targetId": 482,
      "body": "Strenuus doloribus antea. Assentator triduana desolo sperno succedo. Sumptus vivo vicissitudo coepi ambulo suffragium debeo aequitas claro sub. Minima armarium aegrus ambulo tam tabgo audeo.",
      "isEdited": false,
      "createdAt": "2025-02-05T12:26:22.932Z",
      "updatedAt": "2025-02-05T12:26:22.932Z"
    },
    {
      "id": 1250,
      "userId": 153,
      "targetType": "post",
      "targetId": 353,
      "body": "Error consectetur temperantia. Totam suggero ipsum placeat corona distinctio.",
      "isEdited": false,
      "createdAt": "2026-02-21T16:11:11.902Z",
      "updatedAt": "2026-02-21T16:11:11.902Z"
    },
    {
      "id": 1251,
      "userId": 102,
      "targetType": "post",
      "targetId": 459,
      "body": "Cur vulpes tego volubilis denego clibanus pariatur damno possimus.",
      "isEdited": false,
      "createdAt": "2025-12-28T18:59:54.174Z",
      "updatedAt": "2025-12-28T18:59:54.174Z"
    }
  ],
  "meta": {
    "page": 53,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=53&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=54&limit=24",
    "prev": "/api/v1/comments?page=52&limit=24"
  }
}