example-data.com
Menu
Browse docs and collections

Overview

comments / #100

Comment #100

· 3/5/2025

Vere careo crastinus delectus fugiat cedo tribuo volaticus. Vulgivagus apud super delego autus utrum atrox carpo dedecor. Ipsa suppellex infit carbo defero culpo vulnus sed cena villa. Custodia terror aufero cresco numquam.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 100,
  "userId": 193,
  "targetType": "post",
  "targetId": 211,
  "body": "Vere careo crastinus delectus fugiat cedo tribuo volaticus. Vulgivagus apud super delego autus utrum atrox carpo dedecor. Ipsa suppellex infit carbo defero culpo vulnus sed cena villa. Custodia terror aufero cresco numquam.",
  "isEdited": false,
  "createdAt": "2025-03-05T14:07:21.345Z",
  "updatedAt": "2025-03-05T14:07:21.345Z"
}