example-data.com
Menu
Browse docs and collections

comments

comments

Page 59 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": 1393,
      "userId": 217,
      "targetType": "post",
      "targetId": 478,
      "body": "Possimus altus tenetur repudiandae acceptus solutio.",
      "isEdited": false,
      "createdAt": "2024-10-08T06:48:07.006Z",
      "updatedAt": "2024-10-08T06:48:07.006Z"
    },
    {
      "id": 1394,
      "userId": 241,
      "targetType": "post",
      "targetId": 14,
      "body": "Perferendis aggero tardus vindico quis capitulus curo debitis. Maiores vespillo ducimus quam congregatio summisse coniuratio.",
      "isEdited": true,
      "createdAt": "2026-04-11T15:13:02.863Z",
      "updatedAt": "2026-05-02T04:17:08.286Z"
    },
    {
      "id": 1395,
      "userId": 24,
      "targetType": "post",
      "targetId": 93,
      "body": "Thesaurus turpis sortitus pecus speciosus bellicus conturbo.",
      "isEdited": false,
      "createdAt": "2026-03-07T21:53:08.091Z",
      "updatedAt": "2026-03-07T21:53:08.091Z"
    }
  ],
  "meta": {
    "page": 59,
    "limit": 24,
    "total": 1500,
    "totalPages": 63
  },
  "links": {
    "self": "/api/v1/comments?page=59&limit=24",
    "first": "/api/v1/comments?page=1&limit=24",
    "last": "/api/v1/comments?page=63&limit=24",
    "next": "/api/v1/comments?page=60&limit=24",
    "prev": "/api/v1/comments?page=58&limit=24"
  }
}