example-data.com
Menu
Browse docs and collections

Overview

comments / #1051

Comment #1051

· 3/20/2025

Soluta corrumpo amoveo error deleniti denique ventus. Advenio apud audentia vigilo careo tener texo. Studio cultellus voco coaegresco dedecor conqueror utor acquiro. Vorax delego vivo vehemens depraedor certus ut venia eius.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1051,
  "userId": 237,
  "targetType": "post",
  "targetId": 73,
  "body": "Soluta corrumpo amoveo error deleniti denique ventus. Advenio apud audentia vigilo careo tener texo. Studio cultellus voco coaegresco dedecor conqueror utor acquiro. Vorax delego vivo vehemens depraedor certus ut venia eius.",
  "isEdited": false,
  "createdAt": "2025-03-20T06:11:15.708Z",
  "updatedAt": "2025-03-20T06:11:15.708Z"
}