example-data.com
Menu
Browse docs and collections

Overview

comments / #1490

Comment #1490

· 11/11/2024

Caelestis crebro depono voluptas. Uterque rerum cibo crepusculum deludo molestias. Corpus capio supplanto tametsi apto adstringo terror tantillus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1490,
  "userId": 2,
  "targetType": "post",
  "targetId": 98,
  "body": "Caelestis crebro depono voluptas. Uterque rerum cibo crepusculum deludo molestias. Corpus capio supplanto tametsi apto adstringo terror tantillus.",
  "isEdited": true,
  "createdAt": "2024-11-11T06:22:49.248Z",
  "updatedAt": "2026-04-03T15:22:28.310Z"
}