example-data.com
Menu
Browse docs and collections

Overview

comments / #624

Comment #624

· 4/19/2025

Volubilis cedo stips consequuntur acsi. Quos taedium anser error vesica. Vulariter repellendus suus derideo collum clamo quidem caput degusto adeo. Voco carbo currus vivo cito.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 624,
  "userId": 85,
  "targetType": "post",
  "targetId": 67,
  "body": "Volubilis cedo stips consequuntur acsi. Quos taedium anser error vesica. Vulariter repellendus suus derideo collum clamo quidem caput degusto adeo. Voco carbo currus vivo cito.",
  "isEdited": false,
  "createdAt": "2025-04-19T20:24:29.381Z",
  "updatedAt": "2025-04-19T20:24:29.381Z"
}