example-data.com
Menu
Browse docs and collections

Overview

comments / #906

Comment #906

· 9/20/2025

Voluptatibus nihil theatrum despecto iure cultellus conduco suscipio. Laborum vallum arguo. Amplexus validus est taedium repellendus defero tardus. Defungo atrox soluta vestigium uter.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 906,
  "userId": 216,
  "targetType": "post",
  "targetId": 417,
  "body": "Voluptatibus nihil theatrum despecto iure cultellus conduco suscipio. Laborum vallum arguo. Amplexus validus est taedium repellendus defero tardus. Defungo atrox soluta vestigium uter.",
  "isEdited": false,
  "createdAt": "2025-09-20T16:15:19.564Z",
  "updatedAt": "2025-09-20T16:15:19.564Z"
}