example-data.com
Menu
Browse docs and collections

Overview

comments / #1299

Comment #1299

· 1/16/2025

Adflicto infit desolo decet apparatus creo auctus ustilo. Tondeo cedo truculenter turba. Sint pecto varius sui patior arbustum. Suadeo timor tredecim speculum sapiente tempora cubo una deinde confugo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1299,
  "userId": 100,
  "targetType": "post",
  "targetId": 174,
  "body": "Adflicto infit desolo decet apparatus creo auctus ustilo. Tondeo cedo truculenter turba. Sint pecto varius sui patior arbustum. Suadeo timor tredecim speculum sapiente tempora cubo una deinde confugo.",
  "isEdited": false,
  "createdAt": "2025-01-16T03:57:09.083Z",
  "updatedAt": "2025-01-16T03:57:09.083Z"
}