example-data.com
Menu
Browse docs and collections

Overview

comments / #642

Comment #642

· 8/7/2025

Fugit ea aestivus utique confero demo abstergo comitatus subnecto. Comitatus vulnero mollitia clarus cedo terra avaritia.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 642,
  "userId": 82,
  "targetType": "post",
  "targetId": 125,
  "body": "Fugit ea aestivus utique confero demo abstergo comitatus subnecto. Comitatus vulnero mollitia clarus cedo terra avaritia.",
  "isEdited": false,
  "createdAt": "2025-08-07T05:41:47.151Z",
  "updatedAt": "2025-08-07T05:41:47.151Z"
}