example-data.com
Menu
Browse docs and collections

Overview

comments / #668

Comment #668

· 1/3/2025

Adipiscor iusto vos adhuc antepono bibo. Adduco demo valde stultus alioqui absens studio. Error credo vita dedico facere aveho nulla aedificium adsuesco denuo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 668,
  "userId": 94,
  "targetType": "post",
  "targetId": 1,
  "body": "Adipiscor iusto vos adhuc antepono bibo. Adduco demo valde stultus alioqui absens studio. Error credo vita dedico facere aveho nulla aedificium adsuesco denuo.",
  "isEdited": true,
  "createdAt": "2025-01-03T18:21:01.245Z",
  "updatedAt": "2025-10-15T02:27:05.949Z"
}