example-data.com
Menu
Browse docs and collections

Overview

comments / #630

Comment #630

· 4/10/2025

Bellum attero vestigium absorbeo tolero. Cur tabernus absconditus aeger abstergo assentator amoveo civitas absorbeo. Bellum creo sodalitas alter collum suppellex adipiscor atavus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 630,
  "userId": 120,
  "targetType": "post",
  "targetId": 290,
  "body": "Bellum attero vestigium absorbeo tolero. Cur tabernus absconditus aeger abstergo assentator amoveo civitas absorbeo. Bellum creo sodalitas alter collum suppellex adipiscor atavus.",
  "isEdited": true,
  "createdAt": "2025-04-10T02:42:44.295Z",
  "updatedAt": "2025-12-21T05:55:17.200Z"
}