example-data.com
Menu
Browse docs and collections

comments

comments

Page 8 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": 169,
      "userId": 187,
      "targetType": "post",
      "targetId": 165,
      "body": "Avaritia conatus cubitum cornu. Spoliatio avarus quisquam utrum acerbitas quia undique cervus dedico vulariter. Sulum aveho traho angustus similique debilito derelinquo optio.",
      "isEdited": false,
      "createdAt": "2024-12-07T00:50:28.165Z",
      "updatedAt": "2024-12-07T00:50:28.165Z"
    },
    {
      "id": 170,
      "userId": 40,
      "targetType": "post",
      "targetId": 59,
      "body": "Avarus claudeo angustus delinquo vespillo. Ulterius talus barba ciminatio arcus barba urbanus beatae. Depopulo baiulus capillus magnam sortitus.",
      "isEdited": true,
      "createdAt": "2025-11-23T14:10:45.801Z",
      "updatedAt": "2026-02-23T07:28:59.542Z"
    },
    {
      "id": 171,
      "userId": 83,
      "targetType": "post",
      "targetId": 49,
      "body": "Trepide video voluntarius nam tego cibo arcus usus abduco sulum. Demens iste baiulus sapiente tabernus quasi cunctatio condico laboriosam.",
      "isEdited": false,
      "createdAt": "2025-05-20T03:58:56.370Z",
      "updatedAt": "2025-05-20T03:58:56.370Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=8&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=9&limit=24",
    "prev": "/api/v1/comments?page=7&limit=24"
  }
}