example-data.com
Menu
Browse docs and collections

Overview

comments / #10

Comment #10

· 2/9/2025

Torrens ocer degero articulus desidero ceno tepesco capto aiunt. Congregatio tutamen taedium advoco venio commodo impedit tricesimus officia. Aetas suspendo curis somnus tergiversatio degenero.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 10,
  "userId": 125,
  "targetType": "post",
  "targetId": 212,
  "body": "Torrens ocer degero articulus desidero ceno tepesco capto aiunt. Congregatio tutamen taedium advoco venio commodo impedit tricesimus officia. Aetas suspendo curis somnus tergiversatio degenero.",
  "isEdited": false,
  "createdAt": "2025-02-09T20:20:00.344Z",
  "updatedAt": "2025-02-09T20:20:00.344Z"
}