Comment #1229
· 1/12/2025
Virgo acerbitas careo cometes.
Overview
comments / #1229
Virgo acerbitas careo cometes.
Comment #1229
1/12/2025
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1229" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1229" ); 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/1229"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1229"
)
comment = res.json() Response
{
"id": 1229,
"userId": 24,
"targetType": "post",
"targetId": 298,
"body": "Virgo acerbitas careo cometes.",
"isEdited": false,
"createdAt": "2025-01-12T03:09:02.230Z",
"updatedAt": "2025-01-12T03:09:02.230Z"
}