example-data.com
Menu
Browse docs and collections

comments

comments

Page 3 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": 49,
      "userId": 148,
      "targetType": "post",
      "targetId": 127,
      "body": "Adversus bellum tepidus tego curso quasi beatus terga. Coadunatio atrox vaco consectetur deprecator abduco terminatio supra ipsa. Atrox succurro delego velociter umquam antea.",
      "isEdited": false,
      "createdAt": "2025-06-11T08:56:18.792Z",
      "updatedAt": "2025-06-11T08:56:18.792Z"
    },
    {
      "id": 50,
      "userId": 46,
      "targetType": "post",
      "targetId": 34,
      "body": "Certe arma temeritas ancilla. Universe magni vos et curatio corporis.",
      "isEdited": false,
      "createdAt": "2024-12-23T15:21:48.009Z",
      "updatedAt": "2024-12-23T15:21:48.009Z"
    },
    {
      "id": 51,
      "userId": 109,
      "targetType": "post",
      "targetId": 146,
      "body": "Correptius voro acer atqui colligo. Omnis deripio socius ducimus vapulus. Torqueo cuppedia pectus spargo maxime. Summisse cavus quibusdam libero modi ascit error comptus tabernus.",
      "isEdited": true,
      "createdAt": "2025-03-20T04:30:56.243Z",
      "updatedAt": "2025-09-25T16:57:31.634Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=3&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=4&limit=24",
    "prev": "/api/v1/comments?page=2&limit=24"
  }
}