Story #42
· 9/12/2025
stories / #42
Story #42
9/12/2025
curl -sS \
"https://example-data.com/api/v1/stories/42" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stories/42"
);
const storie = await res.json();import type { Storie } from "https://example-data.com/types/stories.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/stories/42"
);
const storie = (await res.json()) as Storie;import requests
res = requests.get(
"https://example-data.com/api/v1/stories/42"
)
storie = res.json() {
"id": 42,
"userId": 209,
"mediaUrl": "https://picsum.photos/seed/story-42/400/600",
"mediaType": "image",
"caption": "",
"viewCount": 319,
"expiresAt": "2025-09-13T17:59:24.114Z",
"createdAt": "2025-09-12T17:59:24.114Z"
}