example-data.com
Menu
Browse docs and collections

Overview

comments / #760

Comment #760

· 1/24/2025

Quos super colligo deleo fugit bos ad assumenda cum stultus. Bellicus ventosus abscido rem valde defleo dedico spero utor. Confero sint cedo spectaculum adsidue creo copia dolor harum vicissitudo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 760,
  "userId": 30,
  "targetType": "post",
  "targetId": 59,
  "body": "Quos super colligo deleo fugit bos ad assumenda cum stultus. Bellicus ventosus abscido rem valde defleo dedico spero utor. Confero sint cedo spectaculum adsidue creo copia dolor harum vicissitudo.",
  "isEdited": true,
  "createdAt": "2025-01-24T10:11:53.637Z",
  "updatedAt": "2026-04-12T16:14:12.541Z"
}