example-data.com
Menu
Browse docs and collections

Overview

comments / #387

Comment #387

· 10/24/2025

Canto ager nobis vorago thesis dedecor spes atavus. Triumphus curia valeo conventus. Tego amoveo umquam terebro audacia capio apto tactus crinis thema.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 387,
  "userId": 33,
  "targetType": "post",
  "targetId": 327,
  "body": "Canto ager nobis vorago thesis dedecor spes atavus. Triumphus curia valeo conventus. Tego amoveo umquam terebro audacia capio apto tactus crinis thema.",
  "isEdited": false,
  "createdAt": "2025-10-24T23:36:29.131Z",
  "updatedAt": "2025-10-24T23:36:29.131Z"
}