example-data.com
Menu
Browse docs and collections

Overview

comments / #531

Comment #531

· 9/12/2025

Turpis pauper defaeco aegre. Strenuus accommodo taceo cresco. Torrens tamisium cito curto cur cubicularis ulterius causa sint. Verbum ullus amet talus conforto iusto turba sui.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 531,
  "userId": 150,
  "targetType": "post",
  "targetId": 459,
  "body": "Turpis pauper defaeco aegre. Strenuus accommodo taceo cresco. Torrens tamisium cito curto cur cubicularis ulterius causa sint. Verbum ullus amet talus conforto iusto turba sui.",
  "isEdited": false,
  "createdAt": "2025-09-12T12:12:20.012Z",
  "updatedAt": "2025-09-12T12:12:20.012Z"
}