example-data.com
Menu
Browse docs and collections

comments

comments

Page 44 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": 1033,
      "userId": 13,
      "targetType": "post",
      "targetId": 67,
      "body": "Toties aperiam et corrupti assumenda. Cribro vita artificiose commodo adiuvo quae demens quia. Doloribus clarus coniecto vel ultio cenaculum.",
      "isEdited": false,
      "createdAt": "2024-09-10T17:36:31.619Z",
      "updatedAt": "2024-09-10T17:36:31.619Z"
    },
    {
      "id": 1034,
      "userId": 179,
      "targetType": "post",
      "targetId": 152,
      "body": "Calamitas creber tergo curvo. Cibo corporis argentum attonbitus cur demergo voluptas delinquo. Illo totam vulgivagus delego curvo aspicio fugit auctor.",
      "isEdited": false,
      "createdAt": "2024-11-10T01:36:10.056Z",
      "updatedAt": "2024-11-10T01:36:10.056Z"
    },
    {
      "id": 1035,
      "userId": 177,
      "targetType": "post",
      "targetId": 236,
      "body": "Tristis carpo charisma earum arceo vindico. Commodo currus aestas. Una copia crastinus tyrannus. Antiquus velociter incidunt totam adstringo summopere deleo quisquam.",
      "isEdited": true,
      "createdAt": "2025-03-12T16:28:59.920Z",
      "updatedAt": "2025-09-13T11:30:45.592Z"
    }
  ],
  "meta": {
    "page": 44,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=44&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=45&limit=24",
    "prev": "/api/v1/comments?page=43&limit=24"
  }
}