example-data.com
Menu
Browse docs and collections

Overview

stories / #251

Story #251

Story #251

· 3/29/2026

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stories/251"
);
const story = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/stories.d.ts https://example-data.com/types/stories.d.ts
import type { Story } from "./types/stories";

const res = await fetch(
  "https://example-data.com/api/v1/stories/251"
);
const story = (await res.json()) as Story;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/stories/251"
)
storie = res.json()

Response

{
  "id": 251,
  "userId": 111,
  "mediaUrl": "https://api.dicebear.com/9.x/shapes/svg?seed=story-video-251",
  "mediaType": "video",
  "caption": "",
  "viewCount": 2151,
  "expiresAt": "2026-03-30T21:20:32.358Z",
  "createdAt": "2026-03-29T21:20:32.358Z"
}