example-data.com
Menu
Browse docs and collections

Overview

comments / #1153

Comment #1153

· 3/29/2025

Tui vulgo carmen veniam vilicus reprehenderit bene. Solium adhuc suffragium trucido abutor soleo assumenda credo substantia attollo. Vindico depono laudantium. Teres infit uredo subnecto vilis toties clementia.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1153,
  "userId": 47,
  "targetType": "post",
  "targetId": 336,
  "body": "Tui vulgo carmen veniam vilicus reprehenderit bene. Solium adhuc suffragium trucido abutor soleo assumenda credo substantia attollo. Vindico depono laudantium. Teres infit uredo subnecto vilis toties clementia.",
  "isEdited": false,
  "createdAt": "2025-03-29T13:17:14.837Z",
  "updatedAt": "2025-03-29T13:17:14.837Z"
}