example-data.com
Menu
Browse docs and collections

Overview

comments / #572

Comment #572

· 4/20/2025

Adopto viscus caelestis aperte turbo vae. Trepide attollo cognomen dapifer cavus animi sopor. Patruus vix impedit minus somniculosus depereo distinctio demoror. Casus ulterius voluntarius.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 572,
  "userId": 171,
  "targetType": "post",
  "targetId": 392,
  "body": "Adopto viscus caelestis aperte turbo vae. Trepide attollo cognomen dapifer cavus animi sopor. Patruus vix impedit minus somniculosus depereo distinctio demoror. Casus ulterius voluntarius.",
  "isEdited": false,
  "createdAt": "2025-04-20T20:02:13.040Z",
  "updatedAt": "2025-04-20T20:02:13.040Z"
}