Comment #977
· 5/4/2025
Cras cervus angustus sublime asperiores spero cras acidus vereor eos.
Overview
comments / #977
Cras cervus angustus sublime asperiores spero cras acidus vereor eos.
Comment #977
5/4/2025
Request
curl example
curl -sS \ "https://example-data.com/api/v1/comments/977" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/comments/977" ); 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/977"
);
const comment = (await res.json()) as Comment; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/comments/977"
)
comment = res.json() Response
{
"id": 977,
"userId": 54,
"targetType": "post",
"targetId": 384,
"body": "Cras cervus angustus sublime asperiores spero cras acidus vereor eos.",
"isEdited": false,
"createdAt": "2025-05-04T15:27:28.278Z",
"updatedAt": "2025-05-04T15:27:28.278Z"
}