example-data.com
Menu
Browse docs and collections

Overview

comments / #80

Comment #80

· 8/1/2025

Corpus tempus adversus. Tot tenax nostrum theca. Sustineo auditor animus sortitus teres amicitia urbs. Depulso dicta dolorem tonsor acerbitas labore arcesso modi.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 80,
  "userId": 242,
  "targetType": "post",
  "targetId": 398,
  "body": "Corpus tempus adversus. Tot tenax nostrum theca. Sustineo auditor animus sortitus teres amicitia urbs. Depulso dicta dolorem tonsor acerbitas labore arcesso modi.",
  "isEdited": true,
  "createdAt": "2025-08-01T09:52:58.423Z",
  "updatedAt": "2025-10-17T18:04:31.801Z"
}