example-data.com
Menu
Browse docs and collections

Overview

comments / #1094

Comment #1094

· 1/18/2025

Reprehenderit audacia candidus aegre sed aut. Cimentarius degusto cibo tyrannus succedo ubi amaritudo aspernatur una. Conitor deficio cibo tego cursus demitto supellex dicta. Ascisco textus vulticulus acies vix atavus templum aveho eaque aro.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1094,
  "userId": 128,
  "targetType": "post",
  "targetId": 82,
  "body": "Reprehenderit audacia candidus aegre sed aut. Cimentarius degusto cibo tyrannus succedo ubi amaritudo aspernatur una. Conitor deficio cibo tego cursus demitto supellex dicta. Ascisco textus vulticulus acies vix atavus templum aveho eaque aro.",
  "isEdited": false,
  "createdAt": "2025-01-18T18:59:53.249Z",
  "updatedAt": "2025-01-18T18:59:53.249Z"
}