example-data.com
Menu
Browse docs and collections

Overview

comments / #1176

Comment #1176

· 3/25/2025

Succurro totus depulso paulatim statua subnecto amo. Cetera damnatio caecus adversus ea sulum crudelis asperiores sol beatus. Copiose validus caelum facilis expedita tamquam.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1176,
  "userId": 193,
  "targetType": "post",
  "targetId": 276,
  "body": "Succurro totus depulso paulatim statua subnecto amo. Cetera damnatio caecus adversus ea sulum crudelis asperiores sol beatus. Copiose validus caelum facilis expedita tamquam.",
  "isEdited": true,
  "createdAt": "2025-03-25T16:47:48.961Z",
  "updatedAt": "2025-11-26T20:52:20.177Z"
}