example-data.com
Menu
Browse docs and collections

Overview

comments / #932

Comment #932

· 4/7/2025

Esse absorbeo artificiose tempus comprehendo desidero stipes. Tabgo creator adopto. Perspiciatis cometes coerceo ubi deserunt excepturi dolorum amoveo. Nesciunt iure audax taceo volup vilicus cuppedia solio dolor subvenio.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 932,
  "userId": 92,
  "targetType": "post",
  "targetId": 260,
  "body": "Esse absorbeo artificiose tempus comprehendo desidero stipes. Tabgo creator adopto. Perspiciatis cometes coerceo ubi deserunt excepturi dolorum amoveo. Nesciunt iure audax taceo volup vilicus cuppedia solio dolor subvenio.",
  "isEdited": true,
  "createdAt": "2025-04-07T08:00:27.402Z",
  "updatedAt": "2025-04-19T23:08:56.075Z"
}