example-data.com
Menu
Browse docs and collections

Overview

comments / #604

Comment #604

· 3/8/2025

Villa coniecto volubilis deinde aliquam aequitas uberrime. Totidem dapifer aer coniecto volup voro tabernus acervus campana pecus. Beatae inventore despecto vox tabula suggero degenero curvo video. Adhaero et allatus nihil volo demonstro catena.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 604,
  "userId": 80,
  "targetType": "post",
  "targetId": 76,
  "body": "Villa coniecto volubilis deinde aliquam aequitas uberrime. Totidem dapifer aer coniecto volup voro tabernus acervus campana pecus. Beatae inventore despecto vox tabula suggero degenero curvo video. Adhaero et allatus nihil volo demonstro catena.",
  "isEdited": false,
  "createdAt": "2025-03-08T01:52:52.403Z",
  "updatedAt": "2025-03-08T01:52:52.403Z"
}