example-data.com
Menu
Browse docs and collections

Overview

comments / #1248

Comment #1248

· 4/24/2025

Centum vacuus ancilla atqui solium commemoro utor. Basium acer canto terebro verbera. Truculenter vitae fugit consuasor validus ocer baiulus. Ademptio carbo sumo comprehendo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1248,
  "userId": 104,
  "targetType": "post",
  "targetId": 108,
  "body": "Centum vacuus ancilla atqui solium commemoro utor. Basium acer canto terebro verbera. Truculenter vitae fugit consuasor validus ocer baiulus. Ademptio carbo sumo comprehendo.",
  "isEdited": false,
  "createdAt": "2025-04-24T20:39:09.609Z",
  "updatedAt": "2025-04-24T20:39:09.609Z"
}