example-data.com
Menu
Browse docs and collections

Overview

comments / #1071

Comment #1071

· 3/31/2025

Artificiose subnecto congregatio solutio ascit absconditus. Clibanus contego decens sollers cogito deputo stabilis utroque comptus. Virga aureus patruus ab velut vis vomer.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1071,
  "userId": 242,
  "targetType": "post",
  "targetId": 322,
  "body": "Artificiose subnecto congregatio solutio ascit absconditus. Clibanus contego decens sollers cogito deputo stabilis utroque comptus. Virga aureus patruus ab velut vis vomer.",
  "isEdited": false,
  "createdAt": "2025-03-31T04:55:04.706Z",
  "updatedAt": "2025-03-31T04:55:04.706Z"
}