example-data.com
Menu
Browse docs and collections

Overview

comments / #1429

Comment #1429

· 1/7/2025

Titulus accusator ventosus commodi officiis dolores talio voluptatum amplitudo. Adipiscor surgo vilis ustulo abutor. Vita soluta acies at vito vespillo stips vaco tam.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1429,
  "userId": 141,
  "targetType": "post",
  "targetId": 224,
  "body": "Titulus accusator ventosus commodi officiis dolores talio voluptatum amplitudo. Adipiscor surgo vilis ustulo abutor. Vita soluta acies at vito vespillo stips vaco tam.",
  "isEdited": true,
  "createdAt": "2025-01-07T14:12:03.605Z",
  "updatedAt": "2025-03-25T03:28:05.679Z"
}