example-data.com
Menu
Browse docs and collections

stories

stories

Page 5 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": 97,
      "userId": 181,
      "mediaUrl": "https://picsum.photos/seed/story-97/400/1200",
      "mediaType": "image",
      "caption": "Stabilis stella nisi ulterius alii vestigium socius defleo.",
      "viewCount": 3343,
      "expiresAt": "2025-08-19T10:35:21.722Z",
      "createdAt": "2025-08-18T10:35:21.722Z"
    },
    {
      "id": 98,
      "userId": 30,
      "mediaUrl": "https://picsum.photos/seed/story-98/600/1200",
      "mediaType": "image",
      "caption": "",
      "viewCount": 3687,
      "expiresAt": "2025-05-23T08:20:47.778Z",
      "createdAt": "2025-05-22T08:20:47.778Z"
    },
    {
      "id": 99,
      "userId": 196,
      "mediaUrl": "https://picsum.photos/seed/story-99/800/600",
      "mediaType": "image",
      "caption": "",
      "viewCount": 1281,
      "expiresAt": "2025-07-11T12:07:13.392Z",
      "createdAt": "2025-07-10T12:07:13.392Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 300,
    "totalPages": 13
  },
  "links": {
    "self": "/api/v1/stories?page=5&limit=24",
    "first": "/api/v1/stories?page=1&limit=24",
    "last": "/api/v1/stories?page=13&limit=24",
    "next": "/api/v1/stories?page=6&limit=24",
    "prev": "/api/v1/stories?page=4&limit=24"
  }
}