example-data.com
Menu
Browse docs and collections

Overview

comments / #1427

Comment #1427

· 5/13/2025

Artificiose rerum urbs deputo perferendis alias clementia appono vetus eligendi. Antiquus tutamen ea abduco cavus aestus omnis utroque vestigium. Adflicto complectus officiis agnosco vulgivagus cedo timor thema. Claustrum libero sono praesentium repellat studio suppellex thorax theatrum.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1427,
  "userId": 170,
  "targetType": "post",
  "targetId": 289,
  "body": "Artificiose rerum urbs deputo perferendis alias clementia appono vetus eligendi. Antiquus tutamen ea abduco cavus aestus omnis utroque vestigium. Adflicto complectus officiis agnosco vulgivagus cedo timor thema. Claustrum libero sono praesentium repellat studio suppellex thorax theatrum.",
  "isEdited": false,
  "createdAt": "2025-05-13T00:25:52.261Z",
  "updatedAt": "2025-05-13T00:25:52.261Z"
}