example-data.com
Menu
Browse docs and collections

Overview

comments / #5

Comment #5

· 5/5/2026

Cohibeo saepe speciosus usque tantillus aer consectetur ademptio sto. Admoveo repudiandae causa adfectus tui cognomen ocer. Amor usque coepi asper vesper carus sunt accusamus. Mollitia volva tremo autus placeat.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 5,
  "userId": 8,
  "targetType": "post",
  "targetId": 388,
  "body": "Cohibeo saepe speciosus usque tantillus aer consectetur ademptio sto. Admoveo repudiandae causa adfectus tui cognomen ocer. Amor usque coepi asper vesper carus sunt accusamus. Mollitia volva tremo autus placeat.",
  "isEdited": true,
  "createdAt": "2026-05-05T04:38:37.661Z",
  "updatedAt": "2026-05-09T03:48:32.063Z"
}