example-data.com
Menu
Browse docs and collections

stories

stories

Page 10 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": 217,
      "userId": 134,
      "mediaUrl": "https://picsum.photos/seed/story-217/800/800",
      "mediaType": "image",
      "caption": "",
      "viewCount": 4200,
      "expiresAt": "2025-12-12T15:26:12.163Z",
      "createdAt": "2025-12-11T15:26:12.163Z"
    },
    {
      "id": 218,
      "userId": 44,
      "mediaUrl": "https://picsum.photos/seed/story-218/400/1200",
      "mediaType": "image",
      "caption": "Conturbo tempus patruus derideo pauper angulus.",
      "viewCount": 1225,
      "expiresAt": "2025-07-27T20:18:21.274Z",
      "createdAt": "2025-07-26T20:18:21.274Z"
    },
    {
      "id": 219,
      "userId": 192,
      "mediaUrl": "https://picsum.photos/seed/story-219/400/600",
      "mediaType": "image",
      "caption": "",
      "viewCount": 662,
      "expiresAt": "2026-03-13T12:34:15.727Z",
      "createdAt": "2026-03-12T12:34:15.727Z"
    }
  ],
  "meta": {
    "page": 10,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=10&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=11&limit=24",
    "prev": "/api/v1/stories?page=9&limit=24"
  }
}