example-data.com
Menu
Browse docs and collections

Overview

comments / #688

Comment #688

· 4/28/2025

Teneo cunabula acidus sono depraedor. Advoco tendo vigor natus comparo pecus universe alias corona quasi. Amicitia ocer thorax corporis suus apto nisi repellat strues statim.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 688,
  "userId": 128,
  "targetType": "post",
  "targetId": 401,
  "body": "Teneo cunabula acidus sono depraedor. Advoco tendo vigor natus comparo pecus universe alias corona quasi. Amicitia ocer thorax corporis suus apto nisi repellat strues statim.",
  "isEdited": false,
  "createdAt": "2025-04-28T10:12:48.187Z",
  "updatedAt": "2025-04-28T10:12:48.187Z"
}