example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 81 of 84.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/notifications?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/notifications.d.ts https://example-data.com/types/notifications.d.ts
import type { Notification, ListEnvelope } from "./types/notifications";

const res = await fetch(
  "https://example-data.com/api/v1/notifications?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Notification>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/notifications",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 1921,
      "userId": 191,
      "type": "system",
      "title": "System notification",
      "body": "Adstringo tantum cohors.",
      "isRead": false,
      "link": "https://example.com/system/8DAX3FCh",
      "createdAt": "2026-04-13T21:05:17.214Z"
    },
    {
      "id": 1922,
      "userId": 89,
      "type": "reply",
      "title": "Charity Crona replied to your comment",
      "body": "Laborum libero patruus strues.",
      "isRead": true,
      "link": "https://example.com/reply/hXlcZ1f5",
      "createdAt": "2025-07-21T03:12:36.208Z"
    },
    {
      "id": 1923,
      "userId": 17,
      "type": "follow",
      "title": "Merl Jenkins started following you",
      "body": "Suspendo cervus calcar cibus officia appello vetus cupressus culpa amita.",
      "isRead": false,
      "link": "https://example.com/follow/bSKQbqp3",
      "createdAt": "2025-07-21T11:53:37.502Z"
    }
  ],
  "meta": {
    "page": 81,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=81&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=82&limit=24",
    "prev": "/api/v1/notifications?page=80&limit=24"
  }
}