example-data.com
Menu
Browse docs and collections

Overview

comments / #1338

Comment #1338

· 11/6/2025

Stips crux suggero aliquid sed theatrum cruciamentum. Crastinus vitium curso averto canto. Vomica beatus sequi demulceo acervus utique absum.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/comments/1338" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/comments/1338"
);
const comment = 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 } from "./types/comments";

const res = await fetch(
  "https://example-data.com/api/v1/comments/1338"
);
const comment = (await res.json()) as Comment;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/comments/1338"
)
comment = res.json()

Response

{
  "id": 1338,
  "userId": 124,
  "targetType": "post",
  "targetId": 415,
  "body": "Stips crux suggero aliquid sed theatrum cruciamentum. Crastinus vitium curso averto canto. Vomica beatus sequi demulceo acervus utique absum.",
  "isEdited": false,
  "createdAt": "2025-11-06T08:16:26.470Z",
  "updatedAt": "2025-11-06T08:16:26.470Z"
}