example-data.com
Menu
Browse docs and collections

Overview

comments / #1155

Comment #1155

· 9/30/2024

Reprehenderit terreo aranea consequatur. Delego voro bene velit demitto convoco deleniti bardus valde sopor. Cunabula fuga ascisco coniecto terminatio deripio. Eveniet tandem quas dignissimos vis ea.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1155,
  "userId": 34,
  "targetType": "post",
  "targetId": 67,
  "body": "Reprehenderit terreo aranea consequatur. Delego voro bene velit demitto convoco deleniti bardus valde sopor. Cunabula fuga ascisco coniecto terminatio deripio. Eveniet tandem quas dignissimos vis ea.",
  "isEdited": true,
  "createdAt": "2024-09-30T11:35:57.600Z",
  "updatedAt": "2025-04-26T00:11:47.548Z"
}