example-data.com
Menu
Browse docs and collections

stories

stories

Page 2 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": 25,
      "userId": 10,
      "mediaUrl": "https://picsum.photos/seed/story-25/600/800",
      "mediaType": "image",
      "caption": "Ratione tredecim spero causa delego vitae solus infit cursim stipes.",
      "viewCount": 4606,
      "expiresAt": "2025-08-25T14:23:01.444Z",
      "createdAt": "2025-08-24T14:23:01.444Z"
    },
    {
      "id": 26,
      "userId": 59,
      "mediaUrl": "https://picsum.photos/seed/story-26/600/800",
      "mediaType": "image",
      "caption": "Articulus trado debeo complectus cursim suscipit.",
      "viewCount": 531,
      "expiresAt": "2025-11-28T03:25:08.379Z",
      "createdAt": "2025-11-27T03:25:08.379Z"
    },
    {
      "id": 27,
      "userId": 208,
      "mediaUrl": "https://picsum.photos/seed/story-27/800/800",
      "mediaType": "image",
      "caption": "Venio viriliter deserunt.",
      "viewCount": 4468,
      "expiresAt": "2026-04-10T14:40:19.579Z",
      "createdAt": "2026-04-09T14:40:19.579Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=2&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=3&limit=24",
    "prev": "/api/v1/stories?page=1&limit=24"
  }
}