example-data.com
Menu
Browse docs and collections

Overview

comments / #1239

Comment #1239

· 4/29/2025

Pauper decimus caries utor deputo certe cerno architecto verecundia. Sonitus timor abstergo quaerat deficio cura crapula volaticus minus. Volo tergo itaque usus aeternus surgo canto catena articulus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1239,
  "userId": 200,
  "targetType": "post",
  "targetId": 497,
  "body": "Pauper decimus caries utor deputo certe cerno architecto verecundia. Sonitus timor abstergo quaerat deficio cura crapula volaticus minus. Volo tergo itaque usus aeternus surgo canto catena articulus.",
  "isEdited": false,
  "createdAt": "2025-04-29T21:44:35.432Z",
  "updatedAt": "2025-04-29T21:44:35.432Z"
}