example-data.com
Menu
Browse docs and collections

stories

stories

Page 7 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": 145,
      "userId": 215,
      "mediaUrl": "https://picsum.photos/seed/story-145/800/800",
      "mediaType": "image",
      "caption": "",
      "viewCount": 3805,
      "expiresAt": "2026-03-07T03:32:50.186Z",
      "createdAt": "2026-03-06T03:32:50.186Z"
    },
    {
      "id": 146,
      "userId": 146,
      "mediaUrl": "https://picsum.photos/seed/story-146/600/600",
      "mediaType": "image",
      "caption": "Crux nemo suscipio acervus cui termes synagoga aliqua.",
      "viewCount": 1192,
      "expiresAt": "2025-06-19T05:31:50.956Z",
      "createdAt": "2025-06-18T05:31:50.956Z"
    },
    {
      "id": 147,
      "userId": 83,
      "mediaUrl": "https://picsum.photos/seed/story-147/400/800",
      "mediaType": "image",
      "caption": "",
      "viewCount": 3600,
      "expiresAt": "2026-01-16T21:37:01.193Z",
      "createdAt": "2026-01-15T21:37:01.193Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=7&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=8&limit=24",
    "prev": "/api/v1/stories?page=6&limit=24"
  }
}