example-data.com
Menu
Browse docs and collections

Overview

comments / #616

Comment #616

· 2/8/2025

Amaritudo vicissitudo crastinus undique avarus. Crinis delego eos libero tergiversatio comburo vado nobis. Cohaero esse adflicto sed sophismata adopto adeptio. Culpa abstergo comes contra.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 616,
  "userId": 193,
  "targetType": "post",
  "targetId": 282,
  "body": "Amaritudo vicissitudo crastinus undique avarus. Crinis delego eos libero tergiversatio comburo vado nobis. Cohaero esse adflicto sed sophismata adopto adeptio. Culpa abstergo comes contra.",
  "isEdited": false,
  "createdAt": "2025-02-08T09:33:56.504Z",
  "updatedAt": "2025-02-08T09:33:56.504Z"
}