example-data.com
Menu
Browse docs and collections

Overview

comments / #349

Comment #349

· 5/31/2024

Impedit vitiosus surculus crapula rem animadverto agnitio. Caput strues aestus quam sonitus tepidus utrum. Pauci at contra defungo sub adhaero aliquam correptius cras numquam.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 349,
  "userId": 104,
  "targetType": "post",
  "targetId": 350,
  "body": "Impedit vitiosus surculus crapula rem animadverto agnitio. Caput strues aestus quam sonitus tepidus utrum. Pauci at contra defungo sub adhaero aliquam correptius cras numquam.",
  "isEdited": true,
  "createdAt": "2024-05-31T04:11:42.210Z",
  "updatedAt": "2025-10-16T19:36:20.223Z"
}