example-data.com
Menu
Browse docs and collections

comments

comments

Page 32 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": 745,
      "userId": 84,
      "targetType": "post",
      "targetId": 204,
      "body": "Annus torrens versus iusto acerbitas. Dedico stillicidium sufficio acidus. Sequi voluptates vicissitudo cado inflammatio quidem crudelis asperiores. Vetus callide antea suppono ademptio collum viridis.",
      "isEdited": false,
      "createdAt": "2025-04-19T16:21:34.875Z",
      "updatedAt": "2025-04-19T16:21:34.875Z"
    },
    {
      "id": 746,
      "userId": 102,
      "targetType": "post",
      "targetId": 155,
      "body": "Surculus consequuntur calamitas theca demulceo vulgivagus crur. Arma deputo argentum tamdiu cibo absque tui. Atqui eligendi tubineus toties. Vox ubi tergo adulescens constans ascit velum attonbitus.",
      "isEdited": false,
      "createdAt": "2024-08-13T07:09:18.143Z",
      "updatedAt": "2024-08-13T07:09:18.143Z"
    },
    {
      "id": 747,
      "userId": 63,
      "targetType": "post",
      "targetId": 416,
      "body": "Consequuntur vigor soleo eum non tibi suadeo deprimo adfero.",
      "isEdited": false,
      "createdAt": "2025-08-23T08:42:15.004Z",
      "updatedAt": "2025-08-23T08:42:15.004Z"
    }
  ],
  "meta": {
    "page": 32,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=32&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=33&limit=24",
    "prev": "/api/v1/comments?page=31&limit=24"
  }
}