example-data.com
Menu
Browse docs and collections

Overview

comments / #857

Comment #857

· 6/16/2024

Tabesco quasi aggero dolor beneficium titulus. Aeger ago votum acquiro verbera soleo amaritudo clamo vado. Clamo amaritudo porro itaque benigne surgo cavus vomica. Terreo aveho ventosus thesaurus terminatio texo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 857,
  "userId": 53,
  "targetType": "post",
  "targetId": 403,
  "body": "Tabesco quasi aggero dolor beneficium titulus. Aeger ago votum acquiro verbera soleo amaritudo clamo vado. Clamo amaritudo porro itaque benigne surgo cavus vomica. Terreo aveho ventosus thesaurus terminatio texo.",
  "isEdited": true,
  "createdAt": "2024-06-16T19:15:18.389Z",
  "updatedAt": "2025-05-08T19:26:41.552Z"
}