example-data.com
Menu
Browse docs and collections

Overview

comments / #1185

Comment #1185

· 8/2/2025

Venustas fugit debitis commemoro vero caveo apto voluntarius tempus. Adfero truculenter exercitationem eligendi concedo minus absum comburo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1185,
  "userId": 47,
  "targetType": "post",
  "targetId": 478,
  "body": "Venustas fugit debitis commemoro vero caveo apto voluntarius tempus. Adfero truculenter exercitationem eligendi concedo minus absum comburo.",
  "isEdited": true,
  "createdAt": "2025-08-02T08:25:13.839Z",
  "updatedAt": "2026-03-14T07:57:40.435Z"
}