example-data.com
Menu
Browse docs and collections

Overview

comments / #626

Comment #626

· 5/22/2024

Ex communis pauci tertius. Crux substantia urbs tripudio condico ipsum atque. Vigilo tergum dedecor studio tempora antiquus terreo coma deludo.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 626,
  "userId": 183,
  "targetType": "post",
  "targetId": 60,
  "body": "Ex communis pauci tertius. Crux substantia urbs tripudio condico ipsum atque. Vigilo tergum dedecor studio tempora antiquus terreo coma deludo.",
  "isEdited": true,
  "createdAt": "2024-05-22T11:08:59.087Z",
  "updatedAt": "2025-12-02T00:57:05.064Z"
}