example-data.com
Menu
Browse docs and collections

Overview

comments / #1316

Comment #1316

· 12/30/2025

Turba audeo triumphus utique. Compono cruentus terminatio et capto accendo aer autem desino. Crepusculum avarus vester aptus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1316,
  "userId": 149,
  "targetType": "post",
  "targetId": 8,
  "body": "Turba audeo triumphus utique. Compono cruentus terminatio et capto accendo aer autem desino. Crepusculum avarus vester aptus.",
  "isEdited": false,
  "createdAt": "2025-12-30T16:31:23.481Z",
  "updatedAt": "2025-12-30T16:31:23.481Z"
}