example-data.com
Menu
Browse docs and collections

Overview

comments / #1072

Comment #1072

· 9/9/2024

Argumentum atrocitas clamo tabesco templum adipisci denego usus curia. Ars vinum concido adaugeo provident coma in teneo. Stips voro corona conqueror sperno. Verbum caste pel defungo supellex ater laudantium antiquus.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1072,
  "userId": 30,
  "targetType": "post",
  "targetId": 359,
  "body": "Argumentum atrocitas clamo tabesco templum adipisci denego usus curia. Ars vinum concido adaugeo provident coma in teneo. Stips voro corona conqueror sperno. Verbum caste pel defungo supellex ater laudantium antiquus.",
  "isEdited": true,
  "createdAt": "2024-09-09T01:43:19.593Z",
  "updatedAt": "2025-04-28T12:08:22.157Z"
}