example-data.com
Menu
Browse docs and collections

Overview

comments / #1337

Comment #1337

· 11/10/2025

Cuppedia vinum substantia corpus congregatio cumque adeptio quisquam timidus adeo. Assentator votum amplitudo. Tremo varius cultellus facilis barba trucido ciminatio aiunt.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1337,
  "userId": 188,
  "targetType": "post",
  "targetId": 110,
  "body": "Cuppedia vinum substantia corpus congregatio cumque adeptio quisquam timidus adeo. Assentator votum amplitudo. Tremo varius cultellus facilis barba trucido ciminatio aiunt.",
  "isEdited": false,
  "createdAt": "2025-11-10T13:15:07.393Z",
  "updatedAt": "2025-11-10T13:15:07.393Z"
}