example-data.com
Menu
Browse docs and collections

Overview

comments / #542

Comment #542

· 1/17/2026

Vivo tener depromo crux laboriosam celo vesco. Volup ustilo cometes. Quos cauda tutamen demoror video armarium cubo atrox video. Apparatus comes commodi provident sit.

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/comments/542"
);
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/542"
);
const comment = (await res.json()) as Comment;

Python example

import requests

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

Response

{
  "id": 542,
  "userId": 40,
  "targetType": "post",
  "targetId": 335,
  "body": "Vivo tener depromo crux laboriosam celo vesco. Volup ustilo cometes. Quos cauda tutamen demoror video armarium cubo atrox video. Apparatus comes commodi provident sit.",
  "isEdited": false,
  "createdAt": "2026-01-17T21:06:13.217Z",
  "updatedAt": "2026-01-17T21:06:13.217Z"
}