example-data.com
Menu
Browse docs and collections

Overview

comments / #350

Comment #350

· 4/29/2025

Cursus crastinus absque suppono. Tum amet tot aranea baiulus teres toties. Perspiciatis usus adaugeo angustus repellat. Vestigium dapifer vitium coadunatio congregatio deficio quas creta totus adstringo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 350,
  "userId": 201,
  "targetType": "post",
  "targetId": 179,
  "body": "Cursus crastinus absque suppono. Tum amet tot aranea baiulus teres toties. Perspiciatis usus adaugeo angustus repellat. Vestigium dapifer vitium coadunatio congregatio deficio quas creta totus adstringo.",
  "isEdited": false,
  "createdAt": "2025-04-29T22:12:05.036Z",
  "updatedAt": "2025-04-29T22:12:05.036Z"
}