example-data.com
Menu
Browse docs and collections

stories

stories

Page 9 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": 193,
      "userId": 185,
      "mediaUrl": "https://picsum.photos/seed/story-193/600/600",
      "mediaType": "image",
      "caption": "",
      "viewCount": 1744,
      "expiresAt": "2026-01-12T04:25:46.375Z",
      "createdAt": "2026-01-11T04:25:46.375Z"
    },
    {
      "id": 194,
      "userId": 90,
      "mediaUrl": "https://picsum.photos/seed/story-194/400/600",
      "mediaType": "image",
      "caption": "",
      "viewCount": 312,
      "expiresAt": "2026-03-16T17:05:34.509Z",
      "createdAt": "2026-03-15T17:05:34.509Z"
    },
    {
      "id": 195,
      "userId": 34,
      "mediaUrl": "https://picsum.photos/seed/story-195/400/800",
      "mediaType": "image",
      "caption": "",
      "viewCount": 3110,
      "expiresAt": "2026-01-11T23:33:24.038Z",
      "createdAt": "2026-01-10T23:33:24.038Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=9&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=10&limit=24",
    "prev": "/api/v1/stories?page=8&limit=24"
  }
}