example-data.com
Menu
Browse docs and collections

Overview

comments / #846

Comment #846

· 6/13/2025

Reprehenderit antiquus alo suspendo terra. Versus adeo appono delicate teres.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 846,
  "userId": 209,
  "targetType": "post",
  "targetId": 211,
  "body": "Reprehenderit antiquus alo suspendo terra. Versus adeo appono delicate teres.",
  "isEdited": false,
  "createdAt": "2025-06-13T19:55:10.938Z",
  "updatedAt": "2025-06-13T19:55:10.938Z"
}