example-data.com
Menu
Browse docs and collections

Overview

comments / #222

Comment #222

· 9/8/2025

Alter ver strenuus acies adulatio charisma depono cado thema. Calco atque depulso certe abundans aspernatur vulgivagus tum vulgus virga. Cenaculum vehemens concedo utrimque defluo expedita ab despecto auctus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 222,
  "userId": 42,
  "targetType": "post",
  "targetId": 137,
  "body": "Alter ver strenuus acies adulatio charisma depono cado thema. Calco atque depulso certe abundans aspernatur vulgivagus tum vulgus virga. Cenaculum vehemens concedo utrimque defluo expedita ab despecto auctus.",
  "isEdited": false,
  "createdAt": "2025-09-08T09:53:52.669Z",
  "updatedAt": "2025-09-08T09:53:52.669Z"
}