example-data.com
Menu
Browse docs and collections

Overview

comments / #654

Comment #654

· 12/22/2024

Supra subnecto cursim cohaero temporibus ancilla utpote. Vitiosus acervus tergiversatio. Carmen contabesco collum depulso comburo tempore. Armarium vehemens sub angustus succurro commodi desolo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 654,
  "userId": 43,
  "targetType": "post",
  "targetId": 340,
  "body": "Supra subnecto cursim cohaero temporibus ancilla utpote. Vitiosus acervus tergiversatio. Carmen contabesco collum depulso comburo tempore. Armarium vehemens sub angustus succurro commodi desolo.",
  "isEdited": true,
  "createdAt": "2024-12-22T02:10:11.552Z",
  "updatedAt": "2025-05-20T03:02:33.573Z"
}