Comment #1431
· 3/7/2025
Sopor ullus solus.
Overview
comments / #1431
Sopor ullus solus.
Comment #1431
3/7/2025
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/1431" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/1431" ); 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/1431"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/1431"
)
comment = res.json() Response
{
"id": 1431,
"userId": 214,
"targetType": "post",
"targetId": 186,
"body": "Sopor ullus solus.",
"isEdited": false,
"createdAt": "2025-03-07T01:58:35.639Z",
"updatedAt": "2025-03-07T01:58:35.639Z"
}