example-data.com
Menu
Browse docs and collections

Overview

comments / #16

Comment #16

· 5/3/2025

Denuncio caste tergiversatio curto acerbitas aegrus strenuus odit pauper cometes. Adipisci suspendo vacuus curvo. Voluptate laborum acer tersus. Surgo tamquam colo suppellex canis solio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 16,
  "userId": 151,
  "targetType": "post",
  "targetId": 348,
  "body": "Denuncio caste tergiversatio curto acerbitas aegrus strenuus odit pauper cometes. Adipisci suspendo vacuus curvo. Voluptate laborum acer tersus. Surgo tamquam colo suppellex canis solio.",
  "isEdited": false,
  "createdAt": "2025-05-03T11:40:29.412Z",
  "updatedAt": "2025-05-03T11:40:29.412Z"
}