example-data.com
Menu
Browse docs and collections

Overview

comments / #1225

Comment #1225

· 11/26/2025

Defungo constans correptius amo. Aliquam vulgo clementia abeo ventosus circumvenio curatio amor demonstro. Cribro vehemens cruciamentum sto consequuntur thorax terebro umerus. Cernuus sordeo demonstro usitas.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1225,
  "userId": 141,
  "targetType": "post",
  "targetId": 28,
  "body": "Defungo constans correptius amo. Aliquam vulgo clementia abeo ventosus circumvenio curatio amor demonstro. Cribro vehemens cruciamentum sto consequuntur thorax terebro umerus. Cernuus sordeo demonstro usitas.",
  "isEdited": false,
  "createdAt": "2025-11-26T03:20:11.333Z",
  "updatedAt": "2025-11-26T03:20:11.333Z"
}