example-data.com
Menu
Browse docs and collections

Overview

comments / #637

Comment #637

· 4/11/2025

Cicuta sit vinco sponte. Turba eveniet abeo vinco vae vehemens copia. Armarium culpa adopto. Coniuratio crinis saepe tabernus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 637,
  "userId": 227,
  "targetType": "post",
  "targetId": 177,
  "body": "Cicuta sit vinco sponte. Turba eveniet abeo vinco vae vehemens copia. Armarium culpa adopto. Coniuratio crinis saepe tabernus.",
  "isEdited": true,
  "createdAt": "2025-04-11T04:35:00.322Z",
  "updatedAt": "2025-10-08T15:20:28.065Z"
}