example-data.com
Menu
Browse docs and collections

Overview

comments / #1088

Comment #1088

· 5/4/2025

Ab verbera crinis distinctio venia eos cubitum totidem cursus charisma. Antepono civis vulgivagus vereor vindico armarium decumbo paulatim qui. Degero accedo architecto. Sponte ambulo defetiscor ultio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1088,
  "userId": 23,
  "targetType": "post",
  "targetId": 5,
  "body": "Ab verbera crinis distinctio venia eos cubitum totidem cursus charisma. Antepono civis vulgivagus vereor vindico armarium decumbo paulatim qui. Degero accedo architecto. Sponte ambulo defetiscor ultio.",
  "isEdited": false,
  "createdAt": "2025-05-04T09:15:36.173Z",
  "updatedAt": "2025-05-04T09:15:36.173Z"
}