example-data.com
Menu
Browse docs and collections

stories

stories

Page 8 of 13.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/stories?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/stories?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/stories";

const res = await fetch(
  "https://example-data.com/api/v1/stories?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Story>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/stories",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 169,
      "userId": 58,
      "mediaUrl": "https://picsum.photos/seed/story-169/400/1200",
      "mediaType": "image",
      "caption": "",
      "viewCount": 1754,
      "expiresAt": "2025-09-14T01:52:38.710Z",
      "createdAt": "2025-09-13T01:52:38.710Z"
    },
    {
      "id": 170,
      "userId": 86,
      "mediaUrl": "https://picsum.photos/seed/story-170/600/800",
      "mediaType": "image",
      "caption": "",
      "viewCount": 1151,
      "expiresAt": "2026-05-19T16:48:34.242Z",
      "createdAt": "2026-05-18T16:48:34.242Z"
    },
    {
      "id": 171,
      "userId": 243,
      "mediaUrl": "https://picsum.photos/seed/story-171/800/600",
      "mediaType": "image",
      "caption": "Cupiditate corona venia volubilis reiciendis a venia creptio capillus unde.",
      "viewCount": 1071,
      "expiresAt": "2026-05-15T15:19:12.576Z",
      "createdAt": "2026-05-14T15:19:12.576Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=8&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=9&limit=24",
    "prev": "/api/v1/stories?page=7&limit=24"
  }
}