example-data.com
Menu
Browse docs and collections

Overview

comments / #901

Comment #901

· 12/10/2025

Thesaurus cribro culpa delibero sodalitas tergiversatio temeritas calco velit. Aiunt audeo statim vita adsum. Coerceo thalassinus ventosus molestiae compello. Cognomen stipes utique facilis clementia aurum carbo ipsa.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 901,
  "userId": 153,
  "targetType": "post",
  "targetId": 474,
  "body": "Thesaurus cribro culpa delibero sodalitas tergiversatio temeritas calco velit. Aiunt audeo statim vita adsum. Coerceo thalassinus ventosus molestiae compello. Cognomen stipes utique facilis clementia aurum carbo ipsa.",
  "isEdited": false,
  "createdAt": "2025-12-10T13:28:23.466Z",
  "updatedAt": "2025-12-10T13:28:23.466Z"
}