example-data.com
Menu
Browse docs and collections

Overview

comments / #495

Comment #495

· 12/4/2024

Ver deputo corona. Dolorum aeternus custodia velum aperte depono tyrannus valeo. Cognomen adamo amplitudo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 495,
  "userId": 227,
  "targetType": "post",
  "targetId": 181,
  "body": "Ver deputo corona. Dolorum aeternus custodia velum aperte depono tyrannus valeo. Cognomen adamo amplitudo.",
  "isEdited": true,
  "createdAt": "2024-12-04T19:33:10.079Z",
  "updatedAt": "2025-05-27T20:16:16.557Z"
}